• 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 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_payoad {
121  unsigned int frame_qp;
122 };
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 struct msm_vidc_frame_qp_payload {
125  unsigned int frame_qp;
126 };
127 struct msm_vidc_frame_bits_info_payload {
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129  unsigned int frame_bits;
130  unsigned int header_bits;
131 };
132 struct msm_vidc_s3d_frame_packing_payload {
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134  unsigned int fpa_id;
135  unsigned int cancel_flag;
136  unsigned int fpa_type;
137  unsigned int quin_cunx_flag;
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139  unsigned int content_interprtation_type;
140  unsigned int spatial_flipping_flag;
141  unsigned int frame0_flipped_flag;
142  unsigned int field_views_flag;
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144  unsigned int current_frame_is_frame0_flag;
145  unsigned int frame0_self_contained_flag;
146  unsigned int frame1_self_contained_flag;
147  unsigned int frame0_graid_pos_x;
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149  unsigned int frame0_graid_pos_y;
150  unsigned int frame1_graid_pos_x;
151  unsigned int frame1_graid_pos_y;
152  unsigned int fpa_reserved_byte;
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154  unsigned int fpa_repetition_period;
155  unsigned int fpa_extension_flag;
156 };
157 enum msm_vidc_extradata_type {
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159  MSM_VIDC_EXTRADATA_NONE = 0x00000000,
160  MSM_VIDC_EXTRADATA_MB_QUANTIZATION = 0x00000001,
161  MSM_VIDC_EXTRADATA_INTERLACE_VIDEO = 0x00000002,
162  MSM_VIDC_EXTRADATA_VC1_FRAMEDISP = 0x00000003,
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164  MSM_VIDC_EXTRADATA_VC1_SEQDISP = 0x00000004,
165  MSM_VIDC_EXTRADATA_TIMESTAMP = 0x00000005,
166  MSM_VIDC_EXTRADATA_S3D_FRAME_PACKING = 0x00000006,
167  MSM_VIDC_EXTRADATA_FRAME_RATE = 0x00000007,
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169  MSM_VIDC_EXTRADATA_PANSCAN_WINDOW = 0x00000008,
170  MSM_VIDC_EXTRADATA_RECOVERY_POINT_SEI = 0x00000009,
171  MSM_VIDC_EXTRADATA_MPEG2_SEQDISP = 0x0000000D,
172  MSM_VIDC_EXTRADATA_STREAM_USERDATA = 0x0000000E,
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174  MSM_VIDC_EXTRADATA_FRAME_QP = 0x0000000F,
175  MSM_VIDC_EXTRADATA_FRAME_BITS_INFO = 0x00000010,
176  MSM_VIDC_EXTRADATA_INPUT_CROP = 0x0700000E,
177  MSM_VIDC_EXTRADATA_DIGITAL_ZOOM = 0x07000010,
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179  MSM_VIDC_EXTRADATA_MULTISLICE_INFO = 0x7F100000,
180  MSM_VIDC_EXTRADATA_NUM_CONCEALED_MB = 0x7F100001,
181  MSM_VIDC_EXTRADATA_INDEX = 0x7F100002,
182  MSM_VIDC_EXTRADATA_ASPECT_RATIO = 0x7F100003,
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184  MSM_VIDC_EXTRADATA_METADATA_LTR = 0x7F100004,
185  MSM_VIDC_EXTRADATA_METADATA_FILLER = 0x7FE00002,
186  MSM_VIDC_EXTRADATA_METADATA_MBI = 0x7F100005,
187 };
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189 enum msm_vidc_interlace_type {
190  MSM_VIDC_INTERLACE_FRAME_PROGRESSIVE = 0x01,
191  MSM_VIDC_INTERLACE_INTERLEAVE_FRAME_TOPFIELDFIRST = 0x02,
192  MSM_VIDC_INTERLACE_INTERLEAVE_FRAME_BOTTOMFIELDFIRST = 0x04,
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194  MSM_VIDC_INTERLACE_FRAME_TOPFIELDFIRST = 0x08,
195  MSM_VIDC_INTERLACE_FRAME_BOTTOMFIELDFIRST = 0x10,
196 };
197 enum msm_vidc_recovery_sei {
198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199  MSM_VIDC_FRAME_RECONSTRUCTION_INCORRECT = 0x0,
200  MSM_VIDC_FRAME_RECONSTRUCTION_CORRECT = 0x01,
201  MSM_VIDC_FRAME_RECONSTRUCTION_APPROXIMATELY_CORRECT = 0x02,
202 };
203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 enum msm_vidc_userdata_type {
205  MSM_VIDC_USERDATA_TYPE_FRAME = 0x1,
206  MSM_VIDC_USERDATA_TYPE_TOP_FIELD = 0x2,
207  MSM_VIDC_USERDATA_TYPE_BOTTOM_FIELD = 0x3,
208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 };
210 #endif
211 
212