diff options
author | liubolun <bolun.liu@intel.com> | 2014-01-22 15:13:35 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:03:42 -0700 |
commit | c199545bac9fd97a5a06a6b9cf1160813b7ef753 (patch) | |
tree | 320eef114ad4b068098db9bbd28bbb199921b862 | |
parent | 46a9a52901ba2f967e57fde33b8a496fc0c82670 (diff) | |
download | wrs_omxil_core-c199545bac9fd97a5a06a6b9cf1160813b7ef753.tar.gz |
Refine setting config max frame size for VP8.
BZ: 166007
Redefine the OMX Interface and OMX Index.
Application just set the ratio of the max frame size to average bitrate.
Change-Id: Ib154f872f1fd0ff22799a13360a2789fd5bf4af0
Signed-off-by: liubolun <bolun.liu@intel.com>
-rw-r--r-- | core/inc/khronos/openmax/include/OMX_IntelIndexExt.h | 2 | ||||
-rw-r--r-- | core/inc/khronos/openmax/include/OMX_IntelVideoExt.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h index 94ef4e1..122cd46 100644 --- a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h +++ b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h @@ -67,7 +67,7 @@ typedef enum OMX_INTELINDEXEXTTYPE { OMX_IndexExtEnableErrorReport, /**<reference: EnableErrorReport for decoder */ OMX_IndexExtPrepareForAdaptivePlayback, /**<reference: Prepare for AdaptivePlayback*/ OMX_IndexExtVP8ForceKFrame, /**<reference: For VP8 Force K Frame*/ - OMX_IndexExtVP8MaxFrameSize, /**<reference: For VP8 Max Frame Size*/ + OMX_IndexExtVP8MaxFrameSizeRatio, /**<reference: For VP8 Max Frame Size*/ // Index for VPP must always be put at the end #ifdef TARGET_HAS_VPP OMX_IndexExtVppBufferNum, /**<reference: vpp buffer number*/ diff --git a/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h b/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h index c22eaca..8f40389 100644 --- a/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h +++ b/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h @@ -187,12 +187,12 @@ typedef struct OMX_VIDEO_CONFIG_INTEL_VP8_FORCE_KFRAME { } OMX_VIDEO_CONFIG_INTEL_VP8_FORCE_KFRAME; // max frame size for VP8 encode during WebRTC feature -typedef struct OMX_VIDEO_CONFIG_INTEL_VP8_MAX_FRAME_SIZE { +typedef struct OMX_VIDEO_CONFIG_INTEL_VP8_MAX_FRAME_SIZE_RATIO { OMX_U32 nSize; OMX_VERSIONTYPE nVersion; OMX_U32 nPortIndex; - OMX_U32 nMaxFrameSize; -} OMX_VIDEO_CONFIG_INTEL_VP8_MAX_FRAME_SIZE; + OMX_U32 nMaxFrameSizeRatio; +} OMX_VIDEO_CONFIG_INTEL_VP8_MAX_FRAME_SIZE_RATIO; #ifdef __cplusplus |