diff options
author | Yu, Linda <linda.yu@intel.com> | 2013-10-24 12:20:25 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:03:41 -0700 |
commit | 241b5fe3bb7d386f5875ec19a6a22f6d5dd68b29 (patch) | |
tree | a2282de33c05b9c37e4582d43b65d138ea7b02aa | |
parent | fbd63aabced2ef7b356f2dea4903b5ca7b12362c (diff) | |
download | wrs_omxil_core-241b5fe3bb7d386f5875ec19a6a22f6d5dd68b29.tar.gz |
add OMX_IndexExtVppBufferNum
BZ: 145717
add OMX_IndexExtVppBufferNum in order to get vpp buffers num from
framework
Change-Id: I27b9ddffe1455dc5775c0c914ed577c8992a6f9f
Signed-off-by: Yu, Linda <linda.yu@intel.com>
-rw-r--r-- | base/src/Android.mk | 4 | ||||
-rw-r--r-- | base/src/componentbase.cpp | 7 | ||||
-rw-r--r-- | core/inc/khronos/openmax/include/OMX_IntelIndexExt.h | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/base/src/Android.mk b/base/src/Android.mk index 0b81f20..85483a5 100644 --- a/base/src/Android.mk +++ b/base/src/Android.mk @@ -1,6 +1,10 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) +ifeq ($(TARGET_HAS_VPP),true) +LOCAL_CFLAGS += -DTARGET_HAS_VPP +endif + LOCAL_SRC_FILES := \ cmodule.cpp \ componentbase.cpp \ diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp index b5fada2..7ea8417 100644 --- a/base/src/componentbase.cpp +++ b/base/src/componentbase.cpp @@ -761,6 +761,13 @@ OMX_ERRORTYPE ComponentBase::CBaseGetExtensionIndex( return OMX_ErrorNone; } +#ifdef TARGET_HAS_VPP + if (!strcmp(cParameterName, "OMX.Intel.index.vppBufferNum")) { + *pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtVppBufferNum); + return OMX_ErrorNone; + } +#endif + return OMX_ErrorUnsupportedIndex; } diff --git a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h index d5c9911..ee03f31 100644 --- a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h +++ b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h @@ -63,6 +63,9 @@ typedef enum OMX_INTELINDEXEXTTYPE { OMX_IndexExtRotationDegrees, /**<reference: Rotation for decode*/ OMX_IndexExtSyncEncoding, /**<reference: Sync mode for encode*/ OMX_IndexExtPrependSPSPPS, +#ifdef TARGET_HAS_VPP + OMX_IndexExtVppBufferNum, /**<reference: vpp buffer number*/ +#endif OMX_IntelIndexExtMax = 0x7FFFFFFF } OMX_INTELINDEXEXTTYPE; |