diff options
author | Yong Yao <yong.yao@intel.com> | 2011-11-25 05:47:46 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:03:38 -0700 |
commit | 92528264a273da7a58fefc7b77b0437bbcc6c330 (patch) | |
tree | a4fc15f25660381bd68cc0b6f35a06f655fe0a02 | |
parent | 44e493bfd5e5abeadd4431e294d3108235bdeb29 (diff) | |
download | wrs_omxil_core-92528264a273da7a58fefc7b77b0437bbcc6c330.tar.gz |
CAMERA: add setParameter for storeMetaDataInBuffers
BZ: 15257
Change-Id: I915d759af9476b78cd251c290cac876d006b64a4
Signed-off-by: Shuo Liu <shuo.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/25227
Reviewed-by: Seibel, Eric <eric.seibel@intel.com>
Tested-by: Seibel, Eric <eric.seibel@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
-rw-r--r-- | base/src/componentbase.cpp | 5 | ||||
-rw-r--r-- | core/inc/khronos/openmax/include/OMX_IndexExt.h | 1 | ||||
-rw-r--r-- | core/inc/khronos/openmax/include/OMX_VideoExt.h | 7 |
3 files changed, 13 insertions, 0 deletions
diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp index 6aa3b91..13429cd 100644 --- a/base/src/componentbase.cpp +++ b/base/src/componentbase.cpp @@ -757,6 +757,11 @@ OMX_ERRORTYPE ComponentBase::CBaseGetExtensionIndex( return OMX_ErrorNone; } + if (!strcmp(cParameterName, "OMX.google.android.index.storeMetaDataInBuffers")) { + *pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexStoreMetaDataInBuffers); + return OMX_ErrorNone; + } + return OMX_ErrorUnsupportedIndex; } diff --git a/core/inc/khronos/openmax/include/OMX_IndexExt.h b/core/inc/khronos/openmax/include/OMX_IndexExt.h index 59bede1..7f2383e 100644 --- a/core/inc/khronos/openmax/include/OMX_IndexExt.h +++ b/core/inc/khronos/openmax/include/OMX_IndexExt.h @@ -75,6 +75,7 @@ typedef enum OMX_INDEXEXTTYPE { OMX_IndexParamIntelAVCVUI, /**< reference: OMX_VIDEO_PARAM_INTEL_AVCVUI */
OMX_IndexParamIntelAdaptiveSliceControl, /**< reference: OMX_VIDEO_PARAM_INTEL_ADAPTIVE_SLICE_CONTROL */
OMX_IndexBufferIDMode, /**< reference: boolean value to specify buffer id mode is in effect*/ + OMX_IndexStoreMetaDataInBuffers, /**< reference: StoreMetaDataInBuffersParams*/ /* Image & Video common configurations */
OMX_IndexExtCommonStartUnused = OMX_IndexKhronosExtensions + 0x00700000,
diff --git a/core/inc/khronos/openmax/include/OMX_VideoExt.h b/core/inc/khronos/openmax/include/OMX_VideoExt.h index bfdbd7b..7a4a9c0 100644 --- a/core/inc/khronos/openmax/include/OMX_VideoExt.h +++ b/core/inc/khronos/openmax/include/OMX_VideoExt.h @@ -145,6 +145,13 @@ typedef struct OMX_VIDEO_PARAM_INTEL_ADAPTIVE_SLICE_CONTROL { OMX_U32 nSliceSizeSkipThreshold; // Slice size skip threshold for adaptive slice control to start a new slice } OMX_VIDEO_PARAM_INTEL_ADAPTIVE_SLICE_CONTROL; +//align with <media/stagefright/HardwareAPI.h> +typedef struct StoreMetaDataInBuffersParams { + OMX_U32 nSize; // Size of the structure + OMX_VERSIONTYPE nVersion; // OMX specification version + OMX_U32 nPortIndex; // Port that this struct applies to + OMX_BOOL bStoreMetaData; // Enable/disable meta data input +} StoreMetaDataInBuffersParams; #ifdef __cplusplus } |