Home | History | Annotate | Download | only in linux
      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 _UAPI_MSM_VIDC_DEC_H_
     20 #define _UAPI_MSM_VIDC_DEC_H_
     21 #include <linux/types.h>
     22 #include <linux/ioctl.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define VDEC_S_BASE 0x40000000
     25 #define VDEC_S_SUCCESS (VDEC_S_BASE)
     26 #define VDEC_S_EFAIL (VDEC_S_BASE + 1)
     27 #define VDEC_S_EFATAL (VDEC_S_BASE + 2)
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define VDEC_S_EBADPARAM (VDEC_S_BASE + 3)
     30 #define VDEC_S_EINVALSTATE (VDEC_S_BASE + 4)
     31 #define VDEC_S_ENOSWRES (VDEC_S_BASE + 5)
     32 #define VDEC_S_ENOHWRES (VDEC_S_BASE + 6)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define VDEC_S_EINVALCMD (VDEC_S_BASE + 7)
     35 #define VDEC_S_ETIMEOUT (VDEC_S_BASE + 8)
     36 #define VDEC_S_ENOPREREQ (VDEC_S_BASE + 9)
     37 #define VDEC_S_ECMDQFULL (VDEC_S_BASE + 10)
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define VDEC_S_ENOTSUPP (VDEC_S_BASE + 11)
     40 #define VDEC_S_ENOTIMPL (VDEC_S_BASE + 12)
     41 #define VDEC_S_BUSY (VDEC_S_BASE + 13)
     42 #define VDEC_S_INPUT_BITSTREAM_ERR (VDEC_S_BASE + 14)
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define VDEC_INTF_VER 1
     45 #define VDEC_MSG_BASE 0x0000000
     46 #define VDEC_MSG_INVALID (VDEC_MSG_BASE + 0)
     47 #define VDEC_MSG_RESP_INPUT_BUFFER_DONE (VDEC_MSG_BASE + 1)
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define VDEC_MSG_RESP_OUTPUT_BUFFER_DONE (VDEC_MSG_BASE + 2)
     50 #define VDEC_MSG_RESP_INPUT_FLUSHED (VDEC_MSG_BASE + 3)
     51 #define VDEC_MSG_RESP_OUTPUT_FLUSHED (VDEC_MSG_BASE + 4)
     52 #define VDEC_MSG_RESP_FLUSH_INPUT_DONE (VDEC_MSG_BASE + 5)
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define VDEC_MSG_RESP_FLUSH_OUTPUT_DONE (VDEC_MSG_BASE + 6)
     55 #define VDEC_MSG_RESP_START_DONE (VDEC_MSG_BASE + 7)
     56 #define VDEC_MSG_RESP_STOP_DONE (VDEC_MSG_BASE + 8)
     57 #define VDEC_MSG_RESP_PAUSE_DONE (VDEC_MSG_BASE + 9)
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define VDEC_MSG_RESP_RESUME_DONE (VDEC_MSG_BASE + 10)
     60 #define VDEC_MSG_RESP_RESOURCE_LOADED (VDEC_MSG_BASE + 11)
     61 #define VDEC_EVT_RESOURCES_LOST (VDEC_MSG_BASE + 12)
     62 #define VDEC_MSG_EVT_CONFIG_CHANGED (VDEC_MSG_BASE + 13)
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define VDEC_MSG_EVT_HW_ERROR (VDEC_MSG_BASE + 14)
     65 #define VDEC_MSG_EVT_INFO_CONFIG_CHANGED (VDEC_MSG_BASE + 15)
     66 #define VDEC_MSG_EVT_INFO_FIELD_DROPPED (VDEC_MSG_BASE + 16)
     67 #define VDEC_MSG_EVT_HW_OVERLOAD (VDEC_MSG_BASE + 17)
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define VDEC_MSG_EVT_MAX_CLIENTS (VDEC_MSG_BASE + 18)
     70 #define VDEC_MSG_EVT_HW_UNSUPPORTED (VDEC_MSG_BASE + 19)
     71 #define VDEC_BUFFERFLAG_EOS 0x00000001
     72 #define VDEC_BUFFERFLAG_DECODEONLY 0x00000004
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define VDEC_BUFFERFLAG_DATACORRUPT 0x00000008
     75 #define VDEC_BUFFERFLAG_ENDOFFRAME 0x00000010
     76 #define VDEC_BUFFERFLAG_SYNCFRAME 0x00000020
     77 #define VDEC_BUFFERFLAG_EXTRADATA 0x00000040
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #define VDEC_BUFFERFLAG_CODECCONFIG 0x00000080
     80 #define VDEC_EXTRADATA_NONE 0x001
     81 #define VDEC_EXTRADATA_QP 0x004
     82 #define VDEC_EXTRADATA_MB_ERROR_MAP 0x008
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 #define VDEC_EXTRADATA_SEI 0x010
     85 #define VDEC_EXTRADATA_VUI 0x020
     86 #define VDEC_EXTRADATA_VC1 0x040
     87 #define VDEC_EXTRADATA_EXT_DATA 0x0800
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define VDEC_EXTRADATA_USER_DATA 0x1000
     90 #define VDEC_EXTRADATA_EXT_BUFFER 0x2000
     91 #define VDEC_CMDBASE 0x800
     92 #define VDEC_CMD_SET_INTF_VERSION (VDEC_CMDBASE)
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define VDEC_IOCTL_MAGIC 'v'
     95 struct vdec_ioctl_msg {
     96  void __user *in;
     97  void __user *out;
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 };
    100 #define VDEC_IOCTL_GET_PROFILE_LEVEL_SUPPORTED   _IOWR(VDEC_IOCTL_MAGIC, 0, struct vdec_ioctl_msg)
    101 #define VDEC_IOCTL_GET_INTERLACE_FORMAT   _IOR(VDEC_IOCTL_MAGIC, 1, struct vdec_ioctl_msg)
    102 #define VDEC_IOCTL_GET_CURRENT_PROFILE_LEVEL   _IOWR(VDEC_IOCTL_MAGIC, 2, struct vdec_ioctl_msg)
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #define VDEC_IOCTL_SET_OUTPUT_FORMAT   _IOWR(VDEC_IOCTL_MAGIC, 3, struct vdec_ioctl_msg)
    105 #define VDEC_IOCTL_GET_OUTPUT_FORMAT   _IOWR(VDEC_IOCTL_MAGIC, 4, struct vdec_ioctl_msg)
    106 #define VDEC_IOCTL_SET_CODEC   _IOW(VDEC_IOCTL_MAGIC, 5, struct vdec_ioctl_msg)
    107 #define VDEC_IOCTL_GET_CODEC   _IOR(VDEC_IOCTL_MAGIC, 6, struct vdec_ioctl_msg)
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 #define VDEC_IOCTL_SET_PICRES   _IOW(VDEC_IOCTL_MAGIC, 7, struct vdec_ioctl_msg)
    110 #define VDEC_IOCTL_GET_PICRES   _IOR(VDEC_IOCTL_MAGIC, 8, struct vdec_ioctl_msg)
    111 #define VDEC_IOCTL_SET_EXTRADATA   _IOW(VDEC_IOCTL_MAGIC, 9, struct vdec_ioctl_msg)
    112 #define VDEC_IOCTL_GET_EXTRADATA   _IOR(VDEC_IOCTL_MAGIC, 10, struct vdec_ioctl_msg)
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114 #define VDEC_IOCTL_SET_SEQUENCE_HEADER   _IOW(VDEC_IOCTL_MAGIC, 11, struct vdec_ioctl_msg)
    115 #define VDEC_IOCTL_SET_BUFFER_REQ   _IOW(VDEC_IOCTL_MAGIC, 12, struct vdec_ioctl_msg)
    116 #define VDEC_IOCTL_GET_BUFFER_REQ   _IOR(VDEC_IOCTL_MAGIC, 13, struct vdec_ioctl_msg)
    117 #define VDEC_IOCTL_ALLOCATE_BUFFER   _IOWR(VDEC_IOCTL_MAGIC, 14, struct vdec_ioctl_msg)
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 #define VDEC_IOCTL_FREE_BUFFER   _IOW(VDEC_IOCTL_MAGIC, 15, struct vdec_ioctl_msg)
    120 #define VDEC_IOCTL_SET_BUFFER   _IOW(VDEC_IOCTL_MAGIC, 16, struct vdec_ioctl_msg)
    121 #define VDEC_IOCTL_FILL_OUTPUT_BUFFER   _IOW(VDEC_IOCTL_MAGIC, 17, struct vdec_ioctl_msg)
    122 #define VDEC_IOCTL_DECODE_FRAME   _IOW(VDEC_IOCTL_MAGIC, 18, struct vdec_ioctl_msg)
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124 #define VDEC_IOCTL_LOAD_RESOURCES _IO(VDEC_IOCTL_MAGIC, 19)
    125 #define VDEC_IOCTL_CMD_START _IO(VDEC_IOCTL_MAGIC, 20)
    126 #define VDEC_IOCTL_CMD_STOP _IO(VDEC_IOCTL_MAGIC, 21)
    127 #define VDEC_IOCTL_CMD_PAUSE _IO(VDEC_IOCTL_MAGIC, 22)
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129 #define VDEC_IOCTL_CMD_RESUME _IO(VDEC_IOCTL_MAGIC, 23)
    130 #define VDEC_IOCTL_CMD_FLUSH _IOW(VDEC_IOCTL_MAGIC, 24, struct vdec_ioctl_msg)
    131 #define VDEC_IOCTL_GET_NEXT_MSG   _IOR(VDEC_IOCTL_MAGIC, 25, struct vdec_ioctl_msg)
    132 #define VDEC_IOCTL_STOP_NEXT_MSG _IO(VDEC_IOCTL_MAGIC, 26)
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134 #define VDEC_IOCTL_GET_NUMBER_INSTANCES   _IOR(VDEC_IOCTL_MAGIC, 27, struct vdec_ioctl_msg)
    135 #define VDEC_IOCTL_SET_PICTURE_ORDER   _IOW(VDEC_IOCTL_MAGIC, 28, struct vdec_ioctl_msg)
    136 #define VDEC_IOCTL_SET_FRAME_RATE   _IOW(VDEC_IOCTL_MAGIC, 29, struct vdec_ioctl_msg)
    137 #define VDEC_IOCTL_SET_H264_MV_BUFFER   _IOW(VDEC_IOCTL_MAGIC, 30, struct vdec_ioctl_msg)
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139 #define VDEC_IOCTL_FREE_H264_MV_BUFFER   _IOW(VDEC_IOCTL_MAGIC, 31, struct vdec_ioctl_msg)
    140 #define VDEC_IOCTL_GET_MV_BUFFER_SIZE   _IOR(VDEC_IOCTL_MAGIC, 32, struct vdec_ioctl_msg)
    141 #define VDEC_IOCTL_SET_IDR_ONLY_DECODING   _IO(VDEC_IOCTL_MAGIC, 33)
    142 #define VDEC_IOCTL_SET_CONT_ON_RECONFIG   _IO(VDEC_IOCTL_MAGIC, 34)
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144 #define VDEC_IOCTL_SET_DISABLE_DMX   _IOW(VDEC_IOCTL_MAGIC, 35, struct vdec_ioctl_msg)
    145 #define VDEC_IOCTL_GET_DISABLE_DMX   _IOR(VDEC_IOCTL_MAGIC, 36, struct vdec_ioctl_msg)
    146 #define VDEC_IOCTL_GET_DISABLE_DMX_SUPPORT   _IOR(VDEC_IOCTL_MAGIC, 37, struct vdec_ioctl_msg)
    147 #define VDEC_IOCTL_SET_PERF_CLK   _IOR(VDEC_IOCTL_MAGIC, 38, struct vdec_ioctl_msg)
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149 #define VDEC_IOCTL_SET_META_BUFFERS   _IOW(VDEC_IOCTL_MAGIC, 39, struct vdec_ioctl_msg)
    150 #define VDEC_IOCTL_FREE_META_BUFFERS   _IO(VDEC_IOCTL_MAGIC, 40)
    151 enum vdec_picture {
    152  PICTURE_TYPE_I,
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154  PICTURE_TYPE_P,
    155  PICTURE_TYPE_B,
    156  PICTURE_TYPE_BI,
    157  PICTURE_TYPE_SKIP,
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159  PICTURE_TYPE_IDR,
    160  PICTURE_TYPE_UNKNOWN
    161 };
    162 enum vdec_buffer {
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164  VDEC_BUFFER_TYPE_INPUT,
    165  VDEC_BUFFER_TYPE_OUTPUT
    166 };
    167 struct vdec_allocatorproperty {
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169  enum vdec_buffer buffer_type;
    170  uint32_t mincount;
    171  uint32_t maxcount;
    172  uint32_t actualcount;
    173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    174  size_t buffer_size;
    175  uint32_t alignment;
    176  uint32_t buf_poolid;
    177  size_t meta_buffer_size;
    178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    179 };
    180 struct vdec_bufferpayload {
    181  void __user *bufferaddr;
    182  size_t buffer_len;
    183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    184  int pmem_fd;
    185  size_t offset;
    186  size_t mmaped_size;
    187 };
    188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    189 struct vdec_setbuffer_cmd {
    190  enum vdec_buffer buffer_type;
    191  struct vdec_bufferpayload buffer;
    192 };
    193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    194 struct vdec_fillbuffer_cmd {
    195  struct vdec_bufferpayload buffer;
    196  void *client_data;
    197 };
    198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    199 enum vdec_bufferflush {
    200  VDEC_FLUSH_TYPE_INPUT,
    201  VDEC_FLUSH_TYPE_OUTPUT,
    202  VDEC_FLUSH_TYPE_ALL
    203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    204 };
    205 enum vdec_codec {
    206  VDEC_CODECTYPE_H264 = 0x1,
    207  VDEC_CODECTYPE_H263 = 0x2,
    208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    209  VDEC_CODECTYPE_MPEG4 = 0x3,
    210  VDEC_CODECTYPE_DIVX_3 = 0x4,
    211  VDEC_CODECTYPE_DIVX_4 = 0x5,
    212  VDEC_CODECTYPE_DIVX_5 = 0x6,
    213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    214  VDEC_CODECTYPE_DIVX_6 = 0x7,
    215  VDEC_CODECTYPE_XVID = 0x8,
    216  VDEC_CODECTYPE_MPEG1 = 0x9,
    217  VDEC_CODECTYPE_MPEG2 = 0xa,
    218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    219  VDEC_CODECTYPE_VC1 = 0xb,
    220  VDEC_CODECTYPE_VC1_RCV = 0xc,
    221  VDEC_CODECTYPE_HEVC = 0xd,
    222  VDEC_CODECTYPE_MVC = 0xe,
    223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    224 };
    225 enum vdec_mpeg2_profile {
    226  VDEC_MPEG2ProfileSimple = 0x1,
    227  VDEC_MPEG2ProfileMain = 0x2,
    228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    229  VDEC_MPEG2Profile422 = 0x4,
    230  VDEC_MPEG2ProfileSNR = 0x8,
    231  VDEC_MPEG2ProfileSpatial = 0x10,
    232  VDEC_MPEG2ProfileHigh = 0x20,
    233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    234  VDEC_MPEG2ProfileKhronosExtensions = 0x6F000000,
    235  VDEC_MPEG2ProfileVendorStartUnused = 0x7F000000,
    236  VDEC_MPEG2ProfileMax = 0x7FFFFFFF
    237 };
    238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    239 enum vdec_mpeg2_level {
    240  VDEC_MPEG2LevelLL = 0x1,
    241  VDEC_MPEG2LevelML = 0x2,
    242  VDEC_MPEG2LevelH14 = 0x4,
    243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    244  VDEC_MPEG2LevelHL = 0x8,
    245  VDEC_MPEG2LevelKhronosExtensions = 0x6F000000,
    246  VDEC_MPEG2LevelVendorStartUnused = 0x7F000000,
    247  VDEC_MPEG2LevelMax = 0x7FFFFFFF
    248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    249 };
    250 enum vdec_mpeg4_profile {
    251  VDEC_MPEG4ProfileSimple = 0x01,
    252  VDEC_MPEG4ProfileSimpleScalable = 0x02,
    253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    254  VDEC_MPEG4ProfileCore = 0x04,
    255  VDEC_MPEG4ProfileMain = 0x08,
    256  VDEC_MPEG4ProfileNbit = 0x10,
    257  VDEC_MPEG4ProfileScalableTexture = 0x20,
    258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    259  VDEC_MPEG4ProfileSimpleFace = 0x40,
    260  VDEC_MPEG4ProfileSimpleFBA = 0x80,
    261  VDEC_MPEG4ProfileBasicAnimated = 0x100,
    262  VDEC_MPEG4ProfileHybrid = 0x200,
    263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    264  VDEC_MPEG4ProfileAdvancedRealTime = 0x400,
    265  VDEC_MPEG4ProfileCoreScalable = 0x800,
    266  VDEC_MPEG4ProfileAdvancedCoding = 0x1000,
    267  VDEC_MPEG4ProfileAdvancedCore = 0x2000,
    268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    269  VDEC_MPEG4ProfileAdvancedScalable = 0x4000,
    270  VDEC_MPEG4ProfileAdvancedSimple = 0x8000,
    271  VDEC_MPEG4ProfileKhronosExtensions = 0x6F000000,
    272  VDEC_MPEG4ProfileVendorStartUnused = 0x7F000000,
    273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    274  VDEC_MPEG4ProfileMax = 0x7FFFFFFF
    275 };
    276 enum vdec_mpeg4_level {
    277  VDEC_MPEG4Level0 = 0x01,
    278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    279  VDEC_MPEG4Level0b = 0x02,
    280  VDEC_MPEG4Level1 = 0x04,
    281  VDEC_MPEG4Level2 = 0x08,
    282  VDEC_MPEG4Level3 = 0x10,
    283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    284  VDEC_MPEG4Level4 = 0x20,
    285  VDEC_MPEG4Level4a = 0x40,
    286  VDEC_MPEG4Level5 = 0x80,
    287  VDEC_MPEG4LevelKhronosExtensions = 0x6F000000,
    288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    289  VDEC_MPEG4LevelVendorStartUnused = 0x7F000000,
    290  VDEC_MPEG4LevelMax = 0x7FFFFFFF
    291 };
    292 enum vdec_avc_profile {
    293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    294  VDEC_AVCProfileBaseline = 0x01,
    295  VDEC_AVCProfileMain = 0x02,
    296  VDEC_AVCProfileExtended = 0x04,
    297  VDEC_AVCProfileHigh = 0x08,
    298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    299  VDEC_AVCProfileHigh10 = 0x10,
    300  VDEC_AVCProfileHigh422 = 0x20,
    301  VDEC_AVCProfileHigh444 = 0x40,
    302  VDEC_AVCProfileKhronosExtensions = 0x6F000000,
    303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    304  VDEC_AVCProfileVendorStartUnused = 0x7F000000,
    305  VDEC_AVCProfileMax = 0x7FFFFFFF
    306 };
    307 enum vdec_avc_level {
    308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    309  VDEC_AVCLevel1 = 0x01,
    310  VDEC_AVCLevel1b = 0x02,
    311  VDEC_AVCLevel11 = 0x04,
    312  VDEC_AVCLevel12 = 0x08,
    313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    314  VDEC_AVCLevel13 = 0x10,
    315  VDEC_AVCLevel2 = 0x20,
    316  VDEC_AVCLevel21 = 0x40,
    317  VDEC_AVCLevel22 = 0x80,
    318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    319  VDEC_AVCLevel3 = 0x100,
    320  VDEC_AVCLevel31 = 0x200,
    321  VDEC_AVCLevel32 = 0x400,
    322  VDEC_AVCLevel4 = 0x800,
    323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    324  VDEC_AVCLevel41 = 0x1000,
    325  VDEC_AVCLevel42 = 0x2000,
    326  VDEC_AVCLevel5 = 0x4000,
    327  VDEC_AVCLevel51 = 0x8000,
    328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    329  VDEC_AVCLevelKhronosExtensions = 0x6F000000,
    330  VDEC_AVCLevelVendorStartUnused = 0x7F000000,
    331  VDEC_AVCLevelMax = 0x7FFFFFFF
    332 };
    333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    334 enum vdec_divx_profile {
    335  VDEC_DIVXProfile_qMobile = 0x01,
    336  VDEC_DIVXProfile_Mobile = 0x02,
    337  VDEC_DIVXProfile_HD = 0x04,
    338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    339  VDEC_DIVXProfile_Handheld = 0x08,
    340  VDEC_DIVXProfile_Portable = 0x10,
    341  VDEC_DIVXProfile_HomeTheater = 0x20
    342 };
    343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    344 enum vdec_xvid_profile {
    345  VDEC_XVIDProfile_Simple = 0x1,
    346  VDEC_XVIDProfile_Advanced_Realtime_Simple = 0x2,
    347  VDEC_XVIDProfile_Advanced_Simple = 0x4
    348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    349 };
    350 enum vdec_xvid_level {
    351  VDEC_XVID_LEVEL_S_L0 = 0x1,
    352  VDEC_XVID_LEVEL_S_L1 = 0x2,
    353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    354  VDEC_XVID_LEVEL_S_L2 = 0x4,
    355  VDEC_XVID_LEVEL_S_L3 = 0x8,
    356  VDEC_XVID_LEVEL_ARTS_L1 = 0x10,
    357  VDEC_XVID_LEVEL_ARTS_L2 = 0x20,
    358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    359  VDEC_XVID_LEVEL_ARTS_L3 = 0x40,
    360  VDEC_XVID_LEVEL_ARTS_L4 = 0x80,
    361  VDEC_XVID_LEVEL_AS_L0 = 0x100,
    362  VDEC_XVID_LEVEL_AS_L1 = 0x200,
    363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    364  VDEC_XVID_LEVEL_AS_L2 = 0x400,
    365  VDEC_XVID_LEVEL_AS_L3 = 0x800,
    366  VDEC_XVID_LEVEL_AS_L4 = 0x1000
    367 };
    368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    369 enum vdec_h263profile {
    370  VDEC_H263ProfileBaseline = 0x01,
    371  VDEC_H263ProfileH320Coding = 0x02,
    372  VDEC_H263ProfileBackwardCompatible = 0x04,
    373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    374  VDEC_H263ProfileISWV2 = 0x08,
    375  VDEC_H263ProfileISWV3 = 0x10,
    376  VDEC_H263ProfileHighCompression = 0x20,
    377  VDEC_H263ProfileInternet = 0x40,
    378 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    379  VDEC_H263ProfileInterlace = 0x80,
    380  VDEC_H263ProfileHighLatency = 0x100,
    381  VDEC_H263ProfileKhronosExtensions = 0x6F000000,
    382  VDEC_H263ProfileVendorStartUnused = 0x7F000000,
    383 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    384  VDEC_H263ProfileMax = 0x7FFFFFFF
    385 };
    386 enum vdec_h263level {
    387  VDEC_H263Level10 = 0x01,
    388 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    389  VDEC_H263Level20 = 0x02,
    390  VDEC_H263Level30 = 0x04,
    391  VDEC_H263Level40 = 0x08,
    392  VDEC_H263Level45 = 0x10,
    393 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    394  VDEC_H263Level50 = 0x20,
    395  VDEC_H263Level60 = 0x40,
    396  VDEC_H263Level70 = 0x80,
    397  VDEC_H263LevelKhronosExtensions = 0x6F000000,
    398 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    399  VDEC_H263LevelVendorStartUnused = 0x7F000000,
    400  VDEC_H263LevelMax = 0x7FFFFFFF
    401 };
    402 enum vdec_wmv_format {
    403 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    404  VDEC_WMVFormatUnused = 0x01,
    405  VDEC_WMVFormat7 = 0x02,
    406  VDEC_WMVFormat8 = 0x04,
    407  VDEC_WMVFormat9 = 0x08,
    408 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    409  VDEC_WMFFormatKhronosExtensions = 0x6F000000,
    410  VDEC_WMFFormatVendorStartUnused = 0x7F000000,
    411  VDEC_WMVFormatMax = 0x7FFFFFFF
    412 };
    413 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    414 enum vdec_vc1_profile {
    415  VDEC_VC1ProfileSimple = 0x1,
    416  VDEC_VC1ProfileMain = 0x2,
    417  VDEC_VC1ProfileAdvanced = 0x4
    418 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    419 };
    420 enum vdec_vc1_level {
    421  VDEC_VC1_LEVEL_S_Low = 0x1,
    422  VDEC_VC1_LEVEL_S_Medium = 0x2,
    423 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    424  VDEC_VC1_LEVEL_M_Low = 0x4,
    425  VDEC_VC1_LEVEL_M_Medium = 0x8,
    426  VDEC_VC1_LEVEL_M_High = 0x10,
    427  VDEC_VC1_LEVEL_A_L0 = 0x20,
    428 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    429  VDEC_VC1_LEVEL_A_L1 = 0x40,
    430  VDEC_VC1_LEVEL_A_L2 = 0x80,
    431  VDEC_VC1_LEVEL_A_L3 = 0x100,
    432  VDEC_VC1_LEVEL_A_L4 = 0x200
    433 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    434 };
    435 struct vdec_profile_level {
    436  uint32_t profiles;
    437  uint32_t levels;
    438 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    439 };
    440 enum vdec_interlaced_format {
    441  VDEC_InterlaceFrameProgressive = 0x1,
    442  VDEC_InterlaceInterleaveFrameTopFieldFirst = 0x2,
    443 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    444  VDEC_InterlaceInterleaveFrameBottomFieldFirst = 0x4
    445 };
    446 enum vdec_output_fromat {
    447  VDEC_YUV_FORMAT_NV12 = 0x1,
    448 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    449  VDEC_YUV_FORMAT_TILE_4x2 = 0x2
    450 };
    451 enum vdec_output_order {
    452  VDEC_ORDER_DISPLAY = 0x1,
    453 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    454  VDEC_ORDER_DECODE = 0x2
    455 };
    456 struct vdec_picsize {
    457  uint32_t frame_width;
    458 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    459  uint32_t frame_height;
    460  uint32_t stride;
    461  uint32_t scan_lines;
    462 };
    463 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    464 struct vdec_seqheader {
    465  void __user *ptr_seqheader;
    466  size_t seq_header_len;
    467  int pmem_fd;
    468 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    469  size_t pmem_offset;
    470 };
    471 struct vdec_mberror {
    472  void __user *ptr_errormap;
    473 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    474  size_t err_mapsize;
    475 };
    476 struct vdec_input_frameinfo {
    477  void __user *bufferaddr;
    478 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    479  size_t offset;
    480  size_t datalen;
    481  uint32_t flags;
    482  int64_t timestamp;
    483 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    484  void *client_data;
    485  int pmem_fd;
    486  size_t pmem_offset;
    487  void __user *desc_addr;
    488 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    489  uint32_t desc_size;
    490 };
    491 struct vdec_framesize {
    492  uint32_t left;
    493 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    494  uint32_t top;
    495  uint32_t right;
    496  uint32_t bottom;
    497 };
    498 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    499 struct vdec_aspectratioinfo {
    500  uint32_t aspect_ratio;
    501  uint32_t par_width;
    502  uint32_t par_height;
    503 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    504 };
    505 struct vdec_sep_metadatainfo {
    506  void __user *metabufaddr;
    507  uint32_t size;
    508 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    509 };
    510 struct vdec_output_frameinfo {
    511  void __user *bufferaddr;
    512  size_t offset;
    513 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    514  size_t len;
    515  uint32_t flags;
    516  int64_t time_stamp;
    517  enum vdec_picture pic_type;
    518 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    519  void *client_data;
    520  void *input_frame_clientdata;
    521  struct vdec_picsize picsize;
    522  struct vdec_framesize framesize;
    523 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    524  enum vdec_interlaced_format interlaced_format;
    525  struct vdec_aspectratioinfo aspect_ratio_info;
    526  struct vdec_sep_metadatainfo metadata_info;
    527 };
    528 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    529 union vdec_msgdata {
    530  struct vdec_output_frameinfo output_frame;
    531  void *input_frame_clientdata;
    532 };
    533 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    534 struct vdec_msginfo {
    535  uint32_t status_code;
    536  uint32_t msgcode;
    537  union vdec_msgdata msgdata;
    538 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    539  size_t msgdatasize;
    540 };
    541 struct vdec_framerate {
    542  unsigned long fps_denominator;
    543 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    544  unsigned long fps_numerator;
    545 };
    546 struct vdec_h264_mv{
    547  size_t size;
    548 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    549  int count;
    550  int pmem_fd;
    551  int offset;
    552 };
    553 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    554 struct vdec_mv_buff_size{
    555  int width;
    556  int height;
    557  int size;
    558 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    559  int alignment;
    560 };
    561 struct vdec_meta_buffers {
    562  size_t size;
    563 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    564  int count;
    565  int pmem_fd;
    566  int pmem_fd_iommu;
    567  int offset;
    568 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    569 };
    570 #endif
    571 
    572