diff options
author | Abdulla Anam <abdullahanam@codeaurora.org> | 2016-05-06 00:14:46 +0530 |
---|---|---|
committer | Abdulla Anam <abdullahanam@codeaurora.org> | 2016-05-12 15:11:36 +0530 |
commit | 45e85307f5c800b7684c33926833a004b39b253a (patch) | |
tree | 6b92ce3b329ef50a3c5490aefd67052a8ada16bd | |
parent | accaaf8fe5dd64d510f50e82a15ad233974846f0 (diff) | |
download | android_hardware_qcom_media-45e85307f5c800b7684c33926833a004b39b253a.tar.gz android_hardware_qcom_media-45e85307f5c800b7684c33926833a004b39b253a.tar.bz2 android_hardware_qcom_media-45e85307f5c800b7684c33926833a004b39b253a.zip |
mm-video-v4l2: Pass stride and scanlines with reconfig event
Pass stride and scanlines along with port reconfig event as
omx_vpp_component needs the information to communicate vpp
library.
Change-Id: I2300617c9ec1826aae7dfa87e636dd5d8971d254
-rw-r--r-- | mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp | 9 |
1 files changed, 8 insertions, 1 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 937ffdf8..9c0816c9 100644 --- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp +++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp @@ -1700,11 +1700,18 @@ void omx_vdec::process_event_cb(void *ctxt, unsigned char id) } if (pThis->m_cb.EventHandler) { - uint32_t frame_data[2]; + uint32_t frame_data[4]; frame_data[0] = (p2 == OMX_IndexParamPortDefinition) ? pThis->m_reconfig_height : pThis->rectangle.nHeight; frame_data[1] = (p2 == OMX_IndexParamPortDefinition) ? pThis->m_reconfig_width : pThis->rectangle.nWidth; + + frame_data[2] = (p2 == OMX_IndexParamPortDefinition) ? + frame_data[0] : pThis->drv_ctx.video_resolution.frame_height; + + frame_data[3] = (p2 == OMX_IndexParamPortDefinition) ? + frame_data[1] : pThis->drv_ctx.video_resolution.frame_width; + pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, OMX_EventPortSettingsChanged, p1, p2, (void*) frame_data ); } else { |