summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunita Nadampalli <sunitan@ti.com>2016-06-23 11:54:07 -0500
committerSunita Nadampalli <sunitan@ti.com>2016-06-23 13:41:07 -0500
commit8990fa80a4837bcb31a248ea1dd2ab12c80b2d09 (patch)
treeda8a7a79073d525b78c5884fc71cf53ffdc29383
parentaa25273ada1e0faa901a90fa111a4401a1205f82 (diff)
downloaddra7xx-8990fa80a4837bcb31a248ea1dd2ab12c80b2d09.tar.gz
OMX:VideoDecoder: Correct MediaImage parameters
This patch is to adjust the MediaImage parameters as per the corrections done for nOffset and nFilledLength for OMX outputbuffer header in the below patch: http://review.omapzoom.org/#/c/37623/ Change-Id: I0e8a755dc07b901b41dfc20b42e8160c37963166 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
-rw-r--r--omx/videodecode/omx_videodec_common/src/omx_video_decoder.c7
1 files changed, 3 insertions, 4 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 287ac36..26bd038 100644
--- a/omx/videodecode/omx_videodec_common/src/omx_video_decoder.c
+++ b/omx/videodecode/omx_videodec_common/src/omx_video_decoder.c
@@ -496,8 +496,8 @@ OMX_ERRORTYPE OMXVidDec_GetParameter(OMX_HANDLETYPE hComponent,
struct MediaImage *image = &(Colorparams->sMediaImage);
memset(image, 0, sizeof(MediaImage));
- image->mWidth = pVidDecComp->tCropDimension.nWidth;
- image->mHeight = pVidDecComp->tCropDimension.nHeight;
+ image->mWidth = pOutputPortDef->format.video.nFrameWidth;
+ image->mHeight = pOutputPortDef->format.video.nFrameHeight;
image->mType = MEDIA_IMAGE_TYPE_YUV;
image->mNumPlanes = 3;
@@ -514,8 +514,7 @@ OMX_ERRORTYPE OMXVidDec_GetParameter(OMX_HANDLETYPE hComponent,
UV offset = (Stride*Height + (Top/2)*Stride + Left )- (Top*Stride + Left)
on simplification
UV offset = Stride*Height - (Top/2)*Stride */
- image->mPlane[U].mOffset = pOutputPortDef->format.video.nStride * pOutputPortDef->format.video.nFrameHeight -
- (pVidDecComp->tCropDimension.nTop*pOutputPortDef->format.video.nStride)/2;
+ image->mPlane[U].mOffset = pOutputPortDef->format.video.nStride * pOutputPortDef->format.video.nFrameHeight;
image->mPlane[U].mColInc = 2;
image->mPlane[U].mRowInc = pOutputPortDef->format.video.nStride;
image->mPlane[U].mHorizSubsampling = 2;