blob: 09a71362ccad5a0477233594ff3dfcfca1f369cd [file] [log] [blame]
Nick Pelly21baae32010-06-23 16:17:58 -07001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
Nick Pelly21baae32010-06-23 16:17:58 -070017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _MSM_VIDC_DEC_H_
20#define _MSM_VIDC_DEC_H_
Nick Pelly21baae32010-06-23 16:17:58 -070021#include <linux/types.h>
22#include <linux/ioctl.h>
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -070024#define VDEC_S_BASE 0x40000000
Nick Pelly21baae32010-06-23 16:17:58 -070025#define VDEC_S_SUCCESS (VDEC_S_BASE)
Nick Pelly21baae32010-06-23 16:17:58 -070026#define VDEC_S_EFAIL (VDEC_S_BASE + 1)
Nick Pelly21baae32010-06-23 16:17:58 -070027#define VDEC_S_EFATAL (VDEC_S_BASE + 2)
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -070029#define VDEC_S_EBADPARAM (VDEC_S_BASE + 3)
Nick Pelly21baae32010-06-23 16:17:58 -070030#define VDEC_S_EINVALSTATE (VDEC_S_BASE + 4)
Nick Pelly21baae32010-06-23 16:17:58 -070031#define VDEC_S_ENOSWRES (VDEC_S_BASE + 5)
Nick Pelly21baae32010-06-23 16:17:58 -070032#define VDEC_S_ENOHWRES (VDEC_S_BASE + 6)
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -070034#define VDEC_S_EINVALCMD (VDEC_S_BASE + 7)
Nick Pelly21baae32010-06-23 16:17:58 -070035#define VDEC_S_ETIMEOUT (VDEC_S_BASE + 8)
Nick Pelly21baae32010-06-23 16:17:58 -070036#define VDEC_S_ENOPREREQ (VDEC_S_BASE + 9)
Nick Pelly21baae32010-06-23 16:17:58 -070037#define VDEC_S_ECMDQFULL (VDEC_S_BASE + 10)
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -070039#define VDEC_S_ENOTSUPP (VDEC_S_BASE + 11)
Nick Pelly21baae32010-06-23 16:17:58 -070040#define VDEC_S_ENOTIMPL (VDEC_S_BASE + 12)
Nick Pelly21baae32010-06-23 16:17:58 -070041#define VDEC_S_BUSY (VDEC_S_BASE + 13)
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070042#define VDEC_S_INPUT_BITSTREAM_ERR (VDEC_S_BASE + 14)
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070044#define VDEC_INTF_VER 1
Nick Pelly21baae32010-06-23 16:17:58 -070045#define VDEC_MSG_BASE 0x0000000
Nick Pelly21baae32010-06-23 16:17:58 -070046#define VDEC_MSG_INVALID (VDEC_MSG_BASE + 0)
47#define VDEC_MSG_RESP_INPUT_BUFFER_DONE (VDEC_MSG_BASE + 1)
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070049#define VDEC_MSG_RESP_OUTPUT_BUFFER_DONE (VDEC_MSG_BASE + 2)
Nick Pelly21baae32010-06-23 16:17:58 -070050#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)
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070054#define VDEC_MSG_RESP_FLUSH_OUTPUT_DONE (VDEC_MSG_BASE + 6)
Nick Pelly21baae32010-06-23 16:17:58 -070055#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)
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070059#define VDEC_MSG_RESP_RESUME_DONE (VDEC_MSG_BASE + 10)
Nick Pelly21baae32010-06-23 16:17:58 -070060#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)
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070064#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)
Nick Pelly21baae32010-06-23 16:17:58 -070067#define VDEC_BUFFERFLAG_EOS 0x00000001
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -070069#define VDEC_BUFFERFLAG_DECODEONLY 0x00000004
70#define VDEC_BUFFERFLAG_DATACORRUPT 0x00000008
71#define VDEC_BUFFERFLAG_ENDOFFRAME 0x00000010
72#define VDEC_BUFFERFLAG_SYNCFRAME 0x00000020
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -070074#define VDEC_BUFFERFLAG_EXTRADATA 0x00000040
75#define VDEC_BUFFERFLAG_CODECCONFIG 0x00000080
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070076#define VDEC_EXTRADATA_NONE 0x001
77#define VDEC_EXTRADATA_QP 0x004
Ben Cheng654325d2012-03-07 21:13:49 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070079#define VDEC_EXTRADATA_MB_ERROR_MAP 0x008
80#define VDEC_EXTRADATA_SEI 0x010
81#define VDEC_EXTRADATA_VUI 0x020
82#define VDEC_EXTRADATA_VC1 0x040
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -070084#define VDEC_CMDBASE 0x800
85#define VDEC_CMD_SET_INTF_VERSION (VDEC_CMDBASE)
Nick Pelly21baae32010-06-23 16:17:58 -070086#define VDEC_IOCTL_MAGIC 'v'
Nick Pelly21baae32010-06-23 16:17:58 -070087struct vdec_ioctl_msg {
Ben Cheng654325d2012-03-07 21:13:49 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070089 void __user *in;
90 void __user *out;
Nick Pelly21baae32010-06-23 16:17:58 -070091};
Nick Pelly21baae32010-06-23 16:17:58 -070092#define VDEC_IOCTL_GET_PROFILE_LEVEL_SUPPORTED _IOWR(VDEC_IOCTL_MAGIC, 0, struct vdec_ioctl_msg)
Ben Cheng654325d2012-03-07 21:13:49 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070094#define VDEC_IOCTL_GET_INTERLACE_FORMAT _IOR(VDEC_IOCTL_MAGIC, 1, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -070095#define VDEC_IOCTL_GET_CURRENT_PROFILE_LEVEL _IOWR(VDEC_IOCTL_MAGIC, 2, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -070096#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)
Ben Cheng654325d2012-03-07 21:13:49 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -070099#define VDEC_IOCTL_SET_CODEC _IOW(VDEC_IOCTL_MAGIC, 5, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700100#define VDEC_IOCTL_GET_CODEC _IOR(VDEC_IOCTL_MAGIC, 6, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700101#define VDEC_IOCTL_SET_PICRES _IOW(VDEC_IOCTL_MAGIC, 7, struct vdec_ioctl_msg)
102#define VDEC_IOCTL_GET_PICRES _IOR(VDEC_IOCTL_MAGIC, 8, struct vdec_ioctl_msg)
Ben Cheng654325d2012-03-07 21:13:49 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700104#define VDEC_IOCTL_SET_EXTRADATA _IOW(VDEC_IOCTL_MAGIC, 9, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700105#define VDEC_IOCTL_GET_EXTRADATA _IOR(VDEC_IOCTL_MAGIC, 10, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700106#define VDEC_IOCTL_SET_SEQUENCE_HEADER _IOW(VDEC_IOCTL_MAGIC, 11, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700107#define VDEC_IOCTL_SET_BUFFER_REQ _IOW(VDEC_IOCTL_MAGIC, 12, struct vdec_ioctl_msg)
Ben Cheng654325d2012-03-07 21:13:49 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700109#define VDEC_IOCTL_GET_BUFFER_REQ _IOR(VDEC_IOCTL_MAGIC, 13, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700110#define VDEC_IOCTL_ALLOCATE_BUFFER _IOWR(VDEC_IOCTL_MAGIC, 14, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700111#define VDEC_IOCTL_FREE_BUFFER _IOW(VDEC_IOCTL_MAGIC, 15, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700112#define VDEC_IOCTL_SET_BUFFER _IOW(VDEC_IOCTL_MAGIC, 16, struct vdec_ioctl_msg)
Ben Cheng654325d2012-03-07 21:13:49 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700114#define VDEC_IOCTL_FILL_OUTPUT_BUFFER _IOW(VDEC_IOCTL_MAGIC, 17, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700115#define VDEC_IOCTL_DECODE_FRAME _IOW(VDEC_IOCTL_MAGIC, 18, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700116#define VDEC_IOCTL_LOAD_RESOURCES _IO(VDEC_IOCTL_MAGIC, 19)
117#define VDEC_IOCTL_CMD_START _IO(VDEC_IOCTL_MAGIC, 20)
Ben Cheng654325d2012-03-07 21:13:49 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700119#define VDEC_IOCTL_CMD_STOP _IO(VDEC_IOCTL_MAGIC, 21)
Nick Pelly21baae32010-06-23 16:17:58 -0700120#define VDEC_IOCTL_CMD_PAUSE _IO(VDEC_IOCTL_MAGIC, 22)
121#define VDEC_IOCTL_CMD_RESUME _IO(VDEC_IOCTL_MAGIC, 23)
Nick Pelly21baae32010-06-23 16:17:58 -0700122#define VDEC_IOCTL_CMD_FLUSH _IOW(VDEC_IOCTL_MAGIC, 24, struct vdec_ioctl_msg)
Ben Cheng654325d2012-03-07 21:13:49 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700124#define VDEC_IOCTL_GET_NEXT_MSG _IOR(VDEC_IOCTL_MAGIC, 25, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700125#define VDEC_IOCTL_STOP_NEXT_MSG _IO(VDEC_IOCTL_MAGIC, 26)
Nick Pelly21baae32010-06-23 16:17:58 -0700126#define VDEC_IOCTL_GET_NUMBER_INSTANCES _IOR(VDEC_IOCTL_MAGIC, 27, struct vdec_ioctl_msg)
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700127#define VDEC_IOCTL_SET_PICTURE_ORDER _IOW(VDEC_IOCTL_MAGIC, 28, struct vdec_ioctl_msg)
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define VDEC_IOCTL_SET_FRAME_RATE _IOW(VDEC_IOCTL_MAGIC, 29, struct vdec_ioctl_msg)
130#define VDEC_IOCTL_SET_H264_MV_BUFFER _IOW(VDEC_IOCTL_MAGIC, 30, struct vdec_ioctl_msg)
131#define VDEC_IOCTL_FREE_H264_MV_BUFFER _IOW(VDEC_IOCTL_MAGIC, 31, struct vdec_ioctl_msg)
132#define VDEC_IOCTL_GET_MV_BUFFER_SIZE _IOR(VDEC_IOCTL_MAGIC, 32, struct vdec_ioctl_msg)
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#define VDEC_IOCTL_SET_IDR_ONLY_DECODING _IO(VDEC_IOCTL_MAGIC, 33)
135#define VDEC_IOCTL_SET_CONT_ON_RECONFIG _IO(VDEC_IOCTL_MAGIC, 34)
136#define VDEC_IOCTL_SET_DISABLE_DMX _IOW(VDEC_IOCTL_MAGIC, 35, struct vdec_ioctl_msg)
137#define VDEC_IOCTL_GET_DISABLE_DMX _IOR(VDEC_IOCTL_MAGIC, 36, struct vdec_ioctl_msg)
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139#define VDEC_IOCTL_GET_DISABLE_DMX_SUPPORT _IOR(VDEC_IOCTL_MAGIC, 37, struct vdec_ioctl_msg)
Nick Pelly21baae32010-06-23 16:17:58 -0700140enum vdec_picture {
141 PICTURE_TYPE_I,
142 PICTURE_TYPE_P,
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700144 PICTURE_TYPE_B,
145 PICTURE_TYPE_BI,
146 PICTURE_TYPE_SKIP,
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700147 PICTURE_TYPE_IDR,
Ben Cheng654325d2012-03-07 21:13:49 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700149 PICTURE_TYPE_UNKNOWN
150};
Nick Pelly21baae32010-06-23 16:17:58 -0700151enum vdec_buffer {
152 VDEC_BUFFER_TYPE_INPUT,
Ben Cheng654325d2012-03-07 21:13:49 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700154 VDEC_BUFFER_TYPE_OUTPUT
155};
Nick Pelly21baae32010-06-23 16:17:58 -0700156struct vdec_allocatorproperty {
157 enum vdec_buffer buffer_type;
Ben Cheng654325d2012-03-07 21:13:49 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700159 uint32_t mincount;
160 uint32_t maxcount;
161 uint32_t actualcount;
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700162 size_t buffer_size;
Ben Cheng654325d2012-03-07 21:13:49 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700164 uint32_t alignment;
165 uint32_t buf_poolid;
166};
Nick Pelly21baae32010-06-23 16:17:58 -0700167struct vdec_bufferpayload {
Ben Cheng654325d2012-03-07 21:13:49 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700169 void __user *bufferaddr;
170 size_t buffer_len;
Nick Pelly21baae32010-06-23 16:17:58 -0700171 int pmem_fd;
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700172 size_t offset;
Ben Cheng654325d2012-03-07 21:13:49 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700174 size_t mmaped_size;
Nick Pelly21baae32010-06-23 16:17:58 -0700175};
Nick Pelly21baae32010-06-23 16:17:58 -0700176struct vdec_setbuffer_cmd {
177 enum vdec_buffer buffer_type;
Ben Cheng654325d2012-03-07 21:13:49 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700179 struct vdec_bufferpayload buffer;
180};
Nick Pelly21baae32010-06-23 16:17:58 -0700181struct vdec_fillbuffer_cmd {
182 struct vdec_bufferpayload buffer;
Ben Cheng654325d2012-03-07 21:13:49 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700184 void *client_data;
185};
Nick Pelly21baae32010-06-23 16:17:58 -0700186enum vdec_bufferflush {
187 VDEC_FLUSH_TYPE_INPUT,
Ben Cheng654325d2012-03-07 21:13:49 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700189 VDEC_FLUSH_TYPE_OUTPUT,
190 VDEC_FLUSH_TYPE_ALL
191};
Nick Pelly21baae32010-06-23 16:17:58 -0700192enum vdec_codec {
Ben Cheng654325d2012-03-07 21:13:49 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700194 VDEC_CODECTYPE_H264 = 0x1,
195 VDEC_CODECTYPE_H263 = 0x2,
196 VDEC_CODECTYPE_MPEG4 = 0x3,
197 VDEC_CODECTYPE_DIVX_3 = 0x4,
Ben Cheng654325d2012-03-07 21:13:49 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700199 VDEC_CODECTYPE_DIVX_4 = 0x5,
200 VDEC_CODECTYPE_DIVX_5 = 0x6,
201 VDEC_CODECTYPE_DIVX_6 = 0x7,
202 VDEC_CODECTYPE_XVID = 0x8,
Ben Cheng654325d2012-03-07 21:13:49 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700204 VDEC_CODECTYPE_MPEG1 = 0x9,
205 VDEC_CODECTYPE_MPEG2 = 0xa,
206 VDEC_CODECTYPE_VC1 = 0xb,
207 VDEC_CODECTYPE_VC1_RCV = 0xc
Ben Cheng654325d2012-03-07 21:13:49 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700209};
Nick Pelly21baae32010-06-23 16:17:58 -0700210enum vdec_mpeg2_profile {
211 VDEC_MPEG2ProfileSimple = 0x1,
212 VDEC_MPEG2ProfileMain = 0x2,
Ben Cheng654325d2012-03-07 21:13:49 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700214 VDEC_MPEG2Profile422 = 0x4,
215 VDEC_MPEG2ProfileSNR = 0x8,
216 VDEC_MPEG2ProfileSpatial = 0x10,
217 VDEC_MPEG2ProfileHigh = 0x20,
Ben Cheng654325d2012-03-07 21:13:49 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700219 VDEC_MPEG2ProfileKhronosExtensions = 0x6F000000,
220 VDEC_MPEG2ProfileVendorStartUnused = 0x7F000000,
221 VDEC_MPEG2ProfileMax = 0x7FFFFFFF
222};
Ben Cheng654325d2012-03-07 21:13:49 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700224enum vdec_mpeg2_level {
Nick Pelly21baae32010-06-23 16:17:58 -0700225 VDEC_MPEG2LevelLL = 0x1,
226 VDEC_MPEG2LevelML = 0x2,
227 VDEC_MPEG2LevelH14 = 0x4,
Ben Cheng654325d2012-03-07 21:13:49 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700229 VDEC_MPEG2LevelHL = 0x8,
230 VDEC_MPEG2LevelKhronosExtensions = 0x6F000000,
231 VDEC_MPEG2LevelVendorStartUnused = 0x7F000000,
232 VDEC_MPEG2LevelMax = 0x7FFFFFFF
Ben Cheng654325d2012-03-07 21:13:49 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700234};
Nick Pelly21baae32010-06-23 16:17:58 -0700235enum vdec_mpeg4_profile {
236 VDEC_MPEG4ProfileSimple = 0x01,
237 VDEC_MPEG4ProfileSimpleScalable = 0x02,
Ben Cheng654325d2012-03-07 21:13:49 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700239 VDEC_MPEG4ProfileCore = 0x04,
240 VDEC_MPEG4ProfileMain = 0x08,
241 VDEC_MPEG4ProfileNbit = 0x10,
242 VDEC_MPEG4ProfileScalableTexture = 0x20,
Ben Cheng654325d2012-03-07 21:13:49 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700244 VDEC_MPEG4ProfileSimpleFace = 0x40,
245 VDEC_MPEG4ProfileSimpleFBA = 0x80,
246 VDEC_MPEG4ProfileBasicAnimated = 0x100,
247 VDEC_MPEG4ProfileHybrid = 0x200,
Ben Cheng654325d2012-03-07 21:13:49 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700249 VDEC_MPEG4ProfileAdvancedRealTime = 0x400,
250 VDEC_MPEG4ProfileCoreScalable = 0x800,
251 VDEC_MPEG4ProfileAdvancedCoding = 0x1000,
252 VDEC_MPEG4ProfileAdvancedCore = 0x2000,
Ben Cheng654325d2012-03-07 21:13:49 -0800253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700254 VDEC_MPEG4ProfileAdvancedScalable = 0x4000,
255 VDEC_MPEG4ProfileAdvancedSimple = 0x8000,
256 VDEC_MPEG4ProfileKhronosExtensions = 0x6F000000,
257 VDEC_MPEG4ProfileVendorStartUnused = 0x7F000000,
Ben Cheng654325d2012-03-07 21:13:49 -0800258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700259 VDEC_MPEG4ProfileMax = 0x7FFFFFFF
260};
Nick Pelly21baae32010-06-23 16:17:58 -0700261enum vdec_mpeg4_level {
262 VDEC_MPEG4Level0 = 0x01,
Ben Cheng654325d2012-03-07 21:13:49 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700264 VDEC_MPEG4Level0b = 0x02,
265 VDEC_MPEG4Level1 = 0x04,
266 VDEC_MPEG4Level2 = 0x08,
267 VDEC_MPEG4Level3 = 0x10,
Ben Cheng654325d2012-03-07 21:13:49 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700269 VDEC_MPEG4Level4 = 0x20,
270 VDEC_MPEG4Level4a = 0x40,
271 VDEC_MPEG4Level5 = 0x80,
272 VDEC_MPEG4LevelKhronosExtensions = 0x6F000000,
Ben Cheng654325d2012-03-07 21:13:49 -0800273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700274 VDEC_MPEG4LevelVendorStartUnused = 0x7F000000,
275 VDEC_MPEG4LevelMax = 0x7FFFFFFF
276};
Nick Pelly21baae32010-06-23 16:17:58 -0700277enum vdec_avc_profile {
Ben Cheng654325d2012-03-07 21:13:49 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700279 VDEC_AVCProfileBaseline = 0x01,
280 VDEC_AVCProfileMain = 0x02,
281 VDEC_AVCProfileExtended = 0x04,
282 VDEC_AVCProfileHigh = 0x08,
Ben Cheng654325d2012-03-07 21:13:49 -0800283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700284 VDEC_AVCProfileHigh10 = 0x10,
285 VDEC_AVCProfileHigh422 = 0x20,
286 VDEC_AVCProfileHigh444 = 0x40,
287 VDEC_AVCProfileKhronosExtensions = 0x6F000000,
Ben Cheng654325d2012-03-07 21:13:49 -0800288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700289 VDEC_AVCProfileVendorStartUnused = 0x7F000000,
290 VDEC_AVCProfileMax = 0x7FFFFFFF
291};
Nick Pelly21baae32010-06-23 16:17:58 -0700292enum vdec_avc_level {
Ben Cheng654325d2012-03-07 21:13:49 -0800293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700294 VDEC_AVCLevel1 = 0x01,
295 VDEC_AVCLevel1b = 0x02,
296 VDEC_AVCLevel11 = 0x04,
297 VDEC_AVCLevel12 = 0x08,
Ben Cheng654325d2012-03-07 21:13:49 -0800298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700299 VDEC_AVCLevel13 = 0x10,
300 VDEC_AVCLevel2 = 0x20,
301 VDEC_AVCLevel21 = 0x40,
302 VDEC_AVCLevel22 = 0x80,
Ben Cheng654325d2012-03-07 21:13:49 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700304 VDEC_AVCLevel3 = 0x100,
305 VDEC_AVCLevel31 = 0x200,
306 VDEC_AVCLevel32 = 0x400,
307 VDEC_AVCLevel4 = 0x800,
Ben Cheng654325d2012-03-07 21:13:49 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700309 VDEC_AVCLevel41 = 0x1000,
310 VDEC_AVCLevel42 = 0x2000,
311 VDEC_AVCLevel5 = 0x4000,
312 VDEC_AVCLevel51 = 0x8000,
Ben Cheng654325d2012-03-07 21:13:49 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700314 VDEC_AVCLevelKhronosExtensions = 0x6F000000,
315 VDEC_AVCLevelVendorStartUnused = 0x7F000000,
316 VDEC_AVCLevelMax = 0x7FFFFFFF
317};
Ben Cheng654325d2012-03-07 21:13:49 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700319enum vdec_divx_profile {
320 VDEC_DIVXProfile_qMobile = 0x01,
321 VDEC_DIVXProfile_Mobile = 0x02,
322 VDEC_DIVXProfile_HD = 0x04,
Ben Cheng654325d2012-03-07 21:13:49 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700324 VDEC_DIVXProfile_Handheld = 0x08,
325 VDEC_DIVXProfile_Portable = 0x10,
326 VDEC_DIVXProfile_HomeTheater = 0x20
327};
Ben Cheng654325d2012-03-07 21:13:49 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700329enum vdec_xvid_profile {
330 VDEC_XVIDProfile_Simple = 0x1,
331 VDEC_XVIDProfile_Advanced_Realtime_Simple = 0x2,
332 VDEC_XVIDProfile_Advanced_Simple = 0x4
Ben Cheng654325d2012-03-07 21:13:49 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700334};
Nick Pelly21baae32010-06-23 16:17:58 -0700335enum vdec_xvid_level {
336 VDEC_XVID_LEVEL_S_L0 = 0x1,
337 VDEC_XVID_LEVEL_S_L1 = 0x2,
Ben Cheng654325d2012-03-07 21:13:49 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700339 VDEC_XVID_LEVEL_S_L2 = 0x4,
340 VDEC_XVID_LEVEL_S_L3 = 0x8,
341 VDEC_XVID_LEVEL_ARTS_L1 = 0x10,
342 VDEC_XVID_LEVEL_ARTS_L2 = 0x20,
Ben Cheng654325d2012-03-07 21:13:49 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700344 VDEC_XVID_LEVEL_ARTS_L3 = 0x40,
345 VDEC_XVID_LEVEL_ARTS_L4 = 0x80,
346 VDEC_XVID_LEVEL_AS_L0 = 0x100,
347 VDEC_XVID_LEVEL_AS_L1 = 0x200,
Ben Cheng654325d2012-03-07 21:13:49 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700349 VDEC_XVID_LEVEL_AS_L2 = 0x400,
350 VDEC_XVID_LEVEL_AS_L3 = 0x800,
351 VDEC_XVID_LEVEL_AS_L4 = 0x1000
352};
Ben Cheng654325d2012-03-07 21:13:49 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700354enum vdec_h263profile {
355 VDEC_H263ProfileBaseline = 0x01,
356 VDEC_H263ProfileH320Coding = 0x02,
357 VDEC_H263ProfileBackwardCompatible = 0x04,
Ben Cheng654325d2012-03-07 21:13:49 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700359 VDEC_H263ProfileISWV2 = 0x08,
360 VDEC_H263ProfileISWV3 = 0x10,
361 VDEC_H263ProfileHighCompression = 0x20,
362 VDEC_H263ProfileInternet = 0x40,
Ben Cheng654325d2012-03-07 21:13:49 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700364 VDEC_H263ProfileInterlace = 0x80,
365 VDEC_H263ProfileHighLatency = 0x100,
366 VDEC_H263ProfileKhronosExtensions = 0x6F000000,
367 VDEC_H263ProfileVendorStartUnused = 0x7F000000,
Ben Cheng654325d2012-03-07 21:13:49 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700369 VDEC_H263ProfileMax = 0x7FFFFFFF
370};
Nick Pelly21baae32010-06-23 16:17:58 -0700371enum vdec_h263level {
372 VDEC_H263Level10 = 0x01,
Ben Cheng654325d2012-03-07 21:13:49 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700374 VDEC_H263Level20 = 0x02,
375 VDEC_H263Level30 = 0x04,
376 VDEC_H263Level40 = 0x08,
377 VDEC_H263Level45 = 0x10,
Ben Cheng654325d2012-03-07 21:13:49 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700379 VDEC_H263Level50 = 0x20,
380 VDEC_H263Level60 = 0x40,
381 VDEC_H263Level70 = 0x80,
382 VDEC_H263LevelKhronosExtensions = 0x6F000000,
Ben Cheng654325d2012-03-07 21:13:49 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700384 VDEC_H263LevelVendorStartUnused = 0x7F000000,
385 VDEC_H263LevelMax = 0x7FFFFFFF
386};
Nick Pelly21baae32010-06-23 16:17:58 -0700387enum vdec_wmv_format {
Ben Cheng654325d2012-03-07 21:13:49 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700389 VDEC_WMVFormatUnused = 0x01,
390 VDEC_WMVFormat7 = 0x02,
391 VDEC_WMVFormat8 = 0x04,
392 VDEC_WMVFormat9 = 0x08,
Ben Cheng654325d2012-03-07 21:13:49 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700394 VDEC_WMFFormatKhronosExtensions = 0x6F000000,
395 VDEC_WMFFormatVendorStartUnused = 0x7F000000,
396 VDEC_WMVFormatMax = 0x7FFFFFFF
397};
Ben Cheng654325d2012-03-07 21:13:49 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700399enum vdec_vc1_profile {
400 VDEC_VC1ProfileSimple = 0x1,
401 VDEC_VC1ProfileMain = 0x2,
402 VDEC_VC1ProfileAdvanced = 0x4
Ben Cheng654325d2012-03-07 21:13:49 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700404};
Nick Pelly21baae32010-06-23 16:17:58 -0700405enum vdec_vc1_level {
406 VDEC_VC1_LEVEL_S_Low = 0x1,
407 VDEC_VC1_LEVEL_S_Medium = 0x2,
Ben Cheng654325d2012-03-07 21:13:49 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700409 VDEC_VC1_LEVEL_M_Low = 0x4,
410 VDEC_VC1_LEVEL_M_Medium = 0x8,
411 VDEC_VC1_LEVEL_M_High = 0x10,
412 VDEC_VC1_LEVEL_A_L0 = 0x20,
Ben Cheng654325d2012-03-07 21:13:49 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700414 VDEC_VC1_LEVEL_A_L1 = 0x40,
415 VDEC_VC1_LEVEL_A_L2 = 0x80,
416 VDEC_VC1_LEVEL_A_L3 = 0x100,
417 VDEC_VC1_LEVEL_A_L4 = 0x200
Ben Cheng654325d2012-03-07 21:13:49 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700419};
Nick Pelly21baae32010-06-23 16:17:58 -0700420struct vdec_profile_level {
421 uint32_t profiles;
422 uint32_t levels;
Ben Cheng654325d2012-03-07 21:13:49 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700424};
Nick Pelly21baae32010-06-23 16:17:58 -0700425enum vdec_interlaced_format {
426 VDEC_InterlaceFrameProgressive = 0x1,
427 VDEC_InterlaceInterleaveFrameTopFieldFirst = 0x2,
Ben Cheng654325d2012-03-07 21:13:49 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700429 VDEC_InterlaceInterleaveFrameBottomFieldFirst = 0x4
430};
Nick Pelly21baae32010-06-23 16:17:58 -0700431enum vdec_output_fromat {
432 VDEC_YUV_FORMAT_NV12 = 0x1,
Ben Cheng654325d2012-03-07 21:13:49 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700434 VDEC_YUV_FORMAT_TILE_4x2 = 0x2
435};
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700436enum vdec_output_order {
437 VDEC_ORDER_DISPLAY = 0x1,
438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
439 VDEC_ORDER_DECODE = 0x2
440};
Nick Pelly21baae32010-06-23 16:17:58 -0700441struct vdec_picsize {
442 uint32_t frame_width;
Ben Cheng654325d2012-03-07 21:13:49 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700444 uint32_t frame_height;
445 uint32_t stride;
446 uint32_t scan_lines;
447};
Ben Cheng654325d2012-03-07 21:13:49 -0800448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700449struct vdec_seqheader {
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700450 void __user *ptr_seqheader;
451 size_t seq_header_len;
Nick Pelly21baae32010-06-23 16:17:58 -0700452 int pmem_fd;
Ben Cheng654325d2012-03-07 21:13:49 -0800453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700454 size_t pmem_offset;
Nick Pelly21baae32010-06-23 16:17:58 -0700455};
Nick Pelly21baae32010-06-23 16:17:58 -0700456struct vdec_mberror {
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700457 void __user *ptr_errormap;
Ben Cheng654325d2012-03-07 21:13:49 -0800458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700459 size_t err_mapsize;
Nick Pelly21baae32010-06-23 16:17:58 -0700460};
Nick Pelly21baae32010-06-23 16:17:58 -0700461struct vdec_input_frameinfo {
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700462 void __user *bufferaddr;
Ben Cheng654325d2012-03-07 21:13:49 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700464 size_t offset;
465 size_t datalen;
Nick Pelly21baae32010-06-23 16:17:58 -0700466 uint32_t flags;
467 int64_t timestamp;
Ben Cheng654325d2012-03-07 21:13:49 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700469 void *client_data;
470 int pmem_fd;
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700471 size_t pmem_offset;
472 void __user *desc_addr;
473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
474 uint32_t desc_size;
475};
476struct vdec_framesize {
477 uint32_t left;
478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
479 uint32_t top;
480 uint32_t right;
481 uint32_t bottom;
Nick Pelly21baae32010-06-23 16:17:58 -0700482};
Ben Cheng654325d2012-03-07 21:13:49 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700484struct vdec_aspectratioinfo {
485 uint32_t aspect_ratio;
486 uint32_t par_width;
487 uint32_t par_height;
Ben Cheng654325d2012-03-07 21:13:49 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700489};
Nick Pelly21baae32010-06-23 16:17:58 -0700490struct vdec_output_frameinfo {
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700491 void __user *bufferaddr;
492 size_t offset;
Ben Cheng654325d2012-03-07 21:13:49 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700494 size_t len;
Nick Pelly21baae32010-06-23 16:17:58 -0700495 uint32_t flags;
496 int64_t time_stamp;
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700497 enum vdec_picture pic_type;
498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700499 void *client_data;
500 void *input_frame_clientdata;
501 struct vdec_framesize framesize;
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700502 enum vdec_interlaced_format interlaced_format;
Ben Cheng654325d2012-03-07 21:13:49 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700504 struct vdec_aspectratioinfo aspect_ratio_info;
Nick Pelly21baae32010-06-23 16:17:58 -0700505};
Nick Pelly21baae32010-06-23 16:17:58 -0700506union vdec_msgdata {
507 struct vdec_output_frameinfo output_frame;
Ben Cheng654325d2012-03-07 21:13:49 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700509 void *input_frame_clientdata;
Nick Pelly21baae32010-06-23 16:17:58 -0700510};
Nick Pelly21baae32010-06-23 16:17:58 -0700511struct vdec_msginfo {
512 uint32_t status_code;
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Pelly21baae32010-06-23 16:17:58 -0700514 uint32_t msgcode;
515 union vdec_msgdata msgdata;
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700516 size_t msgdatasize;
Nick Pelly21baae32010-06-23 16:17:58 -0700517};
Ben Cheng654325d2012-03-07 21:13:49 -0800518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Haynes Mathew George3fad2b12012-06-19 21:50:38 -0700519struct vdec_framerate {
520 unsigned long fps_denominator;
521 unsigned long fps_numerator;
522};
523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
524struct vdec_h264_mv{
525 size_t size;
526 int count;
527 int pmem_fd;
528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
529 int offset;
530};
531struct vdec_mv_buff_size{
532 int width;
533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
534 int height;
535 int size;
536 int alignment;
537};
538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
539#endif
540