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  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __MSM_VIDC_H__
20 #define __MSM_VIDC_H__
21 #include <linux/types.h>
22 struct msm_vidc_extradata_header {
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24   unsigned int size;
25   unsigned int : 32;
26   unsigned int : 32;
27   unsigned int type;
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29   unsigned int data_size;
30   unsigned char data[1];
31 };
32 struct msm_vidc_interlace_payload {
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   unsigned int format;
35 };
36 struct msm_vidc_framerate_payload {
37   unsigned int frame_rate;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 };
40 struct msm_vidc_ts_payload {
41   unsigned int timestamp_lo;
42   unsigned int timestamp_hi;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 };
45 struct msm_vidc_concealmb_payload {
46   unsigned int num_mbs;
47 };
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 struct msm_vidc_recoverysei_payload {
50   unsigned int flags;
51 };
52 struct msm_vidc_aspect_ratio_payload {
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   unsigned int size;
55   unsigned int version;
56   unsigned int port_index;
57   unsigned int aspect_width;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   unsigned int aspect_height;
60 };
61 struct msm_vidc_mpeg2_seqdisp_payload {
62   unsigned int video_format;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   unsigned int color_descp;
65   unsigned int color_primaries;
66   unsigned int transfer_char;
67   unsigned int matrix_coeffs;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69   unsigned int disp_width;
70   unsigned int disp_height;
71 };
72 struct msm_vidc_input_crop_payload {
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74   unsigned int size;
75   unsigned int version;
76   unsigned int port_index;
77   unsigned int left;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   unsigned int top;
80   unsigned int width;
81   unsigned int height;
82 };
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 struct msm_vidc_digital_zoom_payload {
85   unsigned int size;
86   unsigned int version;
87   unsigned int port_index;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89   unsigned int zoom_width;
90   unsigned int zoom_height;
91 };
92 struct msm_vidc_extradata_index {
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94   unsigned int type;
95   union {
96     struct msm_vidc_input_crop_payload input_crop;
97     struct msm_vidc_digital_zoom_payload digital_zoom;
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99     struct msm_vidc_aspect_ratio_payload aspect_ratio;
100   };
101 };
102 struct msm_vidc_panscan_window {
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104   unsigned int panscan_height_offset;
105   unsigned int panscan_width_offset;
106   unsigned int panscan_window_width;
107   unsigned int panscan_window_height;
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 };
110 struct msm_vidc_panscan_window_payload {
111   unsigned int num_panscan_windows;
112   struct msm_vidc_panscan_window wnd[1];
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 };
115 struct msm_vidc_stream_userdata_payload {
116   unsigned int type;
117   unsigned int data[1];
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 };
120 struct msm_vidc_frame_qp_payload {
121   unsigned int frame_qp;
122 };
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 struct msm_vidc_frame_bits_info_payload {
125   unsigned int frame_bits;
126   unsigned int header_bits;
127 };
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 struct msm_vidc_s3d_frame_packing_payload {
130   unsigned int fpa_id;
131   unsigned int cancel_flag;
132   unsigned int fpa_type;
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134   unsigned int quin_cunx_flag;
135   unsigned int content_interprtation_type;
136   unsigned int spatial_flipping_flag;
137   unsigned int frame0_flipped_flag;
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139   unsigned int field_views_flag;
140   unsigned int current_frame_is_frame0_flag;
141   unsigned int frame0_self_contained_flag;
142   unsigned int frame1_self_contained_flag;
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144   unsigned int frame0_graid_pos_x;
145   unsigned int frame0_graid_pos_y;
146   unsigned int frame1_graid_pos_x;
147   unsigned int frame1_graid_pos_y;
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149   unsigned int fpa_reserved_byte;
150   unsigned int fpa_repetition_period;
151   unsigned int fpa_extension_flag;
152 };
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 struct msm_vidc_vui_display_info_payload {
155   unsigned int video_signal_present_flag;
156   unsigned int video_format;
157   unsigned int bit_depth_y;
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159   unsigned int bit_depth_c;
160   unsigned int video_full_range_flag;
161   unsigned int color_description_present_flag;
162   unsigned int color_primaries;
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164   unsigned int transfer_characteristics;
165   unsigned int matrix_coefficients;
166   unsigned int chroma_location_info_present_flag;
167   unsigned int chroma_format_idc;
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169   unsigned int separate_color_plane_flag;
170   unsigned int chroma_sample_loc_type_top_field;
171   unsigned int chroma_sample_loc_type_bottom_field;
172 };
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174 enum msm_vidc_extradata_type {
175   MSM_VIDC_EXTRADATA_NONE = 0x00000000,
176   MSM_VIDC_EXTRADATA_MB_QUANTIZATION = 0x00000001,
177   MSM_VIDC_EXTRADATA_INTERLACE_VIDEO = 0x00000002,
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179   MSM_VIDC_EXTRADATA_VC1_FRAMEDISP = 0x00000003,
180   MSM_VIDC_EXTRADATA_VC1_SEQDISP = 0x00000004,
181   MSM_VIDC_EXTRADATA_TIMESTAMP = 0x00000005,
182   MSM_VIDC_EXTRADATA_S3D_FRAME_PACKING = 0x00000006,
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184   MSM_VIDC_EXTRADATA_FRAME_RATE = 0x00000007,
185   MSM_VIDC_EXTRADATA_PANSCAN_WINDOW = 0x00000008,
186   MSM_VIDC_EXTRADATA_RECOVERY_POINT_SEI = 0x00000009,
187   MSM_VIDC_EXTRADATA_MPEG2_SEQDISP = 0x0000000D,
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189   MSM_VIDC_EXTRADATA_STREAM_USERDATA = 0x0000000E,
190   MSM_VIDC_EXTRADATA_FRAME_QP = 0x0000000F,
191   MSM_VIDC_EXTRADATA_FRAME_BITS_INFO = 0x00000010,
192   MSM_VIDC_EXTRADATA_INPUT_CROP = 0x0700000E,
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194   MSM_VIDC_EXTRADATA_DIGITAL_ZOOM = 0x07000010,
195   MSM_VIDC_EXTRADATA_MULTISLICE_INFO = 0x7F100000,
196   MSM_VIDC_EXTRADATA_NUM_CONCEALED_MB = 0x7F100001,
197   MSM_VIDC_EXTRADATA_INDEX = 0x7F100002,
198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199   MSM_VIDC_EXTRADATA_ASPECT_RATIO = 0x7F100003,
200   MSM_VIDC_EXTRADATA_METADATA_LTR = 0x7F100004,
201   MSM_VIDC_EXTRADATA_METADATA_FILLER = 0x7FE00002,
202   MSM_VIDC_EXTRADATA_METADATA_MBI = 0x7F100005,
203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204   MSM_VIDC_EXTRADATA_VUI_DISPLAY_INFO = 0x7F100006,
205 };
206 enum msm_vidc_interlace_type {
207   MSM_VIDC_INTERLACE_FRAME_PROGRESSIVE = 0x01,
208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209   MSM_VIDC_INTERLACE_INTERLEAVE_FRAME_TOPFIELDFIRST = 0x02,
210   MSM_VIDC_INTERLACE_INTERLEAVE_FRAME_BOTTOMFIELDFIRST = 0x04,
211   MSM_VIDC_INTERLACE_FRAME_TOPFIELDFIRST = 0x08,
212   MSM_VIDC_INTERLACE_FRAME_BOTTOMFIELDFIRST = 0x10,
213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214 };
215 enum msm_vidc_recovery_sei {
216   MSM_VIDC_FRAME_RECONSTRUCTION_INCORRECT = 0x0,
217   MSM_VIDC_FRAME_RECONSTRUCTION_CORRECT = 0x01,
218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219   MSM_VIDC_FRAME_RECONSTRUCTION_APPROXIMATELY_CORRECT = 0x02,
220 };
221 enum msm_vidc_userdata_type {
222   MSM_VIDC_USERDATA_TYPE_FRAME = 0x1,
223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224   MSM_VIDC_USERDATA_TYPE_TOP_FIELD = 0x2,
225   MSM_VIDC_USERDATA_TYPE_BOTTOM_FIELD = 0x3,
226 };
227 #endif
228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 
230