summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco A Vital Yep <mvital@codeaurora.org>2010-09-07 17:48:38 -0700
committerMarco A Vital Yep <mvital@codeaurora.org>2010-09-10 13:43:13 -0700
commitcf304f77e469aa6adc8a26b5a822f2a2b30464a3 (patch)
tree0bdc372856a47e9ae9babc59a6f76b268a662b11
parentec9dbc893f663662fcf5deb35fd95a85a0d8e5ab (diff)
downloadbionic-cf304f77e469aa6adc8a26b5a822f2a2b30464a3.zip
bionic-cf304f77e469aa6adc8a26b5a822f2a2b30464a3.tar.gz
bionic-cf304f77e469aa6adc8a26b5a822f2a2b30464a3.tar.bz2
bionic: Add support for output decode order and frame rate
Add support to set output decode order and frame rate for video decoder. Change-Id: I7aa66e8ac257fdfc8554f1d5dd72d4b8be6493bd
-rwxr-xr-xlibc/kernel/common/linux/msm_vidc_dec.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/msm_vidc_dec.h b/libc/kernel/common/linux/msm_vidc_dec.h
index eaeb8b3..29e0f28 100755
--- a/libc/kernel/common/linux/msm_vidc_dec.h
+++ b/libc/kernel/common/linux/msm_vidc_dec.h
@@ -134,6 +134,10 @@ struct vdec_ioctl_msg {
#define VDEC_IOCTL_GET_NUMBER_INSTANCES _IOR(VDEC_IOCTL_MAGIC, 27, struct vdec_ioctl_msg)
+#define VDEC_IOCTL_SET_PICTURE_ORDER _IOW(VDEC_IOCTL_MAGIC, 28, struct vdec_ioctl_msg)
+
+#define VDEC_IOCTL_SET_FRAME_RATE _IOW(VDEC_IOCTL_MAGIC, 29, struct vdec_ioctl_msg)
+
enum vdec_picture {
PICTURE_TYPE_I,
PICTURE_TYPE_P,
@@ -396,6 +400,11 @@ enum vdec_output_fromat {
VDEC_YUV_FORMAT_TILE_4x2 = 0x2
};
+enum vdec_output_order {
+ VDEC_ORDER_DISPLAY = 0x1,
+ VDEC_ORDER_DECODE = 0x2
+};
+
struct vdec_picsize {
uint32_t frame_width;
uint32_t frame_height;
@@ -455,4 +464,10 @@ struct vdec_msginfo {
union vdec_msgdata msgdata;
size_t msgdatasize;
};
+
+struct vdec_framerate {
+ unsigned long fps_denominator;
+ unsigned long fps_numerator;
+};
+
#endif