diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-11-23 18:44:57 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-11-23 18:44:57 -0800 |
commit | 754fe7f1f2b6e80b7631c12d1126211c4a20910e (patch) | |
tree | e75ac71850a1cef14d99f40d7c8ec10c26739904 /mm-video-v4l2/vidc/vdec/src | |
parent | 1678ca3c5283d72ed0ddaa7d7be1dc84ffdc96a0 (diff) | |
parent | 971e05df6ab6e7a385697723064fccd4d9fe0b4c (diff) | |
download | media-754fe7f1f2b6e80b7631c12d1126211c4a20910e.tar.gz |
Merge "mm-video-v4l2: Fix issue with incorrect crop update"
Diffstat (limited to 'mm-video-v4l2/vidc/vdec/src')
-rwxr-xr-x | mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp index 76108dc1..2aa3fc2a 100755 --- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp +++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp @@ -9040,13 +9040,19 @@ OMX_ERRORTYPE omx_vdec::update_portdef(OMX_PARAM_PORTDEFINITIONTYPE *portDefn) (int)portDefn->nPortIndex); eRet = OMX_ErrorBadPortIndex; } + if (in_reconfig) { + m_extradata_info.output_crop_rect.nLeft = 0; + m_extradata_info.output_crop_rect.nTop = 0; + m_extradata_info.output_crop_rect.nWidth = fmt.fmt.pix_mp.width; + m_extradata_info.output_crop_rect.nHeight = fmt.fmt.pix_mp.height; + } update_resolution(fmt.fmt.pix_mp.width, fmt.fmt.pix_mp.height, fmt.fmt.pix_mp.plane_fmt[0].bytesperline, fmt.fmt.pix_mp.plane_fmt[0].reserved[0]); - portDefn->format.video.nFrameHeight = drv_ctx.video_resolution.frame_height; - portDefn->format.video.nFrameWidth = drv_ctx.video_resolution.frame_width; - portDefn->format.video.nStride = drv_ctx.video_resolution.stride; - portDefn->format.video.nSliceHeight = drv_ctx.video_resolution.scan_lines; + portDefn->format.video.nFrameHeight = drv_ctx.video_resolution.frame_height; + portDefn->format.video.nFrameWidth = drv_ctx.video_resolution.frame_width; + portDefn->format.video.nStride = drv_ctx.video_resolution.stride; + 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)) { |