Home | History | Annotate | Download | only in media
      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 struct msm_vidc_extradata_header {
     22  unsigned int size;
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24  unsigned int:32;
     25  unsigned int:32;
     26  unsigned int type;
     27  unsigned int data_size;
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29  unsigned char data[1];
     30 };
     31 struct msm_vidc_interlace_payload {
     32  unsigned int format;
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 };
     35 struct msm_vidc_framerate_payload {
     36  unsigned int frame_rate;
     37 };
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 struct msm_vidc_ts_payload {
     40  unsigned int timestamp_lo;
     41  unsigned int timestamp_hi;
     42 };
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 struct msm_vidc_concealmb_payload {
     45  unsigned int num_mbs;
     46 };
     47 struct msm_vidc_recoverysei_payload {
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  unsigned int flags;
     50 };
     51 struct msm_vidc_aspect_ratio_payload {
     52  unsigned int size;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  unsigned int version;
     55  unsigned int port_index;
     56  unsigned int aspect_width;
     57  unsigned int aspect_height;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 };
     60 struct msm_vidc_mpeg2_seqdisp_payload {
     61  unsigned int video_format;
     62  bool color_descp;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  unsigned int color_primaries;
     65  unsigned int transfer_char;
     66  unsigned int matrix_coeffs;
     67  unsigned int disp_width;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  unsigned int disp_height;
     70 };
     71 struct msm_vidc_input_crop_payload {
     72  unsigned int size;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  unsigned int version;
     75  unsigned int port_index;
     76  unsigned int left;
     77  unsigned int top;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79  unsigned int width;
     80  unsigned int height;
     81 };
     82 struct msm_vidc_digital_zoom_payload {
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  unsigned int size;
     85  unsigned int version;
     86  unsigned int port_index;
     87  unsigned int zoom_width;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89  unsigned int zoom_height;
     90 };
     91 struct msm_vidc_extradata_index {
     92  unsigned int type;
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94  union {
     95  struct msm_vidc_input_crop_payload input_crop;
     96  struct msm_vidc_digital_zoom_payload digital_zoom;
     97  struct msm_vidc_aspect_ratio_payload aspect_ratio;
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99  };
    100 };
    101 struct msm_vidc_panscan_window {
    102  unsigned int panscan_height_offset;
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104  unsigned int panscan_width_offset;
    105  unsigned int panscan_window_width;
    106  unsigned int panscan_window_height;
    107 };
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 struct msm_vidc_panscan_window_payload {
    110  unsigned int num_panscan_windows;
    111  struct msm_vidc_panscan_window wnd[1];
    112 };
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114 struct msm_vidc_stream_userdata_payload {
    115  unsigned int type;
    116  unsigned int data[1];
    117 };
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 struct msm_vidc_frame_qp_payload {
    120  unsigned int frame_qp;
    121 };
    122 struct msm_vidc_frame_bits_info_payload {
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124  unsigned int frame_bits;
    125  unsigned int header_bits;
    126 };
    127 struct msm_vidc_s3d_frame_packing_payload {
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129  unsigned int fpa_id;
    130  unsigned int cancel_flag;
    131  unsigned int fpa_type;
    132  unsigned int quin_cunx_flag;
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134  unsigned int content_interprtation_type;
    135  unsigned int spatial_flipping_flag;
    136  unsigned int frame0_flipped_flag;
    137  unsigned int field_views_flag;
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139  unsigned int current_frame_is_frame0_flag;
    140  unsigned int frame0_self_contained_flag;
    141  unsigned int frame1_self_contained_flag;
    142  unsigned int frame0_graid_pos_x;
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144  unsigned int frame0_graid_pos_y;
    145  unsigned int frame1_graid_pos_x;
    146  unsigned int frame1_graid_pos_y;
    147  unsigned int fpa_reserved_byte;
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149  unsigned int fpa_repetition_period;
    150  unsigned int fpa_extension_flag;
    151 };
    152 enum msm_vidc_extradata_type {
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154  MSM_VIDC_EXTRADATA_NONE = 0x00000000,
    155  MSM_VIDC_EXTRADATA_MB_QUANTIZATION = 0x00000001,
    156  MSM_VIDC_EXTRADATA_INTERLACE_VIDEO = 0x00000002,
    157  MSM_VIDC_EXTRADATA_VC1_FRAMEDISP = 0x00000003,
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159  MSM_VIDC_EXTRADATA_VC1_SEQDISP = 0x00000004,
    160  MSM_VIDC_EXTRADATA_TIMESTAMP = 0x00000005,
    161  MSM_VIDC_EXTRADATA_S3D_FRAME_PACKING = 0x00000006,
    162  MSM_VIDC_EXTRADATA_FRAME_RATE = 0x00000007,
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164  MSM_VIDC_EXTRADATA_PANSCAN_WINDOW = 0x00000008,
    165  MSM_VIDC_EXTRADATA_RECOVERY_POINT_SEI = 0x00000009,
    166  MSM_VIDC_EXTRADATA_MPEG2_SEQDISP = 0x0000000D,
    167  MSM_VIDC_EXTRADATA_STREAM_USERDATA = 0x0000000E,
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169  MSM_VIDC_EXTRADATA_FRAME_QP = 0x0000000F,
    170  MSM_VIDC_EXTRADATA_FRAME_BITS_INFO = 0x00000010,
    171  MSM_VIDC_EXTRADATA_INPUT_CROP = 0x0700000E,
    172  MSM_VIDC_EXTRADATA_DIGITAL_ZOOM = 0x07000010,
    173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    174  MSM_VIDC_EXTRADATA_MULTISLICE_INFO = 0x7F100000,
    175  MSM_VIDC_EXTRADATA_NUM_CONCEALED_MB = 0x7F100001,
    176  MSM_VIDC_EXTRADATA_INDEX = 0x7F100002,
    177  MSM_VIDC_EXTRADATA_ASPECT_RATIO = 0x7F100003,
    178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    179  MSM_VIDC_EXTRADATA_METADATA_LTR = 0x7F100004,
    180  MSM_VIDC_EXTRADATA_METADATA_FILLER = 0x7FE00002,
    181  MSM_VIDC_EXTRADATA_METADATA_MBI = 0x7F100005,
    182 };
    183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    184 enum msm_vidc_interlace_type {
    185  MSM_VIDC_INTERLACE_FRAME_PROGRESSIVE = 0x01,
    186  MSM_VIDC_INTERLACE_INTERLEAVE_FRAME_TOPFIELDFIRST = 0x02,
    187  MSM_VIDC_INTERLACE_INTERLEAVE_FRAME_BOTTOMFIELDFIRST = 0x04,
    188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    189  MSM_VIDC_INTERLACE_FRAME_TOPFIELDFIRST = 0x08,
    190  MSM_VIDC_INTERLACE_FRAME_BOTTOMFIELDFIRST = 0x10,
    191 };
    192 enum msm_vidc_recovery_sei {
    193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    194  MSM_VIDC_FRAME_RECONSTRUCTION_INCORRECT = 0x0,
    195  MSM_VIDC_FRAME_RECONSTRUCTION_CORRECT = 0x01,
    196  MSM_VIDC_FRAME_RECONSTRUCTION_APPROXIMATELY_CORRECT = 0x02,
    197 };
    198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    199 enum msm_vidc_userdata_type {
    200  MSM_VIDC_USERDATA_TYPE_FRAME = 0x1,
    201  MSM_VIDC_USERDATA_TYPE_TOP_FIELD = 0x2,
    202  MSM_VIDC_USERDATA_TYPE_BOTTOM_FIELD = 0x3,
    203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    204 };
    205 #endif
    206 
    207