From fbd63aabced2ef7b356f2dea4903b5ca7b12362c Mon Sep 17 00:00:00 2001 From: gji2 Date: Mon, 23 Sep 2013 03:35:31 +0800 Subject: config omx to insert SPS/PPS before each IDR frame BZ: 138989 config omx to insert SPS/PPS before each IDR frame Change-Id: I41492f2e33373a17b3cafc7ab8cdad045d167158 Signed-off-by: gji2 Reviewed-on: http://android.intel.com:8080/133586 Reviewed-by: Zhao, Leo Reviewed-by: Yuan, Shengquan Reviewed-by: Shi, PingX Tested-by: Shi, PingX Reviewed-by: cactus Tested-by: cactus --- base/src/componentbase.cpp | 5 +++++ core/inc/khronos/openmax/include/OMX_IntelIndexExt.h | 1 + 2 files changed, 6 insertions(+) diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp index 5ef23c1..b5fada2 100644 --- a/base/src/componentbase.cpp +++ b/base/src/componentbase.cpp @@ -756,6 +756,11 @@ OMX_ERRORTYPE ComponentBase::CBaseGetExtensionIndex( return OMX_ErrorNone; } + if (!strcmp(cParameterName, "OMX.google.android.index.prependSPSPPSToIDRFrames")) { + *pIndexType = static_cast(OMX_IndexExtPrependSPSPPS); + 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 8692906..d5c9911 100644 --- a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h +++ b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h @@ -62,6 +62,7 @@ typedef enum OMX_INTELINDEXEXTTYPE { OMX_IndexExtUseNativeBuffer, /**