Commit e220161d authored by Praveen Chavan's avatar Praveen Chavan Committed by Lajos Molnar

msm_vidc: Update frame-height along with buffer-size after reconfig

For the streams with height lesser than minimum required height(96),
decoder initiates a reconfig to indicate client about new size.
For clients that calculate output buffer-size based on frame
dimensions, resulting buffer sizes could be small and eventually
rejected

b/ 18528130

Change-Id: I17cf166a40f77fcea74e7d0c19af801e6e6244d5
Signed-off-by: default avatarPraveen Chavan <pchavan@codeaurora.org>
Signed-off-by: default avatarc_sridur <sridur@codeaurora.org>
parent cedb733d
......@@ -2090,7 +2090,7 @@ u32 ddl_set_default_decoder_buffer_req(struct ddl_decoder_data *decoder,
input_buf_req->sz = (1024 * 1024 * 2);
input_buf_req->align = DDL_LINEAR_BUFFER_ALIGN_BYTES;
decoder->min_input_buf_req = *input_buf_req;
if (frame_height_actual) {
if (frame_height_actual && frame_size->height > MDP_MIN_TILE_HEIGHT) {
frame_size->height = frame_height_actual;
ddl_calculate_stride(frame_size, !decoder->progressive_only);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment