diff options
author | Zhao Liang <leo.zhao@intel.com> | 2013-08-23 14:22:57 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:03:41 -0700 |
commit | e8ef7cfbad3a42b41edabbdc4ed258ce331a00a0 (patch) | |
tree | 7828ecba6df4dd1a24016be6371e283dd4e5d542 | |
parent | 5ab2f45a95344b12cad43f277a730c8679b42171 (diff) | |
download | wrs_omxil_core-e8ef7cfbad3a42b41edabbdc4ed258ce331a00a0.tar.gz |
Add new ext parameter to support sync mode video recording
BZ: 131021
Change-Id: Idb25d1d36b4a875f01ce72923770f9627e79f483
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/127320
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
-rw-r--r-- | base/src/componentbase.cpp | 6 | ||||
-rw-r--r-- | core/inc/khronos/openmax/include/OMX_IntelIndexExt.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp index 190b545..5ef23c1 100644 --- a/base/src/componentbase.cpp +++ b/base/src/componentbase.cpp @@ -745,11 +745,17 @@ OMX_ERRORTYPE ComponentBase::CBaseGetExtensionIndex( *pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtUseNativeBuffer); return OMX_ErrorNone; } + if (!strcmp(cParameterName, "OMX.Intel.index.rotation")) { *pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtRotationDegrees); return OMX_ErrorNone; } + if (!strcmp(cParameterName, "OMX.Intel.index.enableSyncEncoding")) { + *pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtSyncEncoding); + return OMX_ErrorNone; + } + return OMX_ErrorUnsupportedIndex; } diff --git a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h index e90ebdc..8692906 100644 --- a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h +++ b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h @@ -61,6 +61,7 @@ typedef enum OMX_INTELINDEXEXTTYPE { OMX_IndexExtGetNativeBufferUsage, /**<reference: GetNativeBufferUsage */ OMX_IndexExtUseNativeBuffer, /**<reference: UseNativeBuffer */ OMX_IndexExtRotationDegrees, /**<reference: Rotation for decode*/ + OMX_IndexExtSyncEncoding, /**<reference: Sync mode for encode*/ OMX_IntelIndexExtMax = 0x7FFFFFFF } OMX_INTELINDEXEXTTYPE; |