aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiao <fengx.xiao@intel.com>2012-02-24 10:59:03 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:03:38 -0700
commit81df951a8711fe300306e8c179677efea58adb65 (patch)
treefe9cb617479e0e50d29f71830ad0774b3fb9ca12
parent06d2b4622ddb4b2f9ae3bd5eefd4d991c5d69367 (diff)
downloadwrs_omxil_core-81df951a8711fe300306e8c179677efea58adb65.tar.gz
Add OMX_IndexExtRotationDegrees parameter
BZ: 23620 Add OMX_IndexExtRotationDegrees index to set video clip rotation info from framework Change-Id: Ie87082b60236f2a35ebce754f26dfd2918b3ec42 Signed-off-by: xiao <fengx.xiao@intel.com> Reviewed-on: http://android.intel.com:8080/36471 Reviewed-by: Hu, Jason <jason.hu@intel.com> Reviewed-by: Liang, Dan <dan.liang@intel.com> Reviewed-by: Ding, Haitao <haitao.ding@intel.com> Tested-by: Ding, Haitao <haitao.ding@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
-rw-r--r--base/src/componentbase.cpp10
-rw-r--r--core/inc/khronos/openmax/include/OMX_IndexExt.h1
2 files changed, 8 insertions, 3 deletions
diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp
index 98bcf53..978f9a0 100644
--- a/base/src/componentbase.cpp
+++ b/base/src/componentbase.cpp
@@ -764,20 +764,24 @@ OMX_ERRORTYPE ComponentBase::CBaseGetExtensionIndex(
return OMX_ErrorNone;
}
- if(!strcmp(cParameterName, "OMX.google.android.index.enableAndroidNativeBuffers")) {
+ if (!strcmp(cParameterName, "OMX.google.android.index.enableAndroidNativeBuffers")) {
*pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtEnableNativeBuffer);
return OMX_ErrorNone;
}
- if(!strcmp(cParameterName, "OMX.google.android.index.getAndroidNativeBufferUsage")) {
+ if (!strcmp(cParameterName, "OMX.google.android.index.getAndroidNativeBufferUsage")) {
*pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtGetNativeBufferUsage);
return OMX_ErrorNone;
}
- if(!strcmp(cParameterName, "OMX.google.android.index.useAndroidNativeBuffer")) {
+ if (!strcmp(cParameterName, "OMX.google.android.index.useAndroidNativeBuffer")) {
*pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtUseNativeBuffer);
return OMX_ErrorNone;
}
+ if (!strcmp(cParameterName, "OMX.Intel.index.rotation")) {
+ *pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtRotationDegrees);
+ return OMX_ErrorNone;
+ }
return OMX_ErrorUnsupportedIndex;
}
diff --git a/core/inc/khronos/openmax/include/OMX_IndexExt.h b/core/inc/khronos/openmax/include/OMX_IndexExt.h
index ffbfa95..85c6638 100644
--- a/core/inc/khronos/openmax/include/OMX_IndexExt.h
+++ b/core/inc/khronos/openmax/include/OMX_IndexExt.h
@@ -90,6 +90,7 @@ typedef enum OMX_INDEXEXTTYPE {
OMX_IndexExtEnableNativeBuffer, /**<reference: EnableNativeBuffer */
OMX_IndexExtGetNativeBufferUsage, /**<reference: GetNativeBufferUsage */
OMX_IndexExtUseNativeBuffer, /**<reference: UseNativeBuffer */
+ OMX_IndexExtRotationDegrees, /**<reference: Rotation for decode*/
OMX_IndexExtMax = 0x7FFFFFFF
} OMX_INDEXEXTTYPE;