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