summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMahesh Lanka <mlanka@codeaurora.org>2017-12-14 11:05:56 +0800
committerSanthosh Behara <santhoshbehara@codeaurora.org>2018-04-05 13:11:30 +0530
commit0b8951b27bf4f29dcf9696d1f7ba00ca6dd37174 (patch)
tree2bd3c45ec66b932a3f9dd187243fe5a300aae95b
parent97f9efccd079f4e02eac849c75f703ce0e1df38f (diff)
downloadandroid_hardware_qcom_sdm845_media-0b8951b27bf4f29dcf9696d1f7ba00ca6dd37174.tar.gz
android_hardware_qcom_sdm845_media-0b8951b27bf4f29dcf9696d1f7ba00ca6dd37174.tar.bz2
android_hardware_qcom_sdm845_media-0b8951b27bf4f29dcf9696d1f7ba00ca6dd37174.zip
mm-video-v4l2: update new resolution to C2D when port reconfig
After unified multiple port reconfigs, there might be no explicit port reconfig event for crop info update, and didn't set the new resolution to C2D before conversion started. Add logic to update new resolution to C2D when port reconfig. CRs-Fixed: 2154864 Change-Id: I256329a8619f8a1496a0306fb98ccd20bc8db6ba
-rw-r--r--mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp5
1 files changed, 5 insertions, 0 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 a7544bc4..8e92cfe0 100644
--- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp
+++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp
@@ -8526,6 +8526,11 @@ int omx_vdec::async_message_process (void *context, void* message)
OMX_IndexConfigCommonOutputCrop,
OMX_COMPONENT_GENERATE_PORT_RECONFIG);
reconfig_event_sent = true;
+ } else {
+ /* Update C2D with new resolution */
+ if (!omx->client_buffers.update_buffer_req()) {
+ DEBUG_PRINT_ERROR("Setting C2D buffer requirements failed");
+ }
}
}