diff options
author | Sunita Nadampalli <sunitan@ti.com> | 2016-07-13 14:05:35 -0500 |
---|---|---|
committer | Sunita Nadampalli <sunitan@ti.com> | 2016-07-22 13:25:26 -0500 |
commit | d49c7b304bd9cdd7e19305cdfe85fbd59f07b25b (patch) | |
tree | 16f19a793ce887a188c6697daae5ce6612437a9b | |
parent | 5f6e7dd4834ebdd5fcc7149cd727eae7f0056e75 (diff) | |
download | omap4xxx-omapzoom-d-kitkat-mr2.1-release.tar.gz |
OMX: VideoDecoder: Relax nStride setting for 1D buffersd-kitkat-mr2.1-release
Since the nStride parameter is updated during the
port reconfiguration, the early-on checks are relaxed.
Change-Id: I7afe39e9b9daefc02db170770d3ac9cd2650102a
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
-rw-r--r-- | omx/videodecode/omx_videodec_common/src/omx_video_decoder.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/omx/videodecode/omx_videodec_common/src/omx_video_decoder.c b/omx/videodecode/omx_videodec_common/src/omx_video_decoder.c index 3f6bd800..ee5c7223 100644 --- a/omx/videodecode/omx_videodec_common/src/omx_video_decoder.c +++ b/omx/videodecode/omx_videodec_common/src/omx_video_decoder.c @@ -241,9 +241,9 @@ OMX_ERRORTYPE OMXVidDec_SetParameter(OMX_HANDLETYPE hComponent, == pPortDefs->format.video.nFrameWidth), OMX_ErrorUnsupportedSetting); - OMX_CHECK(pPortDefs->format.video.nStride >= - pOutputPortDef->format.video.nFrameWidth, - OMX_ErrorUnsupportedSetting); + //OMX_CHECK(pPortDefs->format.video.nStride >= + // pOutputPortDef->format.video.nFrameWidth, + // OMX_ErrorUnsupportedSetting); if( pPortDefs->format.video.nStride > pVidDecComp->t2DBufferAllocParams[OMX_VIDDEC_OUTPUT_PORT].nWidth ) { //Supported values of stride are only multiples of 128 @@ -700,12 +700,14 @@ OMX_ERRORTYPE OMXVidDec_CommandNotify(OMX_HANDLETYPE hComponent, if( pVidDecComp->sBase.tCurState == OMX_StateLoaded && pVidDecComp->sBase.tNewState == OMX_StateIdle ) { pOutputPortDef = &(pVidDecComp->sBase.pPorts[OMX_VIDDEC_OUTPUT_PORT]->sPortDef); +#if 0 if( pOutputPortDef->format.video.nStride < pVidDecComp->t2DBufferAllocParams[OMX_VIDDEC_OUTPUT_PORT].nWidth ) { OSAL_ErrorTrace("Unsupported Stride set on o/p port defs"); eError = OMX_ErrorUnsupportedSetting; goto EXIT; } +#endif // Check the buffer cnt is greater than min required // buffer count if( pOutputPortDef->nBufferCountActual < pOutputPortDef->nBufferCountMin ) { @@ -807,12 +809,14 @@ OMX_ERRORTYPE OMXVidDec_CommandNotify(OMX_HANDLETYPE hComponent, eError = OMX_ErrorUnsupportedSetting; goto EXIT; } +#if 0 if( pOutputPortDef->format.video.nStride < pVidDecComp->t2DBufferAllocParams[OMX_VIDDEC_OUTPUT_PORT].nWidth ) { OSAL_ErrorTrace("Unsupported Stride set on o/p port defs"); eError = OMX_ErrorUnsupportedSetting; goto EXIT; } +#endif } if( pVidDecComp->sBase.tCurState != OMX_StateLoaded ) { if( pVidDecComp->nCodecRecreationRequired == 1 |