diff options
author | Rajesh Sastrula <vrajesh@quicinc.com> | 2010-02-19 10:13:21 -0800 |
---|---|---|
committer | Rajesh Sastrula <vrajesh@quicinc.com> | 2010-02-19 10:13:21 -0800 |
commit | a42fac1169339e1f6b54c5231beacec351c28f6f (patch) | |
tree | 05844bd71e2247d79a72fb1802072c177dbed446 /libc | |
parent | ca0d5ffd60af813fd6502f3a2ce47afc7c43632b (diff) | |
download | bionic-a42fac1169339e1f6b54c5231beacec351c28f6f.zip bionic-a42fac1169339e1f6b54c5231beacec351c28f6f.tar.gz bionic-a42fac1169339e1f6b54c5231beacec351c28f6f.tar.bz2 |
8x50: vdec: Add support for NV21 yamato color format
- Add new ioctl to get driver version.
- Add enums to support NV21 yamato color format
Diffstat (limited to 'libc')
-rw-r--r-- | libc/kernel/common/linux/msm_q6vdec.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libc/kernel/common/linux/msm_q6vdec.h b/libc/kernel/common/linux/msm_q6vdec.h index b2f9f10..ec2175c 100644 --- a/libc/kernel/common/linux/msm_q6vdec.h +++ b/libc/kernel/common/linux/msm_q6vdec.h @@ -26,6 +26,7 @@ #define VDEC_IOCTL_CLOSE _IO(VDEC_IOCTL_MAGIC, 8) #define VDEC_IOCTL_FREEBUFFERS _IOW(VDEC_IOCTL_MAGIC, 9, struct vdec_buf_info) #define VDEC_IOCTL_GETDECATTRIBUTES _IOR(VDEC_IOCTL_MAGIC, 10, struct vdec_dec_attributes) +#define VDEC_IOCTL_GETVERSION _IOR(VDEC_IOCTL_MAGIC, 11, struct vdec_version) enum { VDEC_FRAME_DECODE_OK, @@ -58,6 +59,11 @@ enum { VDEC_QUEUE_BADSTATE, }; +enum { + VDEC_COLOR_FORMAT_NV21 = 0x01, + VDEC_COLOR_FORMAT_NV21_YAMOTO = 0x02 + }; + struct vdec_input_buf_info { u32 offset; u32 data; @@ -99,7 +105,7 @@ struct vdec_config { u32 h264_nal_len_size; u32 postproc_flag; u32 fruc_enable; - u32 reserved; + u32 color_format; }; struct vdec_vc1_panscan_regions { @@ -208,4 +214,9 @@ struct vdec_dec_attributes { struct vdec_buf_desc dec_req2; }; +struct vdec_version { + u32 major; + u32 minor; +}; + #endif |