From beb7667ab18ee5231f5d0da1c30b02addafae57e Mon Sep 17 00:00:00 2001 From: Thomas Reufer Date: Sun, 8 Feb 2015 20:43:07 +0100 Subject: increased video and audio buffers to 64x 64k (4M) and 128x 16k (2M) --- omx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/omx.c b/omx.c index 562e094..5bc4619 100644 --- a/omx.c +++ b/omx.c @@ -911,9 +911,9 @@ int cOmx::SetVideoCodec(cVideoCodec::eCodec codec) OMX_IndexParamPortDefinition, ¶m) != OMX_ErrorNone) ELOG("failed to get video decoder port parameters!"); - // default: 20x 81920 bytes + // default: 20x 81920 bytes, now 64x 64k (4M) param.nBufferSize = KILOBYTE(64); - param.nBufferCountActual = 32; + param.nBufferCountActual = 64; m_freeVideoBuffers = true; if (OMX_SetParameter(ILC_GET_HANDLE(m_comp[eVideoDecoder]), @@ -1072,9 +1072,9 @@ int cOmx::SetupAudioRender(cAudioCodec::eCodec outputFormat, int channels, OMX_IndexParamPortDefinition, ¶m) != OMX_ErrorNone) ELOG("failed to get audio render port parameters!"); - // default: 16x 4096 bytes + // default: 16x 4096 bytes, now 128x 16k (2M) param.nBufferSize = KILOBYTE(16); - param.nBufferCountActual = 64; + param.nBufferCountActual = 128; m_freeAudioBuffers = true; if (OMX_SetParameter(ILC_GET_HANDLE(m_comp[eAudioRender]), -- cgit v1.2.3