diff options
-rw-r--r-- | base/src/componentbase.cpp | 4 | ||||
-rw-r--r-- | core/inc/khronos/openmax/include/OMX_IntelIndexExt.h | 6 | ||||
-rw-r--r-- | core/inc/khronos/openmax/include/OMX_IntelVideoExt.h | 8 |
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 */ |