• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #define MSM_VIDC_HAL_INTERLACE_COLOR_FORMAT_NV12 0x2
23 #define MSM_VIDC_HAL_INTERLACE_COLOR_FORMAT_NV12_UBWC 0x8002
24 struct msm_vidc_extradata_header {
25   unsigned int size;
26   unsigned int : 32;
27   unsigned int : 32;
28   unsigned int type;
29   unsigned int data_size;
30   unsigned char data[1];
31 };
32 struct msm_vidc_interlace_payload {
33   unsigned int format;
34   unsigned int color_format;
35 };
36 struct msm_vidc_framerate_payload {
37   unsigned int frame_rate;
38 };
39 struct msm_vidc_ts_payload {
40   unsigned int timestamp_lo;
41   unsigned int timestamp_hi;
42 };
43 struct msm_vidc_concealmb_payload {
44   unsigned int num_mbs;
45 };
46 struct msm_vidc_recoverysei_payload {
47   unsigned int flags;
48 };
49 struct msm_vidc_aspect_ratio_payload {
50   unsigned int size;
51   unsigned int version;
52   unsigned int port_index;
53   unsigned int aspect_width;
54   unsigned int aspect_height;
55 };
56 struct msm_vidc_mpeg2_seqdisp_payload {
57   unsigned int video_format;
58   unsigned int color_descp;
59   unsigned int color_primaries;
60   unsigned int transfer_char;
61   unsigned int matrix_coeffs;
62   unsigned int disp_width;
63   unsigned int disp_height;
64 };
65 struct msm_vidc_vc1_seqdisp_payload {
66   unsigned int prog_seg_format;
67   unsigned int uv_sampl_fmt;
68   unsigned int color_format;
69   unsigned int color_primaries;
70   unsigned int transfer_char;
71   unsigned int matrix_coeffs;
72   unsigned int aspect_ratio;
73   unsigned int aspect_horiz;
74   unsigned int aspect_vert;
75 };
76 struct msm_vidc_input_crop_payload {
77   unsigned int size;
78   unsigned int version;
79   unsigned int port_index;
80   unsigned int left;
81   unsigned int top;
82   unsigned int width;
83   unsigned int height;
84 };
85 struct msm_vidc_output_crop_payload {
86   unsigned int size;
87   unsigned int version;
88   unsigned int port_index;
89   unsigned int left;
90   unsigned int top;
91   unsigned int display_width;
92   unsigned int display_height;
93   unsigned int width;
94   unsigned int height;
95 };
96 struct msm_vidc_digital_zoom_payload {
97   unsigned int size;
98   unsigned int version;
99   unsigned int port_index;
100   unsigned int zoom_width;
101   unsigned int zoom_height;
102 };
103 struct msm_vidc_extradata_index {
104   unsigned int type;
105   union {
106     struct msm_vidc_input_crop_payload input_crop;
107     struct msm_vidc_digital_zoom_payload digital_zoom;
108     struct msm_vidc_aspect_ratio_payload aspect_ratio;
109   };
110 };
111 struct msm_vidc_panscan_window {
112   unsigned int panscan_height_offset;
113   unsigned int panscan_width_offset;
114   unsigned int panscan_window_width;
115   unsigned int panscan_window_height;
116 };
117 struct msm_vidc_panscan_window_payload {
118   unsigned int num_panscan_windows;
119   struct msm_vidc_panscan_window wnd[1];
120 };
121 struct msm_vidc_stream_userdata_payload {
122   unsigned int type;
123   unsigned int data[1];
124 };
125 struct msm_vidc_frame_qp_payload {
126   unsigned int frame_qp;
127 };
128 struct msm_vidc_frame_bits_info_payload {
129   unsigned int frame_bits;
130   unsigned int header_bits;
131 };
132 struct msm_vidc_s3d_frame_packing_payload {
133   unsigned int fpa_id;
134   unsigned int cancel_flag;
135   unsigned int fpa_type;
136   unsigned int quin_cunx_flag;
137   unsigned int content_interprtation_type;
138   unsigned int spatial_flipping_flag;
139   unsigned int frame0_flipped_flag;
140   unsigned int field_views_flag;
141   unsigned int current_frame_is_frame0_flag;
142   unsigned int frame0_self_contained_flag;
143   unsigned int frame1_self_contained_flag;
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   unsigned int fpa_reserved_byte;
149   unsigned int fpa_repetition_period;
150   unsigned int fpa_extension_flag;
151 };
152 struct msm_vidc_vqzip_sei_payload {
153   unsigned int size;
154   unsigned int data[1];
155 };
156 struct msm_vidc_yuv_stats_payload {
157   unsigned int frame_qp;
158   unsigned int texture;
159   unsigned int luma_in_q16;
160   unsigned int frame_difference;
161 };
162 struct msm_vidc_vpx_colorspace_payload {
163   unsigned int color_space;
164   unsigned int yuv_range_flag;
165   unsigned int sumsampling_x;
166   unsigned int sumsampling_y;
167 };
168 struct msm_vidc_roi_qp_payload {
169   int upper_qp_offset;
170   int lower_qp_offset;
171   unsigned int b_roi_info;
172   int mbi_info_size;
173   unsigned int data[1];
174 };
175 struct msm_vidc_mastering_display_colour_sei_payload {
176   unsigned int nDisplayPrimariesX[3];
177   unsigned int nDisplayPrimariesY[3];
178   unsigned int nWhitePointX;
179   unsigned int nWhitePointY;
180   unsigned int nMaxDisplayMasteringLuminance;
181   unsigned int nMinDisplayMasteringLuminance;
182 };
183 struct msm_vidc_content_light_level_sei_payload {
184   unsigned int nMaxContentLight;
185   unsigned int nMaxPicAverageLight;
186 };
187 struct msm_vidc_vui_display_info_payload {
188   unsigned int video_signal_present_flag;
189   unsigned int video_format;
190   unsigned int bit_depth_y;
191   unsigned int bit_depth_c;
192   unsigned int video_full_range_flag;
193   unsigned int color_description_present_flag;
194   unsigned int color_primaries;
195   unsigned int transfer_characteristics;
196   unsigned int matrix_coefficients;
197   unsigned int chroma_location_info_present_flag;
198   unsigned int chroma_format_idc;
199   unsigned int separate_color_plane_flag;
200   unsigned int chroma_sample_loc_type_top_field;
201   unsigned int chroma_sample_loc_type_bottom_field;
202 };
203 enum msm_vidc_extradata_type {
204   MSM_VIDC_EXTRADATA_NONE = 0x00000000,
205   MSM_VIDC_EXTRADATA_MB_QUANTIZATION = 0x00000001,
206   MSM_VIDC_EXTRADATA_INTERLACE_VIDEO = 0x00000002,
207   MSM_VIDC_EXTRADATA_VC1_FRAMEDISP = 0x00000003,
208   MSM_VIDC_EXTRADATA_VC1_SEQDISP = 0x00000004,
209   MSM_VIDC_EXTRADATA_TIMESTAMP = 0x00000005,
210   MSM_VIDC_EXTRADATA_S3D_FRAME_PACKING = 0x00000006,
211   MSM_VIDC_EXTRADATA_FRAME_RATE = 0x00000007,
212   MSM_VIDC_EXTRADATA_PANSCAN_WINDOW = 0x00000008,
213   MSM_VIDC_EXTRADATA_RECOVERY_POINT_SEI = 0x00000009,
214   MSM_VIDC_EXTRADATA_MPEG2_SEQDISP = 0x0000000D,
215   MSM_VIDC_EXTRADATA_STREAM_USERDATA = 0x0000000E,
216   MSM_VIDC_EXTRADATA_FRAME_QP = 0x0000000F,
217   MSM_VIDC_EXTRADATA_FRAME_BITS_INFO = 0x00000010,
218   MSM_VIDC_EXTRADATA_VQZIP_SEI = 0x00000011,
219   MSM_VIDC_EXTRADATA_ROI_QP = 0x00000013,
220 #define MSM_VIDC_EXTRADATA_MASTERING_DISPLAY_COLOUR_SEI MSM_VIDC_EXTRADATA_MASTERING_DISPLAY_COLOUR_SEI
221   MSM_VIDC_EXTRADATA_MASTERING_DISPLAY_COLOUR_SEI = 0x00000015,
222 #define MSM_VIDC_EXTRADATA_CONTENT_LIGHT_LEVEL_SEI MSM_VIDC_EXTRADATA_CONTENT_LIGHT_LEVEL_SEI
223   MSM_VIDC_EXTRADATA_CONTENT_LIGHT_LEVEL_SEI = 0x00000016,
224 #define MSM_VIDC_EXTRADATA_PQ_INFO MSM_VIDC_EXTRADATA_PQ_INFO
225   MSM_VIDC_EXTRADATA_PQ_INFO = 0x00000017,
226   MSM_VIDC_EXTRADATA_INPUT_CROP = 0x0700000E,
227 #define MSM_VIDC_EXTRADATA_OUTPUT_CROP MSM_VIDC_EXTRADATA_OUTPUT_CROP
228   MSM_VIDC_EXTRADATA_OUTPUT_CROP = 0x0700000F,
229   MSM_VIDC_EXTRADATA_DIGITAL_ZOOM = 0x07000010,
230 #define MSM_VIDC_EXTRADATA_VPX_COLORSPACE_INFO MSM_VIDC_EXTRADATA_VPX_COLORSPACE_INFO
231   MSM_VIDC_EXTRADATA_VPX_COLORSPACE_INFO = 0x00000014,
232   MSM_VIDC_EXTRADATA_MULTISLICE_INFO = 0x7F100000,
233   MSM_VIDC_EXTRADATA_NUM_CONCEALED_MB = 0x7F100001,
234   MSM_VIDC_EXTRADATA_INDEX = 0x7F100002,
235   MSM_VIDC_EXTRADATA_ASPECT_RATIO = 0x7F100003,
236   MSM_VIDC_EXTRADATA_METADATA_LTR = 0x7F100004,
237   MSM_VIDC_EXTRADATA_METADATA_FILLER = 0x7FE00002,
238   MSM_VIDC_EXTRADATA_METADATA_MBI = 0x7F100005,
239 #define MSM_VIDC_EXTRADATA_VUI_DISPLAY_INFO MSM_VIDC_EXTRADATA_VUI_DISPLAY_INFO
240   MSM_VIDC_EXTRADATA_VUI_DISPLAY_INFO = 0x7F100006,
241   MSM_VIDC_EXTRADATA_YUVSTATS_INFO = 0x7F100007,
242 };
243 enum msm_vidc_interlace_type {
244   MSM_VIDC_INTERLACE_FRAME_PROGRESSIVE = 0x01,
245   MSM_VIDC_INTERLACE_INTERLEAVE_FRAME_TOPFIELDFIRST = 0x02,
246   MSM_VIDC_INTERLACE_INTERLEAVE_FRAME_BOTTOMFIELDFIRST = 0x04,
247   MSM_VIDC_INTERLACE_FRAME_TOPFIELDFIRST = 0x08,
248   MSM_VIDC_INTERLACE_FRAME_BOTTOMFIELDFIRST = 0x10,
249 };
250 #define MSM_VIDC_FRAMEPACK_CHECKERBOARD 0x00
251 #define MSM_VIDC_FRAMEPACK_COLUMN_INTERLEAVE 0x01
252 #define MSM_VIDC_FRAMEPACK_ROW_INTERLEAVE 0x02
253 #define MSM_VIDC_FRAMEPACK_SIDE_BY_SIDE 0x03
254 #define MSM_VIDC_FRAMEPACK_TOP_BOTTOM 0x04
255 #define MSM_VIDC_FRAMEPACK_TEMPORAL_INTERLEAVE 0x05
256 enum msm_vidc_recovery_sei {
257   MSM_VIDC_FRAME_RECONSTRUCTION_INCORRECT = 0x0,
258   MSM_VIDC_FRAME_RECONSTRUCTION_CORRECT = 0x01,
259   MSM_VIDC_FRAME_RECONSTRUCTION_APPROXIMATELY_CORRECT = 0x02,
260 };
261 enum msm_vidc_userdata_type {
262   MSM_VIDC_USERDATA_TYPE_FRAME = 0x1,
263   MSM_VIDC_USERDATA_TYPE_TOP_FIELD = 0x2,
264   MSM_VIDC_USERDATA_TYPE_BOTTOM_FIELD = 0x3,
265 };
266 enum msm_vidc_h264_color_primaries_values {
267   MSM_VIDC_RESERVED_1 = 0,
268   MSM_VIDC_BT709_5 = 1,
269   MSM_VIDC_UNSPECIFIED = 2,
270   MSM_VIDC_RESERVED_2 = 3,
271   MSM_VIDC_BT470_6_M = 4,
272   MSM_VIDC_BT601_6_625 = 5,
273   MSM_VIDC_BT470_6_BG = MSM_VIDC_BT601_6_625,
274   MSM_VIDC_BT601_6_525 = 6,
275   MSM_VIDC_SMPTE_240M = 7,
276   MSM_VIDC_GENERIC_FILM = 8,
277   MSM_VIDC_BT2020 = 9,
278 };
279 enum msm_vidc_vp9_color_primaries_values {
280   MSM_VIDC_CS_UNKNOWN,
281   MSM_VIDC_CS_BT_601,
282   MSM_VIDC_CS_BT_709,
283   MSM_VIDC_CS_SMPTE_170,
284   MSM_VIDC_CS_SMPTE_240,
285   MSM_VIDC_CS_BT_2020,
286   MSM_VIDC_CS_RESERVED,
287   MSM_VIDC_CS_RGB,
288 };
289 enum msm_vidc_h264_matrix_coeff_values {
290   MSM_VIDC_MATRIX_RGB = 0,
291   MSM_VIDC_MATRIX_BT_709_5 = 1,
292   MSM_VIDC_MATRIX_UNSPECIFIED = 2,
293   MSM_VIDC_MATRIX_RESERVED = 3,
294   MSM_VIDC_MATRIX_FCC_47 = 4,
295   MSM_VIDC_MATRIX_601_6_625 = 5,
296   MSM_VIDC_MATRIX_BT470_BG = MSM_VIDC_MATRIX_601_6_625,
297   MSM_VIDC_MATRIX_601_6_525 = 6,
298   MSM_VIDC_MATRIX_SMPTE_170M = MSM_VIDC_MATRIX_601_6_525,
299   MSM_VIDC_MATRIX_SMPTE_240M = 7,
300   MSM_VIDC_MATRIX_Y_CG_CO = 8,
301   MSM_VIDC_MATRIX_BT_2020 = 9,
302   MSM_VIDC_MATRIX_BT_2020_CONST = 10,
303 };
304 enum msm_vidc_h264_transfer_chars_values {
305   MSM_VIDC_TRANSFER_RESERVED_1 = 0,
306   MSM_VIDC_TRANSFER_BT709_5 = 1,
307   MSM_VIDC_TRANSFER_UNSPECIFIED = 2,
308   MSM_VIDC_TRANSFER_RESERVED_2 = 3,
309   MSM_VIDC_TRANSFER_BT_470_6_M = 4,
310   MSM_VIDC_TRANSFER_BT_470_6_BG = 5,
311   MSM_VIDC_TRANSFER_601_6_625 = 6,
312   MSM_VIDC_TRANSFER_601_6_525 = MSM_VIDC_TRANSFER_601_6_625,
313   MSM_VIDC_TRANSFER_SMPTE_240M = 7,
314   MSM_VIDC_TRANSFER_LINEAR = 8,
315   MSM_VIDC_TRANSFER_LOG_100_1 = 9,
316   MSM_VIDC_TRANSFER_LOG_100_SQRT10_1 = 10,
317   MSM_VIDC_TRANSFER_IEC_61966 = 11,
318   MSM_VIDC_TRANSFER_BT_1361 = 12,
319   MSM_VIDC_TRANSFER_SRGB = 13,
320   MSM_VIDC_TRANSFER_BT_2020_10 = 14,
321   MSM_VIDC_TRANSFER_BT_2020_12 = 15,
322 #define MSM_VIDC_TRANSFER_SMPTE_ST2084 MSM_VIDC_TRANSFER_SMPTE_ST2084
323   MSM_VIDC_TRANSFER_SMPTE_ST2084 = 16,
324 #define MSM_VIDC_TRANSFER_SMPTE_ST428_1 MSM_VIDC_TRANSFER_SMPTE_ST428_1
325   MSM_VIDC_TRANSFER_SMPTE_ST428_1 = 17,
326 #define MSM_VIDC_TRANSFER_HLG MSM_VIDC_TRANSFER_HLG
327   MSM_VIDC_TRANSFER_HLG = 18,
328 };
329 enum msm_vidc_pixel_depth {
330   MSM_VIDC_BIT_DEPTH_8,
331   MSM_VIDC_BIT_DEPTH_10,
332   MSM_VIDC_BIT_DEPTH_UNSUPPORTED = 0XFFFFFFFF,
333 };
334 enum msm_vidc_video_format {
335   MSM_VIDC_COMPONENT,
336   MSM_VIDC_PAL,
337   MSM_VIDC_NTSC,
338   MSM_VIDC_SECAM,
339   MSM_VIDC_MAC,
340   MSM_VIDC_UNSPECIFIED_FORMAT,
341   MSM_VIDC_RESERVED_1_FORMAT,
342   MSM_VIDC_RESERVED_2_FORMAT,
343 };
344 enum msm_vidc_color_desc_flag {
345   MSM_VIDC_COLOR_DESC_NOT_PRESENT,
346   MSM_VIDC_COLOR_DESC_PRESENT,
347 };
348 #define MSM_VIDC_PIC_STRUCT_MAYBE_INTERLACED 0x0
349 #define MSM_VIDC_PIC_STRUCT_PROGRESSIVE 0x1
350 #endif
351