summaryrefslogtreecommitdiffstats
path: root/domx
diff options
context:
space:
mode:
authorLakshman Gowda <lakshman79@ti.com>2011-08-29 20:19:28 -0700
committerIliyan Malchev <malchev@google.com>2011-08-30 19:37:29 -0700
commitd8a9c1618b8277b8e847805c3f1e0afa9f0d6c1a (patch)
treea230ac185ecd70a99b59ed72d17c402ab2b6c31f /domx
parentc8d3614fc9034131bc017ef875bfc860eec77a44 (diff)
downloadhardware_ti_omap4-d8a9c1618b8277b8e847805c3f1e0afa9f0d6c1a.zip
hardware_ti_omap4-d8a9c1618b8277b8e847805c3f1e0afa9f0d6c1a.tar.gz
hardware_ti_omap4-d8a9c1618b8277b8e847805c3f1e0afa9f0d6c1a.tar.bz2
[H264-Enc-Proxy] Add android opaque color conversion support
Add support for android opaque color format as encoder input and use color conversion routines to format to NV12 color format which is passed on to remote OMX encoder component Change-Id: I45be6a6ea3577cbe9a13e7df87bb399b16e5db29 Signed-off-by: Abhishek Ranka <asranka@ti.com> Signed-off-by: Lakshman Gowda <lakshman79@ti.com>
Diffstat (limited to 'domx')
-rwxr-xr-xdomx/omx_proxy_common.h7
-rw-r--r--domx/omx_proxy_common/src/omx_proxy_common.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/domx/omx_proxy_common.h b/domx/omx_proxy_common.h
index 2db9615..84041c7 100755
--- a/domx/omx_proxy_common.h
+++ b/domx/omx_proxy_common.h
@@ -188,6 +188,7 @@ extern "C"
OMX_U32 nAllocatedBuffers;
/* PROXY specific data - PROXY PRIVATE DATA */
+ OMX_PTR pCompProxyPrv;
char *cCompName;
PROXY_EMPTYBUFFER_DONE proxyEmptyBufferDone;
@@ -247,6 +248,12 @@ extern "C"
OMX_PTR pMarkData);
OMX_ERRORTYPE PROXY_FillThisBuffer(OMX_HANDLETYPE hComponent,
OMX_BUFFERHEADERTYPE * pBufferHdr);
+ OMX_ERRORTYPE PROXY_AllocateBuffer(OMX_IN OMX_HANDLETYPE hComponent,
+ OMX_INOUT OMX_BUFFERHEADERTYPE ** ppBufferHdr,OMX_IN OMX_U32 nPortIndex,
+ OMX_IN OMX_PTR pAppPrivate, OMX_IN OMX_U32 nSizeBytes);
+ OMX_ERRORTYPE PROXY_FreeBuffer(OMX_IN OMX_HANDLETYPE hComponent,
+ OMX_IN OMX_U32 nPortIndex, OMX_IN OMX_BUFFERHEADERTYPE * pBufferHdr);
+ OMX_ERRORTYPE PROXY_ComponentDeInit(OMX_HANDLETYPE hComponent);
#ifdef __cplusplus
diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c
index e00a2d2..040e67e 100644
--- a/domx/omx_proxy_common/src/omx_proxy_common.c
+++ b/domx/omx_proxy_common/src/omx_proxy_common.c
@@ -631,7 +631,7 @@ OMX_ERRORTYPE PROXY_FillThisBuffer(OMX_HANDLETYPE hComponent,
*
*/
/* ===========================================================================*/
-static OMX_ERRORTYPE PROXY_AllocateBuffer(OMX_IN OMX_HANDLETYPE hComponent,
+OMX_ERRORTYPE PROXY_AllocateBuffer(OMX_IN OMX_HANDLETYPE hComponent,
OMX_INOUT OMX_BUFFERHEADERTYPE ** ppBufferHdr,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_PTR pAppPrivate, OMX_IN OMX_U32 nSizeBytes)
@@ -1153,7 +1153,7 @@ static OMX_ERRORTYPE PROXY_UseBuffer(OMX_IN OMX_HANDLETYPE hComponent,
*
*/
/* ===========================================================================*/
-static OMX_ERRORTYPE PROXY_FreeBuffer(OMX_IN OMX_HANDLETYPE hComponent,
+OMX_ERRORTYPE PROXY_FreeBuffer(OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex, OMX_IN OMX_BUFFERHEADERTYPE * pBufferHdr)
{
OMX_ERRORTYPE eError = OMX_ErrorNone, eCompReturn = OMX_ErrorNone;