Nick Pelly | 21baae3 | 2010-06-23 16:17:58 -0700 | [diff] [blame] | 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 | **************************************************************************** |
| 11 | ****************************************************************************/ |
| 12 | #ifndef _MSM_VIDC_DEC_H_ |
| 13 | #define _MSM_VIDC_DEC_H_ |
| 14 | |
| 15 | #include <linux/types.h> |
| 16 | #include <linux/ioctl.h> |
| 17 | |
| 18 | #define VDEC_S_BASE 0x40000000 |
| 19 | |
| 20 | #define VDEC_S_SUCCESS (VDEC_S_BASE) |
| 21 | |
| 22 | #define VDEC_S_EFAIL (VDEC_S_BASE + 1) |
| 23 | |
| 24 | #define VDEC_S_EFATAL (VDEC_S_BASE + 2) |
| 25 | |
| 26 | #define VDEC_S_EBADPARAM (VDEC_S_BASE + 3) |
| 27 | |
| 28 | #define VDEC_S_EINVALSTATE (VDEC_S_BASE + 4) |
| 29 | |
| 30 | #define VDEC_S_ENOSWRES (VDEC_S_BASE + 5) |
| 31 | |
| 32 | #define VDEC_S_ENOHWRES (VDEC_S_BASE + 6) |
| 33 | |
| 34 | #define VDEC_S_EINVALCMD (VDEC_S_BASE + 7) |
| 35 | |
| 36 | #define VDEC_S_ETIMEOUT (VDEC_S_BASE + 8) |
| 37 | |
| 38 | #define VDEC_S_ENOPREREQ (VDEC_S_BASE + 9) |
| 39 | |
| 40 | #define VDEC_S_ECMDQFULL (VDEC_S_BASE + 10) |
| 41 | |
| 42 | #define VDEC_S_ENOTSUPP (VDEC_S_BASE + 11) |
| 43 | |
| 44 | #define VDEC_S_ENOTIMPL (VDEC_S_BASE + 12) |
| 45 | |
| 46 | #define VDEC_S_BUSY (VDEC_S_BASE + 13) |
| 47 | |
| 48 | #define VDEC_INTF_VER 1 |
| 49 | #define VDEC_MSG_BASE 0x0000000 |
| 50 | |
| 51 | #define VDEC_MSG_INVALID (VDEC_MSG_BASE + 0) |
| 52 | #define VDEC_MSG_RESP_INPUT_BUFFER_DONE (VDEC_MSG_BASE + 1) |
| 53 | #define VDEC_MSG_RESP_OUTPUT_BUFFER_DONE (VDEC_MSG_BASE + 2) |
| 54 | #define VDEC_MSG_RESP_INPUT_FLUSHED (VDEC_MSG_BASE + 3) |
| 55 | #define VDEC_MSG_RESP_OUTPUT_FLUSHED (VDEC_MSG_BASE + 4) |
| 56 | #define VDEC_MSG_RESP_FLUSH_INPUT_DONE (VDEC_MSG_BASE + 5) |
| 57 | #define VDEC_MSG_RESP_FLUSH_OUTPUT_DONE (VDEC_MSG_BASE + 6) |
| 58 | #define VDEC_MSG_RESP_START_DONE (VDEC_MSG_BASE + 7) |
| 59 | #define VDEC_MSG_RESP_STOP_DONE (VDEC_MSG_BASE + 8) |
| 60 | #define VDEC_MSG_RESP_PAUSE_DONE (VDEC_MSG_BASE + 9) |
| 61 | #define VDEC_MSG_RESP_RESUME_DONE (VDEC_MSG_BASE + 10) |
| 62 | #define VDEC_MSG_RESP_RESOURCE_LOADED (VDEC_MSG_BASE + 11) |
| 63 | #define VDEC_EVT_RESOURCES_LOST (VDEC_MSG_BASE + 12) |
| 64 | #define VDEC_MSG_EVT_CONFIG_CHANGED (VDEC_MSG_BASE + 13) |
| 65 | #define VDEC_MSG_EVT_HW_ERROR (VDEC_MSG_BASE + 14) |
| 66 | |
| 67 | #define VDEC_BUFFERFLAG_EOS 0x00000001 |
| 68 | #define VDEC_BUFFERFLAG_DECODEONLY 0x00000004 |
| 69 | #define VDEC_BUFFERFLAG_DATACORRUPT 0x00000008 |
| 70 | #define VDEC_BUFFERFLAG_ENDOFFRAME 0x00000010 |
| 71 | #define VDEC_BUFFERFLAG_SYNCFRAME 0x00000020 |
| 72 | #define VDEC_BUFFERFLAG_EXTRADATA 0x00000040 |
| 73 | #define VDEC_BUFFERFLAG_CODECCONFIG 0x00000080 |
| 74 | |
| 75 | #define VDEC_EXTRADATA_QP 0x00000001 |
| 76 | #define VDEC_EXTRADATA_SEI 0x00000002 |
| 77 | #define VDEC_EXTRADATA_VUI 0x00000004 |
| 78 | #define VDEC_EXTRADATA_MB_ERROR_MAP 0x00000008 |
| 79 | |
| 80 | #define VDEC_CMDBASE 0x800 |
| 81 | #define VDEC_CMD_SET_INTF_VERSION (VDEC_CMDBASE) |
| 82 | |
| 83 | #define VDEC_IOCTL_MAGIC 'v' |
| 84 | |
| 85 | struct vdec_ioctl_msg { |
| 86 | void *inputparam; |
| 87 | void *outputparam; |
| 88 | }; |
| 89 | |
| 90 | #define VDEC_IOCTL_GET_PROFILE_LEVEL_SUPPORTED _IOWR(VDEC_IOCTL_MAGIC, 0, struct vdec_ioctl_msg) |
| 91 | |
| 92 | #define VDEC_IOCTL_GET_INTERLACE_FORMAT _IOR(VDEC_IOCTL_MAGIC, 1, struct vdec_ioctl_msg) |
| 93 | |
| 94 | #define VDEC_IOCTL_GET_CURRENT_PROFILE_LEVEL _IOWR(VDEC_IOCTL_MAGIC, 2, struct vdec_ioctl_msg) |
| 95 | |
| 96 | #define VDEC_IOCTL_SET_OUTPUT_FORMAT _IOWR(VDEC_IOCTL_MAGIC, 3, struct vdec_ioctl_msg) |
| 97 | #define VDEC_IOCTL_GET_OUTPUT_FORMAT _IOWR(VDEC_IOCTL_MAGIC, 4, struct vdec_ioctl_msg) |
| 98 | |
| 99 | #define VDEC_IOCTL_SET_CODEC _IOW(VDEC_IOCTL_MAGIC, 5, struct vdec_ioctl_msg) |
| 100 | #define VDEC_IOCTL_GET_CODEC _IOR(VDEC_IOCTL_MAGIC, 6, struct vdec_ioctl_msg) |
| 101 | |
| 102 | #define VDEC_IOCTL_SET_PICRES _IOW(VDEC_IOCTL_MAGIC, 7, struct vdec_ioctl_msg) |
| 103 | #define VDEC_IOCTL_GET_PICRES _IOR(VDEC_IOCTL_MAGIC, 8, struct vdec_ioctl_msg) |
| 104 | |
| 105 | #define VDEC_IOCTL_SET_EXTRADATA _IOW(VDEC_IOCTL_MAGIC, 9, struct vdec_ioctl_msg) |
| 106 | #define VDEC_IOCTL_GET_EXTRADATA _IOR(VDEC_IOCTL_MAGIC, 10, struct vdec_ioctl_msg) |
| 107 | |
| 108 | #define VDEC_IOCTL_SET_SEQUENCE_HEADER _IOW(VDEC_IOCTL_MAGIC, 11, struct vdec_ioctl_msg) |
| 109 | |
| 110 | #define VDEC_IOCTL_SET_BUFFER_REQ _IOW(VDEC_IOCTL_MAGIC, 12, struct vdec_ioctl_msg) |
| 111 | #define VDEC_IOCTL_GET_BUFFER_REQ _IOR(VDEC_IOCTL_MAGIC, 13, struct vdec_ioctl_msg) |
| 112 | |
| 113 | #define VDEC_IOCTL_ALLOCATE_BUFFER _IOWR(VDEC_IOCTL_MAGIC, 14, struct vdec_ioctl_msg) |
| 114 | |
| 115 | #define VDEC_IOCTL_FREE_BUFFER _IOW(VDEC_IOCTL_MAGIC, 15, struct vdec_ioctl_msg) |
| 116 | |
| 117 | #define VDEC_IOCTL_SET_BUFFER _IOW(VDEC_IOCTL_MAGIC, 16, struct vdec_ioctl_msg) |
| 118 | |
| 119 | #define VDEC_IOCTL_FILL_OUTPUT_BUFFER _IOW(VDEC_IOCTL_MAGIC, 17, struct vdec_ioctl_msg) |
| 120 | |
| 121 | #define VDEC_IOCTL_DECODE_FRAME _IOW(VDEC_IOCTL_MAGIC, 18, struct vdec_ioctl_msg) |
| 122 | |
| 123 | #define VDEC_IOCTL_LOAD_RESOURCES _IO(VDEC_IOCTL_MAGIC, 19) |
| 124 | #define VDEC_IOCTL_CMD_START _IO(VDEC_IOCTL_MAGIC, 20) |
| 125 | #define VDEC_IOCTL_CMD_STOP _IO(VDEC_IOCTL_MAGIC, 21) |
| 126 | #define VDEC_IOCTL_CMD_PAUSE _IO(VDEC_IOCTL_MAGIC, 22) |
| 127 | #define VDEC_IOCTL_CMD_RESUME _IO(VDEC_IOCTL_MAGIC, 23) |
| 128 | |
| 129 | #define VDEC_IOCTL_CMD_FLUSH _IOW(VDEC_IOCTL_MAGIC, 24, struct vdec_ioctl_msg) |
| 130 | |
| 131 | #define VDEC_IOCTL_GET_NEXT_MSG _IOR(VDEC_IOCTL_MAGIC, 25, struct vdec_ioctl_msg) |
| 132 | |
| 133 | #define VDEC_IOCTL_STOP_NEXT_MSG _IO(VDEC_IOCTL_MAGIC, 26) |
| 134 | |
| 135 | #define VDEC_IOCTL_GET_NUMBER_INSTANCES _IOR(VDEC_IOCTL_MAGIC, 27, struct vdec_ioctl_msg) |
| 136 | |
| 137 | enum vdec_picture { |
| 138 | PICTURE_TYPE_I, |
| 139 | PICTURE_TYPE_P, |
| 140 | PICTURE_TYPE_B, |
| 141 | PICTURE_TYPE_BI, |
| 142 | PICTURE_TYPE_SKIP, |
| 143 | PICTURE_TYPE_UNKNOWN |
| 144 | }; |
| 145 | |
| 146 | enum vdec_buffer { |
| 147 | VDEC_BUFFER_TYPE_INPUT, |
| 148 | VDEC_BUFFER_TYPE_OUTPUT |
| 149 | }; |
| 150 | |
| 151 | struct vdec_allocatorproperty { |
| 152 | enum vdec_buffer buffer_type; |
| 153 | uint32_t mincount; |
| 154 | uint32_t maxcount; |
| 155 | uint32_t actualcount; |
| 156 | uint32_t buffer_size; |
| 157 | uint32_t alignment; |
| 158 | uint32_t buf_poolid; |
| 159 | }; |
| 160 | |
| 161 | struct vdec_bufferpayload { |
| 162 | uint8_t *bufferaddr; |
| 163 | uint32_t buffer_len; |
| 164 | int pmem_fd; |
| 165 | uint32_t offset; |
| 166 | uint32_t mmaped_size; |
| 167 | }; |
| 168 | |
| 169 | struct vdec_setbuffer_cmd { |
| 170 | enum vdec_buffer buffer_type; |
| 171 | struct vdec_bufferpayload buffer; |
| 172 | }; |
| 173 | |
| 174 | struct vdec_fillbuffer_cmd { |
| 175 | struct vdec_bufferpayload buffer; |
| 176 | void *client_data; |
| 177 | }; |
| 178 | |
| 179 | enum vdec_bufferflush { |
| 180 | VDEC_FLUSH_TYPE_INPUT, |
| 181 | VDEC_FLUSH_TYPE_OUTPUT, |
| 182 | VDEC_FLUSH_TYPE_ALL |
| 183 | }; |
| 184 | |
| 185 | enum vdec_codec { |
| 186 | VDEC_CODECTYPE_H264 = 0x1, |
| 187 | VDEC_CODECTYPE_H263 = 0x2, |
| 188 | VDEC_CODECTYPE_MPEG4 = 0x3, |
| 189 | VDEC_CODECTYPE_DIVX_3 = 0x4, |
| 190 | VDEC_CODECTYPE_DIVX_4 = 0x5, |
| 191 | VDEC_CODECTYPE_DIVX_5 = 0x6, |
| 192 | VDEC_CODECTYPE_DIVX_6 = 0x7, |
| 193 | VDEC_CODECTYPE_XVID = 0x8, |
| 194 | VDEC_CODECTYPE_MPEG1 = 0x9, |
| 195 | VDEC_CODECTYPE_MPEG2 = 0xa, |
| 196 | VDEC_CODECTYPE_VC1 = 0xb, |
| 197 | VDEC_CODECTYPE_VC1_RCV = 0xc |
| 198 | }; |
| 199 | |
| 200 | enum vdec_mpeg2_profile { |
| 201 | VDEC_MPEG2ProfileSimple = 0x1, |
| 202 | VDEC_MPEG2ProfileMain = 0x2, |
| 203 | VDEC_MPEG2Profile422 = 0x4, |
| 204 | VDEC_MPEG2ProfileSNR = 0x8, |
| 205 | VDEC_MPEG2ProfileSpatial = 0x10, |
| 206 | VDEC_MPEG2ProfileHigh = 0x20, |
| 207 | VDEC_MPEG2ProfileKhronosExtensions = 0x6F000000, |
| 208 | VDEC_MPEG2ProfileVendorStartUnused = 0x7F000000, |
| 209 | VDEC_MPEG2ProfileMax = 0x7FFFFFFF |
| 210 | }; |
| 211 | |
| 212 | enum vdec_mpeg2_level { |
| 213 | |
| 214 | VDEC_MPEG2LevelLL = 0x1, |
| 215 | VDEC_MPEG2LevelML = 0x2, |
| 216 | VDEC_MPEG2LevelH14 = 0x4, |
| 217 | VDEC_MPEG2LevelHL = 0x8, |
| 218 | VDEC_MPEG2LevelKhronosExtensions = 0x6F000000, |
| 219 | VDEC_MPEG2LevelVendorStartUnused = 0x7F000000, |
| 220 | VDEC_MPEG2LevelMax = 0x7FFFFFFF |
| 221 | }; |
| 222 | |
| 223 | enum vdec_mpeg4_profile { |
| 224 | VDEC_MPEG4ProfileSimple = 0x01, |
| 225 | VDEC_MPEG4ProfileSimpleScalable = 0x02, |
| 226 | VDEC_MPEG4ProfileCore = 0x04, |
| 227 | VDEC_MPEG4ProfileMain = 0x08, |
| 228 | VDEC_MPEG4ProfileNbit = 0x10, |
| 229 | VDEC_MPEG4ProfileScalableTexture = 0x20, |
| 230 | VDEC_MPEG4ProfileSimpleFace = 0x40, |
| 231 | VDEC_MPEG4ProfileSimpleFBA = 0x80, |
| 232 | VDEC_MPEG4ProfileBasicAnimated = 0x100, |
| 233 | VDEC_MPEG4ProfileHybrid = 0x200, |
| 234 | VDEC_MPEG4ProfileAdvancedRealTime = 0x400, |
| 235 | VDEC_MPEG4ProfileCoreScalable = 0x800, |
| 236 | VDEC_MPEG4ProfileAdvancedCoding = 0x1000, |
| 237 | VDEC_MPEG4ProfileAdvancedCore = 0x2000, |
| 238 | VDEC_MPEG4ProfileAdvancedScalable = 0x4000, |
| 239 | VDEC_MPEG4ProfileAdvancedSimple = 0x8000, |
| 240 | VDEC_MPEG4ProfileKhronosExtensions = 0x6F000000, |
| 241 | VDEC_MPEG4ProfileVendorStartUnused = 0x7F000000, |
| 242 | VDEC_MPEG4ProfileMax = 0x7FFFFFFF |
| 243 | }; |
| 244 | |
| 245 | enum vdec_mpeg4_level { |
| 246 | VDEC_MPEG4Level0 = 0x01, |
| 247 | VDEC_MPEG4Level0b = 0x02, |
| 248 | VDEC_MPEG4Level1 = 0x04, |
| 249 | VDEC_MPEG4Level2 = 0x08, |
| 250 | VDEC_MPEG4Level3 = 0x10, |
| 251 | VDEC_MPEG4Level4 = 0x20, |
| 252 | VDEC_MPEG4Level4a = 0x40, |
| 253 | VDEC_MPEG4Level5 = 0x80, |
| 254 | VDEC_MPEG4LevelKhronosExtensions = 0x6F000000, |
| 255 | VDEC_MPEG4LevelVendorStartUnused = 0x7F000000, |
| 256 | VDEC_MPEG4LevelMax = 0x7FFFFFFF |
| 257 | }; |
| 258 | |
| 259 | enum vdec_avc_profile { |
| 260 | VDEC_AVCProfileBaseline = 0x01, |
| 261 | VDEC_AVCProfileMain = 0x02, |
| 262 | VDEC_AVCProfileExtended = 0x04, |
| 263 | VDEC_AVCProfileHigh = 0x08, |
| 264 | VDEC_AVCProfileHigh10 = 0x10, |
| 265 | VDEC_AVCProfileHigh422 = 0x20, |
| 266 | VDEC_AVCProfileHigh444 = 0x40, |
| 267 | VDEC_AVCProfileKhronosExtensions = 0x6F000000, |
| 268 | VDEC_AVCProfileVendorStartUnused = 0x7F000000, |
| 269 | VDEC_AVCProfileMax = 0x7FFFFFFF |
| 270 | }; |
| 271 | |
| 272 | enum vdec_avc_level { |
| 273 | VDEC_AVCLevel1 = 0x01, |
| 274 | VDEC_AVCLevel1b = 0x02, |
| 275 | VDEC_AVCLevel11 = 0x04, |
| 276 | VDEC_AVCLevel12 = 0x08, |
| 277 | VDEC_AVCLevel13 = 0x10, |
| 278 | VDEC_AVCLevel2 = 0x20, |
| 279 | VDEC_AVCLevel21 = 0x40, |
| 280 | VDEC_AVCLevel22 = 0x80, |
| 281 | VDEC_AVCLevel3 = 0x100, |
| 282 | VDEC_AVCLevel31 = 0x200, |
| 283 | VDEC_AVCLevel32 = 0x400, |
| 284 | VDEC_AVCLevel4 = 0x800, |
| 285 | VDEC_AVCLevel41 = 0x1000, |
| 286 | VDEC_AVCLevel42 = 0x2000, |
| 287 | VDEC_AVCLevel5 = 0x4000, |
| 288 | VDEC_AVCLevel51 = 0x8000, |
| 289 | VDEC_AVCLevelKhronosExtensions = 0x6F000000, |
| 290 | VDEC_AVCLevelVendorStartUnused = 0x7F000000, |
| 291 | VDEC_AVCLevelMax = 0x7FFFFFFF |
| 292 | }; |
| 293 | |
| 294 | enum vdec_divx_profile { |
| 295 | VDEC_DIVXProfile_qMobile = 0x01, |
| 296 | VDEC_DIVXProfile_Mobile = 0x02, |
| 297 | VDEC_DIVXProfile_HD = 0x04, |
| 298 | VDEC_DIVXProfile_Handheld = 0x08, |
| 299 | VDEC_DIVXProfile_Portable = 0x10, |
| 300 | VDEC_DIVXProfile_HomeTheater = 0x20 |
| 301 | }; |
| 302 | |
| 303 | enum vdec_xvid_profile { |
| 304 | VDEC_XVIDProfile_Simple = 0x1, |
| 305 | VDEC_XVIDProfile_Advanced_Realtime_Simple = 0x2, |
| 306 | VDEC_XVIDProfile_Advanced_Simple = 0x4 |
| 307 | }; |
| 308 | |
| 309 | enum vdec_xvid_level { |
| 310 | VDEC_XVID_LEVEL_S_L0 = 0x1, |
| 311 | VDEC_XVID_LEVEL_S_L1 = 0x2, |
| 312 | VDEC_XVID_LEVEL_S_L2 = 0x4, |
| 313 | VDEC_XVID_LEVEL_S_L3 = 0x8, |
| 314 | VDEC_XVID_LEVEL_ARTS_L1 = 0x10, |
| 315 | VDEC_XVID_LEVEL_ARTS_L2 = 0x20, |
| 316 | VDEC_XVID_LEVEL_ARTS_L3 = 0x40, |
| 317 | VDEC_XVID_LEVEL_ARTS_L4 = 0x80, |
| 318 | VDEC_XVID_LEVEL_AS_L0 = 0x100, |
| 319 | VDEC_XVID_LEVEL_AS_L1 = 0x200, |
| 320 | VDEC_XVID_LEVEL_AS_L2 = 0x400, |
| 321 | VDEC_XVID_LEVEL_AS_L3 = 0x800, |
| 322 | VDEC_XVID_LEVEL_AS_L4 = 0x1000 |
| 323 | }; |
| 324 | |
| 325 | enum vdec_h263profile { |
| 326 | VDEC_H263ProfileBaseline = 0x01, |
| 327 | VDEC_H263ProfileH320Coding = 0x02, |
| 328 | VDEC_H263ProfileBackwardCompatible = 0x04, |
| 329 | VDEC_H263ProfileISWV2 = 0x08, |
| 330 | VDEC_H263ProfileISWV3 = 0x10, |
| 331 | VDEC_H263ProfileHighCompression = 0x20, |
| 332 | VDEC_H263ProfileInternet = 0x40, |
| 333 | VDEC_H263ProfileInterlace = 0x80, |
| 334 | VDEC_H263ProfileHighLatency = 0x100, |
| 335 | VDEC_H263ProfileKhronosExtensions = 0x6F000000, |
| 336 | VDEC_H263ProfileVendorStartUnused = 0x7F000000, |
| 337 | VDEC_H263ProfileMax = 0x7FFFFFFF |
| 338 | }; |
| 339 | |
| 340 | enum vdec_h263level { |
| 341 | VDEC_H263Level10 = 0x01, |
| 342 | VDEC_H263Level20 = 0x02, |
| 343 | VDEC_H263Level30 = 0x04, |
| 344 | VDEC_H263Level40 = 0x08, |
| 345 | VDEC_H263Level45 = 0x10, |
| 346 | VDEC_H263Level50 = 0x20, |
| 347 | VDEC_H263Level60 = 0x40, |
| 348 | VDEC_H263Level70 = 0x80, |
| 349 | VDEC_H263LevelKhronosExtensions = 0x6F000000, |
| 350 | VDEC_H263LevelVendorStartUnused = 0x7F000000, |
| 351 | VDEC_H263LevelMax = 0x7FFFFFFF |
| 352 | }; |
| 353 | |
| 354 | enum vdec_wmv_format { |
| 355 | VDEC_WMVFormatUnused = 0x01, |
| 356 | VDEC_WMVFormat7 = 0x02, |
| 357 | VDEC_WMVFormat8 = 0x04, |
| 358 | VDEC_WMVFormat9 = 0x08, |
| 359 | VDEC_WMFFormatKhronosExtensions = 0x6F000000, |
| 360 | VDEC_WMFFormatVendorStartUnused = 0x7F000000, |
| 361 | VDEC_WMVFormatMax = 0x7FFFFFFF |
| 362 | }; |
| 363 | |
| 364 | enum vdec_vc1_profile { |
| 365 | VDEC_VC1ProfileSimple = 0x1, |
| 366 | VDEC_VC1ProfileMain = 0x2, |
| 367 | VDEC_VC1ProfileAdvanced = 0x4 |
| 368 | }; |
| 369 | |
| 370 | enum vdec_vc1_level { |
| 371 | VDEC_VC1_LEVEL_S_Low = 0x1, |
| 372 | VDEC_VC1_LEVEL_S_Medium = 0x2, |
| 373 | VDEC_VC1_LEVEL_M_Low = 0x4, |
| 374 | VDEC_VC1_LEVEL_M_Medium = 0x8, |
| 375 | VDEC_VC1_LEVEL_M_High = 0x10, |
| 376 | VDEC_VC1_LEVEL_A_L0 = 0x20, |
| 377 | VDEC_VC1_LEVEL_A_L1 = 0x40, |
| 378 | VDEC_VC1_LEVEL_A_L2 = 0x80, |
| 379 | VDEC_VC1_LEVEL_A_L3 = 0x100, |
| 380 | VDEC_VC1_LEVEL_A_L4 = 0x200 |
| 381 | }; |
| 382 | |
| 383 | struct vdec_profile_level { |
| 384 | uint32_t profiles; |
| 385 | uint32_t levels; |
| 386 | }; |
| 387 | |
| 388 | enum vdec_interlaced_format { |
| 389 | VDEC_InterlaceFrameProgressive = 0x1, |
| 390 | VDEC_InterlaceInterleaveFrameTopFieldFirst = 0x2, |
| 391 | VDEC_InterlaceInterleaveFrameBottomFieldFirst = 0x4 |
| 392 | }; |
| 393 | |
| 394 | enum vdec_output_fromat { |
| 395 | VDEC_YUV_FORMAT_NV12 = 0x1, |
| 396 | VDEC_YUV_FORMAT_TILE_4x2 = 0x2 |
| 397 | }; |
| 398 | |
| 399 | struct vdec_picsize { |
| 400 | uint32_t frame_width; |
| 401 | uint32_t frame_height; |
| 402 | uint32_t stride; |
| 403 | uint32_t scan_lines; |
| 404 | }; |
| 405 | |
| 406 | struct vdec_seqheader { |
| 407 | uint8_t *ptr_seqheader; |
| 408 | uint32_t seq_header_len; |
| 409 | int pmem_fd; |
| 410 | uint32_t pmem_offset; |
| 411 | }; |
| 412 | |
| 413 | struct vdec_mberror { |
| 414 | uint8_t *ptr_errormap; |
| 415 | uint32_t err_mapsize; |
| 416 | }; |
| 417 | |
| 418 | struct vdec_input_frameinfo { |
| 419 | uint8_t *bufferaddr; |
| 420 | uint32_t offset; |
| 421 | uint32_t datalen; |
| 422 | uint32_t flags; |
| 423 | int64_t timestamp; |
| 424 | void *client_data; |
| 425 | int pmem_fd; |
| 426 | uint32_t pmem_offset; |
| 427 | }; |
| 428 | |
| 429 | struct vdec_framesize { |
| 430 | uint32_t left; |
| 431 | uint32_t top; |
| 432 | uint32_t right; |
| 433 | uint32_t bottom; |
| 434 | }; |
| 435 | |
| 436 | struct vdec_output_frameinfo { |
| 437 | uint8_t *phy_addr; |
| 438 | uint8_t *bufferaddr; |
| 439 | uint32_t offset; |
| 440 | uint32_t len; |
| 441 | uint32_t flags; |
| 442 | int64_t time_stamp; |
| 443 | void *client_data; |
| 444 | void *input_frame_clientdata; |
| 445 | struct vdec_framesize framesize; |
| 446 | }; |
| 447 | |
| 448 | union vdec_msgdata { |
| 449 | struct vdec_output_frameinfo output_frame; |
| 450 | void *input_frame_clientdata; |
| 451 | }; |
| 452 | |
| 453 | struct vdec_msginfo { |
| 454 | uint32_t status_code; |
| 455 | uint32_t msgcode; |
| 456 | union vdec_msgdata msgdata; |
| 457 | uint32_t msgdatasize; |
| 458 | }; |
| 459 | #endif |
| 460 | |