summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSurajit Podder <spodder@codeaurora.org>2015-05-15 14:32:26 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2016-01-04 22:15:15 -0800
commit41a5cfdaa12588e459df14050e8f06c803812a76 (patch)
tree43fab65993be7f5b1589510d2a1486de2f179ba7
parentdc1b1d4eb44a31aaa03bda5536aa27cffdd372d5 (diff)
downloadandroid_hardware_qcom_media-41a5cfdaa12588e459df14050e8f06c803812a76.tar.gz
android_hardware_qcom_media-41a5cfdaa12588e459df14050e8f06c803812a76.tar.bz2
android_hardware_qcom_media-41a5cfdaa12588e459df14050e8f06c803812a76.zip
mm-video: Adjust stride value for planar format
C2D output for YUV420P does not have alignment for stride. Remove alignment for the same. Change-Id: Ifeb06c5b47d880fae605b7fa08edc21229edbdd7
-rw-r--r--mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp b/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
index 988256e6..ffcbd515 100644
--- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
+++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
@@ -9057,11 +9057,14 @@ OMX_ERRORTYPE omx_vdec::update_portdef(OMX_PARAM_PORTDEFINITIONTYPE *portDefn)
portDefn->format.video.nSliceHeight = drv_ctx.video_resolution.scan_lines;
}
- if ((portDefn->format.video.eColorFormat == OMX_COLOR_FormatYUV420Planar) ||
- (portDefn->format.video.eColorFormat == OMX_COLOR_FormatYUV420SemiPlanar)) {
+ if (portDefn->format.video.eColorFormat == OMX_COLOR_FormatYUV420Planar) {
+ portDefn->format.video.nStride = drv_ctx.video_resolution.frame_width;
+ portDefn->format.video.nSliceHeight = drv_ctx.video_resolution.frame_height;
+ } else if (portDefn->format.video.eColorFormat == OMX_COLOR_FormatYUV420SemiPlanar) {
portDefn->format.video.nStride = ALIGN(drv_ctx.video_resolution.frame_width, 16);
portDefn->format.video.nSliceHeight = drv_ctx.video_resolution.frame_height;
}
+
DEBUG_PRINT_HIGH("update_portdef(%u): Width = %u Height = %u Stride = %d "
"SliceHeight = %u eColorFormat = %d nBufSize %u nBufCnt %u",
(unsigned int)portDefn->nPortIndex,