aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeian Chen <weian.chen@intel.com>2014-03-27 09:13:37 -0700
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:03:43 -0700
commit0e0c2732815205370638a066fe4f25743310a531 (patch)
tree5480bf25a9f8dd4fa67f5fc5c8dc20d272be0836
parent536f092125a0a1b5a60aa60690a2393c83b3848a (diff)
downloadwrs_omxil_core-0e0c2732815205370638a066fe4f25743310a531.tar.gz
mx-core: add one more index OMX_IndexExtRequestBlackFramePointer
BZ: 182643 Add one more index to allow client to request black frame pointer Change-Id: Ifbd56acefbc29e43eadeef7bf5434bf327d9b31e Signed-off-by: Weian Chen <weian.chen@intel.com>
-rw-r--r--base/src/componentbase.cpp4
-rw-r--r--core/inc/khronos/openmax/include/OMX_IntelIndexExt.h6
-rw-r--r--core/inc/khronos/openmax/include/OMX_IntelVideoExt.h8
3 files changed, 16 insertions, 2 deletions
diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp
index 13ddd3b..dede331 100644
--- a/base/src/componentbase.cpp
+++ b/base/src/componentbase.cpp
@@ -834,6 +834,10 @@ OMX_ERRORTYPE ComponentBase::CBaseGetExtensionIndex(
*pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtVP8ForceKFrame);
return OMX_ErrorNone;
}
+ if (!strcmp(cParameterName, "OMX.Intel.index.requestBlackFramePointer")) {
+ *pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtRequestBlackFramePointer);
+ return OMX_ErrorNone;
+ }
if (!strcmp(cParameterName, "OMX.Intel.index.vp8MaxFrameRatio")) {
*pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtVP8MaxFrameSizeRatio);
diff --git a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h
index e395f79..4bdf6a7 100644
--- a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h
+++ b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h
@@ -67,8 +67,10 @@ 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_IndexExtVP8MaxFrameSizeRatio, /**<reference: For VP8 Max Frame Size*/
- OMX_IndexExtNumberOfTemporalLayer, /**<reference: For Number of Layer*/
+ OMX_IndexExtVP8MaxFrameSizeRatio, /**<reference: For VP8 Max Frame Size*/
+ OMX_IndexExtNumberOfTemporalLayer, /**<reference: For Number of Layer*/
+ OMX_IndexExtRequestBlackFramePointer, /**<reference: OMX_VIDEO_INTEL_REQUEST_BALCK_FRAME_POINTER*/
+
// 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 bd2a8ed..9732d64 100644
--- a/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h
+++ b/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h
@@ -208,6 +208,14 @@ typedef struct OMX_VIDEO_PARAM_INTEL_NUMBER_OF_TEMPORAL_LAYER {
} OMX_VIDEO_PARAM_INTEL_NUMBER_OF_TEMPORAL_LAYER;
+// Request OMX to allocate a black frame to video mute feature
+typedef struct OMX_VIDEO_INTEL_REQUEST_BALCK_FRAME_POINTER {
+ OMX_U32 nSize;
+ OMX_VERSIONTYPE nVersion;
+ OMX_U32 nPortIndex;
+ OMX_U32 nFramePointer;
+} OMX_VIDEO_INTEL_REQUEST_BALCK_FRAME_POINTER;
+
#ifdef __cplusplus
}
#endif /* __cplusplus */