diff options
-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; |