diff options
author | Lakshman Gowda <lakshman79@ti.com> | 2011-08-23 20:58:25 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-08-30 19:42:15 -0700 |
commit | 9e964f98a366c756b96a97809b31579fdcc43e97 (patch) | |
tree | d98e40b36a537dbf0609f20b8fc783193163451f /domx/omx_core/inc | |
parent | e5d86ac2b8d0b0172944bb46c7a5d2c6b659b2a9 (diff) | |
download | omap4xxx-9e964f98a366c756b96a97809b31579fdcc43e97.tar.gz |
DOMX : provide extension index support for gralloc buffer usage flags query
The Stagefright queries DOMX in order to allocate buffers from gralloc with
correct usage flags.
Change-Id: I85dc7bd6bf6b3008a12470bb797df0cce8a370e0
Signed-off-by: Lakshman Gowda <lakshman79@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'domx/omx_core/inc')
-rwxr-xr-x | domx/omx_core/inc/OMX_TI_IVCommon.h | 15 | ||||
-rwxr-xr-x | domx/omx_core/inc/OMX_TI_Index.h | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/domx/omx_core/inc/OMX_TI_IVCommon.h b/domx/omx_core/inc/OMX_TI_IVCommon.h index d16120e..ebd5b2f 100755 --- a/domx/omx_core/inc/OMX_TI_IVCommon.h +++ b/domx/omx_core/inc/OMX_TI_IVCommon.h @@ -2541,6 +2541,21 @@ typedef struct OMX_TI_PARAMUSENATIVEBUFFER { OMX_BOOL bEnable; } OMX_TI_PARAMUSENATIVEBUFFER; +/** +* A pointer to this struct is passed to OMX_GetParameter when the extension +* index for the 'OMX.google.android.index.getAndroidNativeBufferUsage' +* extension is given. +* The corresponding extension Index is OMX_TI_IndexAndroidNativeBufferUsage. +* The usage bits returned from this query will be used to allocate the Gralloc +* buffers that get passed to the useAndroidNativeBuffer command. +*/ +typedef struct OMX_TI_PARAMNATIVEBUFFERUSAGE { + OMX_U32 nSize; + OMX_VERSIONTYPE nVersion; + OMX_U32 nPortIndex; + OMX_U32 nUsage; +} OMX_TI_PARAMNATIVEBUFFERUSAGE; + /*==========================================================================*/ /*! @brief OMX_TI_PARAM_ENHANCEDPORTRECONFIG : Suport added to new port reconfig usage diff --git a/domx/omx_core/inc/OMX_TI_Index.h b/domx/omx_core/inc/OMX_TI_Index.h index 3cc5a92..5aec517 100755 --- a/domx/omx_core/inc/OMX_TI_Index.h +++ b/domx/omx_core/inc/OMX_TI_Index.h @@ -223,7 +223,8 @@ typedef enum OMX_TI_INDEXTYPE { OMX_TI_IndexParamZslHistoryLen, /**< reference: OMX_TI_PARAM_ZSLHISTORYLENTYPE */ OMX_TI_IndexConfigZslDelay, /**< reference: OMX_TI_CONFIG_ZSLDELAYTYPE */ OMX_TI_IndexParamMetaDataBufferInfo, /***< reference: OMX_TI_PARAM_METADATABUFFERINFO */ - OMX_TI_IndexConfigZslFrameSelectMethod /**< reference: OMX_TI_CONFIG_ZSLFRAMESELECTMETHODTYPE */ + OMX_TI_IndexConfigZslFrameSelectMethod, /**< reference: OMX_TI_CONFIG_ZSLFRAMESELECTMETHODTYPE */ + OMX_TI_IndexAndroidNativeBufferUsage /**< reference: OMX_TI_IndexAndroidNativeBufferUsage */ } OMX_TI_INDEXTYPE; |