summaryrefslogtreecommitdiffstats
path: root/domx/omx_proxy_common
diff options
context:
space:
mode:
authorJohn Wei <a0272715@ti.com>2011-08-18 22:45:05 -0700
committerIliyan Malchev <malchev@google.com>2011-08-29 12:02:38 -0700
commit31417332dfda5e149443e7cd27cfe94f4cabecde (patch)
tree40713836bec3562573aa7125336b323f80d973d5 /domx/omx_proxy_common
parent84380cdcd2640d1a39e21f8a25a5dc8db1875882 (diff)
downloadhardware_ti_omap4-31417332dfda5e149443e7cd27cfe94f4cabecde.zip
hardware_ti_omap4-31417332dfda5e149443e7cd27cfe94f4cabecde.tar.gz
hardware_ti_omap4-31417332dfda5e149443e7cd27cfe94f4cabecde.tar.bz2
domx: request and allocate smaller-sized buffer in metadata mode recording
request and allocate smaller-sized buffer in metadata mode recording. the buffer is used to hold video_metadata_t structure (12 bytes). It is a big saving from allocating an NV12 buffer size. Corresponding Ducati side change on UseBuffer() is required. Change-Id: I7e4730c0982e826def844e3cf5050d83063fa2a7 Signed-off-by: John Wei <a0272715@ti.com>
Diffstat (limited to 'domx/omx_proxy_common')
-rw-r--r--domx/omx_proxy_common/src/omx_proxy_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c
index a5aac98..e2e36f2 100644
--- a/domx/omx_proxy_common/src/omx_proxy_common.c
+++ b/domx/omx_proxy_common/src/omx_proxy_common.c
@@ -677,7 +677,8 @@ static OMX_ERRORTYPE PROXY_AllocateBuffer(OMX_IN OMX_HANDLETYPE hComponent,
PROXY_assert(eError == OMX_ErrorNone, eError,
"Failed to get stride of component");
- if (nStride == LINUX_PAGE_SIZE) //Allocate 2D buffer
+ if (nStride == LINUX_PAGE_SIZE && \
+ pCompPrv->proxyPortBuffers[nPortIndex].proxyBufferType != EncoderMetadataPointers) //Allocate 2D buffer
{
tParamRect.nSize = sizeof(OMX_CONFIG_RECTTYPE);
tParamRect.nVersion.s.nVersionMajor = 1;