2010-06-24 01:17:58 +02:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
2012-03-08 06:13:49 +01:00
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
2010-06-24 01:17:58 +02:00
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _MSM_VIDC_ENC_H_
|
|
|
|
#define _MSM_VIDC_ENC_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/ioctl.h>
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_S_BASE 0x00000000
|
|
|
|
#define VEN_S_SUCCESS (VEN_S_BASE)
|
|
|
|
#define VEN_S_EFAIL (VEN_S_BASE+1)
|
|
|
|
#define VEN_S_EFATAL (VEN_S_BASE+2)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_S_EBADPARAM (VEN_S_BASE+3)
|
|
|
|
#define VEN_S_EINVALSTATE (VEN_S_BASE+4)
|
|
|
|
#define VEN_S_ENOSWRES (VEN_S_BASE+5)
|
|
|
|
#define VEN_S_ENOHWRES (VEN_S_BASE+6)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_S_EBUFFREQ (VEN_S_BASE+7)
|
|
|
|
#define VEN_S_EINVALCMD (VEN_S_BASE+8)
|
|
|
|
#define VEN_S_ETIMEOUT (VEN_S_BASE+9)
|
|
|
|
#define VEN_S_ENOREATMPT (VEN_S_BASE+10)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_S_ENOPREREQ (VEN_S_BASE+11)
|
|
|
|
#define VEN_S_ECMDQFULL (VEN_S_BASE+12)
|
|
|
|
#define VEN_S_ENOTSUPP (VEN_S_BASE+13)
|
|
|
|
#define VEN_S_ENOTIMPL (VEN_S_BASE+14)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_S_ENOTPMEM (VEN_S_BASE+15)
|
|
|
|
#define VEN_S_EFLUSHED (VEN_S_BASE+16)
|
|
|
|
#define VEN_S_EINSUFBUF (VEN_S_BASE+17)
|
|
|
|
#define VEN_S_ESAMESTATE (VEN_S_BASE+18)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_S_EINVALTRANS (VEN_S_BASE+19)
|
|
|
|
#define VEN_INTF_VER 1
|
|
|
|
#define VEN_MSG_INDICATION 0
|
|
|
|
#define VEN_MSG_INPUT_BUFFER_DONE 1
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_MSG_OUTPUT_BUFFER_DONE 2
|
|
|
|
#define VEN_MSG_NEED_OUTPUT_BUFFER 3
|
|
|
|
#define VEN_MSG_FLUSH_INPUT_DONE 4
|
|
|
|
#define VEN_MSG_FLUSH_OUPUT_DONE 5
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_MSG_START 6
|
|
|
|
#define VEN_MSG_STOP 7
|
|
|
|
#define VEN_MSG_PAUSE 8
|
|
|
|
#define VEN_MSG_RESUME 9
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_MSG_STOP_READING_MSG 10
|
|
|
|
#define VEN_BUFFLAG_EOS 0x00000001
|
|
|
|
#define VEN_BUFFLAG_ENDOFFRAME 0x00000010
|
|
|
|
#define VEN_BUFFLAG_SYNCFRAME 0x00000020
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_BUFFLAG_EXTRADATA 0x00000040
|
|
|
|
#define VEN_BUFFLAG_CODECCONFIG 0x00000080
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_EXTRADATA_NONE 0x001
|
|
|
|
#define VEN_EXTRADATA_QCOMFILLER 0x002
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
|
|
#define VEN_EXTRADATA_SLICEINFO 0x100
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_FRAME_TYPE_I 1
|
|
|
|
#define VEN_FRAME_TYPE_P 2
|
|
|
|
#define VEN_FRAME_TYPE_B 3
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_CODEC_MPEG4 1
|
|
|
|
#define VEN_CODEC_H264 2
|
|
|
|
#define VEN_CODEC_H263 3
|
|
|
|
#define VEN_PROFILE_MPEG4_SP 1
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_PROFILE_MPEG4_ASP 2
|
|
|
|
#define VEN_PROFILE_H264_BASELINE 3
|
|
|
|
#define VEN_PROFILE_H264_MAIN 4
|
|
|
|
#define VEN_PROFILE_H264_HIGH 5
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_PROFILE_H263_BASELINE 6
|
|
|
|
#define VEN_LEVEL_MPEG4_0 0x1
|
|
|
|
#define VEN_LEVEL_MPEG4_1 0x2
|
|
|
|
#define VEN_LEVEL_MPEG4_2 0x3
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_LEVEL_MPEG4_3 0x4
|
|
|
|
#define VEN_LEVEL_MPEG4_4 0x5
|
|
|
|
#define VEN_LEVEL_MPEG4_5 0x6
|
|
|
|
#define VEN_LEVEL_MPEG4_3b 0x7
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_LEVEL_MPEG4_6 0x8
|
|
|
|
#define VEN_LEVEL_H264_1 0x9
|
|
|
|
#define VEN_LEVEL_H264_1b 0xA
|
|
|
|
#define VEN_LEVEL_H264_1p1 0xB
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_LEVEL_H264_1p2 0xC
|
|
|
|
#define VEN_LEVEL_H264_1p3 0xD
|
|
|
|
#define VEN_LEVEL_H264_2 0xE
|
|
|
|
#define VEN_LEVEL_H264_2p1 0xF
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_LEVEL_H264_2p2 0x10
|
|
|
|
#define VEN_LEVEL_H264_3 0x11
|
|
|
|
#define VEN_LEVEL_H264_3p1 0x12
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_LEVEL_H264_3p2 0x13
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_LEVEL_H264_4 0x14
|
|
|
|
#define VEN_LEVEL_H263_10 0x15
|
|
|
|
#define VEN_LEVEL_H263_20 0x16
|
|
|
|
#define VEN_LEVEL_H263_30 0x17
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_LEVEL_H263_40 0x18
|
|
|
|
#define VEN_LEVEL_H263_45 0x19
|
|
|
|
#define VEN_LEVEL_H263_50 0x1A
|
|
|
|
#define VEN_LEVEL_H263_60 0x1B
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_LEVEL_H263_70 0x1C
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_ENTROPY_MODEL_CAVLC 1
|
|
|
|
#define VEN_ENTROPY_MODEL_CABAC 2
|
|
|
|
#define VEN_CABAC_MODEL_0 1
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_CABAC_MODEL_1 2
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_CABAC_MODEL_2 3
|
|
|
|
#define VEN_DB_DISABLE 1
|
|
|
|
#define VEN_DB_ALL_BLKG_BNDRY 2
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_DB_SKIP_SLICE_BNDRY 3
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_MSLICE_OFF 1
|
|
|
|
#define VEN_MSLICE_CNT_MB 2
|
|
|
|
#define VEN_MSLICE_CNT_BYTE 3
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_MSLICE_GOB 4
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_RC_OFF 1
|
|
|
|
#define VEN_RC_VBR_VFR 2
|
|
|
|
#define VEN_RC_VBR_CFR 3
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_RC_CBR_VFR 4
|
|
|
|
#define VEN_RC_CBR_CFR 5
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_FLUSH_INPUT 1
|
|
|
|
#define VEN_FLUSH_OUTPUT 2
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_FLUSH_ALL 3
|
|
|
|
#define VEN_INPUTFMT_NV12 1
|
|
|
|
#define VEN_INPUTFMT_NV21 2
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_INPUTFMT_NV12_16M2KA 3
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_ROTATION_0 1
|
|
|
|
#define VEN_ROTATION_90 2
|
|
|
|
#define VEN_ROTATION_180 3
|
|
|
|
#define VEN_ROTATION_270 4
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_TIMEOUT_INFINITE 0xffffffff
|
|
|
|
#define VEN_IR_OFF 1
|
|
|
|
#define VEN_IR_CYCLIC 2
|
|
|
|
#define VEN_IR_RANDOM 3
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTLBASE_NENC 0x800
|
|
|
|
#define VEN_IOCTLBASE_ENC 0x850
|
|
|
|
struct venc_ioctl_msg{
|
2012-06-20 06:50:38 +02:00
|
|
|
void __user *in;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-20 06:50:38 +02:00
|
|
|
void __user *out;
|
2010-06-24 01:17:58 +02:00
|
|
|
};
|
|
|
|
#define VEN_IOCTL_SET_INTF_VERSION _IOW(VEN_IOCTLBASE_NENC, 0, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_CMD_READ_NEXT_MSG _IOWR(VEN_IOCTLBASE_NENC, 1, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_CMD_STOP_READ_MSG _IO(VEN_IOCTLBASE_NENC, 2)
|
|
|
|
#define VEN_IOCTL_SET_INPUT_BUFFER_REQ _IOW(VEN_IOCTLBASE_NENC, 3, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_INPUT_BUFFER_REQ _IOR(VEN_IOCTLBASE_NENC, 4, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_CMD_ALLOC_INPUT_BUFFER _IOW(VEN_IOCTLBASE_NENC, 5, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_SET_INPUT_BUFFER _IOW(VEN_IOCTLBASE_NENC, 6, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_CMD_FREE_INPUT_BUFFER _IOW(VEN_IOCTLBASE_NENC, 7, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_OUTPUT_BUFFER_REQ _IOW(VEN_IOCTLBASE_NENC, 8, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_OUTPUT_BUFFER_REQ _IOR(VEN_IOCTLBASE_NENC, 9, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_CMD_ALLOC_OUTPUT_BUFFER _IOW(VEN_IOCTLBASE_NENC, 10, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_OUTPUT_BUFFER _IOW(VEN_IOCTLBASE_NENC, 11, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_CMD_FREE_OUTPUT_BUFFER _IOW(VEN_IOCTLBASE_NENC, 12, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_CMD_START _IO(VEN_IOCTLBASE_NENC, 13)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_CMD_ENCODE_FRAME _IOW(VEN_IOCTLBASE_NENC, 14, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_CMD_FILL_OUTPUT_BUFFER _IOW(VEN_IOCTLBASE_NENC, 15, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_CMD_FLUSH _IOW(VEN_IOCTLBASE_NENC, 16, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_CMD_PAUSE _IO(VEN_IOCTLBASE_NENC, 17)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_CMD_RESUME _IO(VEN_IOCTLBASE_NENC, 18)
|
|
|
|
#define VEN_IOCTL_CMD_STOP _IO(VEN_IOCTLBASE_NENC, 19)
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_IOCTL_SET_RECON_BUFFER _IOW(VEN_IOCTLBASE_NENC, 20, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_FREE_RECON_BUFFER _IOW(VEN_IOCTLBASE_NENC, 21, struct venc_ioctl_msg)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_IOCTL_GET_RECON_BUFFER_SIZE _IOW(VEN_IOCTLBASE_NENC, 22, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_BASE_CFG _IOW(VEN_IOCTLBASE_ENC, 1, struct venc_ioctl_msg)
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_GET_BASE_CFG _IOR(VEN_IOCTLBASE_ENC, 2, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_LIVE_MODE _IOW(VEN_IOCTLBASE_ENC, 3, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_GET_LIVE_MODE _IOR(VEN_IOCTLBASE_ENC, 4, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_CODEC_PROFILE _IOW(VEN_IOCTLBASE_ENC, 5, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_CODEC_PROFILE _IOR(VEN_IOCTLBASE_ENC, 6, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_PROFILE_LEVEL _IOW(VEN_IOCTLBASE_ENC, 7, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_GET_PROFILE_LEVEL _IOR(VEN_IOCTLBASE_ENC, 8, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_SHORT_HDR _IOW(VEN_IOCTLBASE_ENC, 9, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_SHORT_HDR _IOR(VEN_IOCTLBASE_ENC, 10, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_SESSION_QP _IOW(VEN_IOCTLBASE_ENC, 11, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_GET_SESSION_QP _IOR(VEN_IOCTLBASE_ENC, 12, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_INTRA_PERIOD _IOW(VEN_IOCTLBASE_ENC, 13, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_INTRA_PERIOD _IOR(VEN_IOCTLBASE_ENC, 14, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_CMD_REQUEST_IFRAME _IO(VEN_IOCTLBASE_ENC, 15)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_GET_CAPABILITY _IOR(VEN_IOCTLBASE_ENC, 16, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_SEQUENCE_HDR _IOR(VEN_IOCTLBASE_ENC, 17, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_ENTROPY_CFG _IOW(VEN_IOCTLBASE_ENC, 18, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_ENTROPY_CFG _IOR(VEN_IOCTLBASE_ENC, 19, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_SET_DEBLOCKING_CFG _IOW(VEN_IOCTLBASE_ENC, 20, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_DEBLOCKING_CFG _IOR(VEN_IOCTLBASE_ENC, 21, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_INTRA_REFRESH _IOW(VEN_IOCTLBASE_ENC, 22, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_INTRA_REFRESH _IOR(VEN_IOCTLBASE_ENC, 23, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_SET_MULTI_SLICE_CFG _IOW(VEN_IOCTLBASE_ENC, 24, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_MULTI_SLICE_CFG _IOR(VEN_IOCTLBASE_ENC, 25, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_RATE_CTRL_CFG _IOW(VEN_IOCTLBASE_ENC, 26, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_RATE_CTRL_CFG _IOR(VEN_IOCTLBASE_ENC, 27, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_SET_VOP_TIMING_CFG _IOW(VEN_IOCTLBASE_ENC, 28, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_VOP_TIMING_CFG _IOR(VEN_IOCTLBASE_ENC, 29, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_FRAME_RATE _IOW(VEN_IOCTLBASE_ENC, 30, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_FRAME_RATE _IOR(VEN_IOCTLBASE_ENC, 31, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_SET_TARGET_BITRATE _IOW(VEN_IOCTLBASE_ENC, 32, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_TARGET_BITRATE _IOR(VEN_IOCTLBASE_ENC, 33, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_ROTATION _IOW(VEN_IOCTLBASE_ENC, 34, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_ROTATION _IOR(VEN_IOCTLBASE_ENC, 35, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_SET_HEC _IOW(VEN_IOCTLBASE_ENC, 36, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_HEC _IOR(VEN_IOCTLBASE_ENC, 37, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_DATA_PARTITION _IOW(VEN_IOCTLBASE_ENC, 38, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_DATA_PARTITION _IOR(VEN_IOCTLBASE_ENC, 39, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_SET_RVLC _IOW(VEN_IOCTLBASE_ENC, 40, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_RVLC _IOR(VEN_IOCTLBASE_ENC, 41, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_AC_PREDICTION _IOW(VEN_IOCTLBASE_ENC, 42, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_AC_PREDICTION _IOR(VEN_IOCTLBASE_ENC, 43, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-06-24 01:17:58 +02:00
|
|
|
#define VEN_IOCTL_SET_QP_RANGE _IOW(VEN_IOCTLBASE_ENC, 44, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_QP_RANGE _IOR(VEN_IOCTLBASE_ENC, 45, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_IOCTL_GET_NUMBER_INSTANCES _IOR(VEN_IOCTLBASE_ENC, 46, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_METABUFFER_MODE _IOW(VEN_IOCTLBASE_ENC, 47, struct venc_ioctl_msg)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-20 06:50:38 +02:00
|
|
|
#define VEN_IOCTL_SET_EXTRADATA _IOW(VEN_IOCTLBASE_ENC, 48, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_GET_EXTRADATA _IOR(VEN_IOCTLBASE_ENC, 49, struct venc_ioctl_msg)
|
|
|
|
#define VEN_IOCTL_SET_SLICE_DELIVERY_MODE _IO(VEN_IOCTLBASE_ENC, 50)
|
2012-10-02 18:21:20 +02:00
|
|
|
#define VEN_IOCTL_SET_SPS_PPS_FOR_IDR _IOW(VEN_IOCTLBASE_ENC, 51, struct venc_ioctl_msg)
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
struct venc_switch{
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned char status;
|
|
|
|
};
|
|
|
|
struct venc_allocatorproperty{
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long mincount;
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long maxcount;
|
|
|
|
unsigned long actualcount;
|
|
|
|
unsigned long datasize;
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long suffixsize;
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long alignment;
|
|
|
|
unsigned long bufpoolid;
|
|
|
|
};
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
struct venc_bufferpayload{
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned char *pbuffer;
|
2012-06-20 06:50:38 +02:00
|
|
|
size_t sz;
|
2010-06-24 01:17:58 +02:00
|
|
|
int fd;
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned int offset;
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned int maped_size;
|
|
|
|
unsigned long filled_len;
|
|
|
|
};
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
struct venc_buffer{
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned char *ptrbuffer;
|
2012-06-20 06:50:38 +02:00
|
|
|
unsigned long sz;
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long len;
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long offset;
|
2010-06-24 01:17:58 +02:00
|
|
|
long long timestamp;
|
|
|
|
unsigned long flags;
|
|
|
|
void *clientdata;
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
};
|
2010-06-24 01:17:58 +02:00
|
|
|
struct venc_basecfg{
|
|
|
|
unsigned long input_width;
|
|
|
|
unsigned long input_height;
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long dvs_width;
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long dvs_height;
|
|
|
|
unsigned long codectype;
|
|
|
|
unsigned long fps_num;
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long fps_den;
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long targetbitrate;
|
|
|
|
unsigned long inputformat;
|
|
|
|
};
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
struct venc_profile{
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long profile;
|
|
|
|
};
|
|
|
|
struct ven_profilelevel{
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long level;
|
2010-06-24 01:17:58 +02:00
|
|
|
};
|
|
|
|
struct venc_sessionqp{
|
|
|
|
unsigned long iframeqp;
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long pframqp;
|
2010-06-24 01:17:58 +02:00
|
|
|
};
|
|
|
|
struct venc_qprange{
|
|
|
|
unsigned long maxqp;
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long minqp;
|
2010-06-24 01:17:58 +02:00
|
|
|
};
|
|
|
|
struct venc_intraperiod{
|
|
|
|
unsigned long num_pframes;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long num_bframes;
|
2010-06-24 01:17:58 +02:00
|
|
|
};
|
|
|
|
struct venc_seqheader{
|
|
|
|
unsigned char *hdrbufptr;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long bufsize;
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long hdrlen;
|
|
|
|
};
|
|
|
|
struct venc_capability{
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long codec_types;
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long maxframe_width;
|
|
|
|
unsigned long maxframe_height;
|
|
|
|
unsigned long maxtarget_bitrate;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long maxframe_rate;
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long input_formats;
|
|
|
|
unsigned char dvs;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
struct venc_entropycfg{
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned longentropysel;
|
|
|
|
unsigned long cabacmodel;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
struct venc_dbcfg{
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long db_mode;
|
|
|
|
unsigned long slicealpha_offset;
|
|
|
|
unsigned long slicebeta_offset;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
};
|
2010-06-24 01:17:58 +02:00
|
|
|
struct venc_intrarefresh{
|
|
|
|
unsigned long irmode;
|
|
|
|
unsigned long mbcount;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
};
|
2010-06-24 01:17:58 +02:00
|
|
|
struct venc_multiclicecfg{
|
|
|
|
unsigned long mslice_mode;
|
|
|
|
unsigned long mslice_size;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
};
|
2010-06-24 01:17:58 +02:00
|
|
|
struct venc_bufferflush{
|
|
|
|
unsigned long flush_mode;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
struct venc_ratectrlcfg{
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long rcmode;
|
|
|
|
};
|
|
|
|
struct venc_voptimingcfg{
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long voptime_resolution;
|
2010-06-24 01:17:58 +02:00
|
|
|
};
|
|
|
|
struct venc_framerate{
|
|
|
|
unsigned long fps_denominator;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long fps_numerator;
|
2010-06-24 01:17:58 +02:00
|
|
|
};
|
|
|
|
struct venc_targetbitrate{
|
|
|
|
unsigned long target_bitrate;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
};
|
2010-06-24 01:17:58 +02:00
|
|
|
struct venc_rotation{
|
|
|
|
unsigned long rotation;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
struct venc_timeout{
|
2010-06-24 01:17:58 +02:00
|
|
|
unsigned long millisec;
|
|
|
|
};
|
|
|
|
struct venc_headerextension{
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long header_extension;
|
2010-06-24 01:17:58 +02:00
|
|
|
};
|
|
|
|
struct venc_msg{
|
|
|
|
unsigned long statuscode;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long msgcode;
|
2010-06-24 01:17:58 +02:00
|
|
|
struct venc_buffer buf;
|
|
|
|
unsigned long msgdata_size;
|
|
|
|
};
|
2012-06-20 06:50:38 +02:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
struct venc_recon_addr{
|
2012-06-20 06:50:38 +02:00
|
|
|
unsigned char *pbuffer;
|
|
|
|
unsigned long buffer_size;
|
|
|
|
unsigned long pmem_fd;
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
unsigned long offset;
|
2012-06-20 06:50:38 +02:00
|
|
|
};
|
|
|
|
struct venc_recon_buff_size{
|
|
|
|
int width;
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
int height;
|
2012-06-20 06:50:38 +02:00
|
|
|
int size;
|
|
|
|
int alignment;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-10-02 18:21:20 +02:00
|
|
|
#endif
|
2012-06-20 06:50:38 +02:00
|
|
|
|