OSDN Git Service

Check in released NDK version r4.
[android-x86/prebuilt.git] / ndk / android-ndk-r4 / linux / platforms / android-8 / arch-x86 / usr / include / linux / msm_mdp.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _MSM_MDP_H_
13 #define _MSM_MDP_H_
14
15 #include <linux/types.h>
16
17 #define MSMFB_IOCTL_MAGIC 'm'
18 #define MSMFB_GRP_DISP _IOW(MSMFB_IOCTL_MAGIC, 1, unsigned int)
19 #define MSMFB_BLIT _IOW(MSMFB_IOCTL_MAGIC, 2, unsigned int)
20
21 enum {
22  MDP_RGB_565,
23  MDP_XRGB_8888,
24  MDP_Y_CBCR_H2V2,
25  MDP_ARGB_8888,
26  MDP_RGB_888,
27  MDP_Y_CRCB_H2V2,
28  MDP_YCRYCB_H2V1,
29  MDP_Y_CRCB_H2V1,
30  MDP_Y_CBCR_H2V1,
31  MDP_RGBA_8888,
32  MDP_BGRA_8888,
33  MDP_RGBX_8888,
34  MDP_IMGTYPE_LIMIT
35 };
36
37 enum {
38  PMEM_IMG,
39  FB_IMG,
40 };
41
42 #define MDP_ROT_NOP 0
43 #define MDP_FLIP_LR 0x1
44 #define MDP_FLIP_UD 0x2
45 #define MDP_ROT_90 0x4
46 #define MDP_ROT_180 (MDP_FLIP_UD|MDP_FLIP_LR)
47 #define MDP_ROT_270 (MDP_ROT_90|MDP_FLIP_UD|MDP_FLIP_LR)
48 #define MDP_DITHER 0x8
49 #define MDP_BLUR 0x10
50 #define MDP_BLEND_FG_PREMULT 0x20000
51
52 #define MDP_TRANSP_NOP 0xffffffff
53 #define MDP_ALPHA_NOP 0xff
54
55 struct mdp_rect {
56  uint32_t x;
57  uint32_t y;
58  uint32_t w;
59  uint32_t h;
60 };
61
62 struct mdp_img {
63  uint32_t width;
64  uint32_t height;
65  uint32_t format;
66  uint32_t offset;
67  int memory_id;
68 };
69
70 struct mdp_blit_req {
71  struct mdp_img src;
72  struct mdp_img dst;
73  struct mdp_rect src_rect;
74  struct mdp_rect dst_rect;
75  uint32_t alpha;
76  uint32_t transp_mask;
77  uint32_t flags;
78 };
79
80 struct mdp_blit_req_list {
81  uint32_t count;
82  struct mdp_blit_req req[];
83 };
84
85 #endif
86