From 56eedc3af100b78100e3f16e44763abee305cc2c Mon Sep 17 00:00:00 2001 From: Venkatarama Avadhani Date: Mon, 18 Dec 2017 15:57:18 +0530 Subject: Correcting Buffer Allocation for Shared Display In case of shared display mode, the picture buffer allocated has to be larger to accomodate the incorrect half pel reference to the last row in the picture. Adding memory for the same. Bug: 70350015 Bug: 70349694 Bug: 70349612 Bug: 70349754 Bug: 70349868 Bug: 70526352 Bug: 70350086 Test: manual Change-Id: I41905d101093ae20ab14193c21669b8c4a24f30c (cherry picked from commit 5c1ed47b1fc1a0f763c251d62db14f3d74cb3141) --- decoder/impeg2d_api_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/decoder/impeg2d_api_main.c b/decoder/impeg2d_api_main.c index b14762f..7fd3e4a 100644 --- a/decoder/impeg2d_api_main.c +++ b/decoder/impeg2d_api_main.c @@ -775,7 +775,8 @@ IV_API_CALL_STATUS_T impeg2d_api_get_buf_info(iv_obj_t *ps_dechdl, { u4_stride = ps_dec_state->u4_frm_buf_stride; } - u4_height = ((ps_dec_state->u2_frame_height + 15) >> 4) << 4; + u4_stride = ALIGN16(u4_stride); + u4_height = ALIGN32(ps_dec_state->u2_frame_height) + 9; if(ps_dec_state->i4_chromaFormat == IV_YUV_420P) { -- cgit v1.2.3