summaryrefslogtreecommitdiffstats
path: root/mm-core/inc/OMX_QCOMExtns.h
diff options
context:
space:
mode:
authorDeva Ramasubramanian <dramasub@codeaurora.org>2013-05-13 16:05:03 -0700
committerDeva Ramasubramanian <dramasub@codeaurora.org>2013-05-22 11:44:19 -0700
commit15bbc1c584be6b556f8bbd7c24dd14bffbfcc058 (patch)
treefffa2c1ccc860cf4257fdf91fb9f943acf430414 /mm-core/inc/OMX_QCOMExtns.h
parent7e2883e9a979f25f1ea9de4a2d33680ee2168a96 (diff)
downloadandroid_hardware_qcom_media-15bbc1c584be6b556f8bbd7c24dd14bffbfcc058.tar.gz
android_hardware_qcom_media-15bbc1c584be6b556f8bbd7c24dd14bffbfcc058.tar.bz2
android_hardware_qcom_media-15bbc1c584be6b556f8bbd7c24dd14bffbfcc058.zip
mm-video: vidc: Add support for OMX_IndexVendorVideoFrameRate
OMX_IndexVendorVideoFrameRate allows client to dynamically configure the framerate. This is useful when the clients might want a higher framerate without wanting to manipulate timestamps. Change-Id: Id2a4abf26edc97259723fd84dd5289a33fb26220
Diffstat (limited to 'mm-core/inc/OMX_QCOMExtns.h')
-rw-r--r--mm-core/inc/OMX_QCOMExtns.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/mm-core/inc/OMX_QCOMExtns.h b/mm-core/inc/OMX_QCOMExtns.h
index d08a0fa6..91775b15 100644
--- a/mm-core/inc/OMX_QCOMExtns.h
+++ b/mm-core/inc/OMX_QCOMExtns.h
@@ -708,11 +708,27 @@ typedef struct OMX_VENDOR_EXTRADATATYPE {
OMX_U8 *pData; // cdata (codec_data/extradata)
} OMX_VENDOR_EXTRADATATYPE;
+/**
+ * This structure describes the parameters corresponding to the
+ * OMX_VENDOR_VIDEOFRAMERATE extension. This parameter can be set
+ * dynamically during any state except the state invalid. This is
+ * used for frame rate to be set from the application. This
+ * is set on the in port.
+ */
+typedef struct OMX_VENDOR_VIDEOFRAMERATE {
+ OMX_U32 nSize; /** Size of the structure in bytes */
+ OMX_VERSIONTYPE nVersion;/** OMX specification version information */
+ OMX_U32 nPortIndex; /** Portindex which is extended by this structure */
+ OMX_U32 nFps; /** Frame rate value */
+ OMX_BOOL bEnabled; /** Flag to enable or disable client's frame rate value */
+} OMX_VENDOR_VIDEOFRAMERATE;
+
typedef enum OMX_INDEXVENDORTYPE {
OMX_IndexVendorFileReadInputFilename = 0xFF000001,
OMX_IndexVendorParser3gpInputFilename = 0xFF000002,
OMX_IndexVendorVideoExtraData = 0xFF000003,
- OMX_IndexVendorAudioExtraData = 0xFF000004
+ OMX_IndexVendorAudioExtraData = 0xFF000004,
+ OMX_IndexVendorVideoFrameRate = 0xFF000005,
} OMX_INDEXVENDORTYPE;
typedef enum OMX_QCOM_VC1RESOLUTIONTYPE