aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/src/componentbase.cpp5
-rw-r--r--core/inc/khronos/openmax/include/OMX_IntelIndexExt.h1
2 files changed, 6 insertions, 0 deletions
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_INDEXTYPE>(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, /**<reference: UseNativeBuffer */
OMX_IndexExtRotationDegrees, /**<reference: Rotation for decode*/
OMX_IndexExtSyncEncoding, /**<reference: Sync mode for encode*/
+ OMX_IndexExtPrependSPSPPS,
OMX_IntelIndexExtMax = 0x7FFFFFFF
} OMX_INTELINDEXEXTTYPE;