msm: vidc: Modify allocated buffer size for lower resolution

For targets that doesn't support 4k, current buffer size
of 3MB is modified for FWVGA and below resolution to 6 MB.

Change-Id: Id9152bf4b88a1b86d790bc061cd7265896c62a98
Signed-off-by: Malathi Gottam <mgottam@codeaurora.org>
This commit is contained in:
Malathi Gottam 2020-09-28 22:19:18 +05:30
parent 1380c1373c
commit a69feaa568

View File

@ -913,6 +913,8 @@ u32 msm_vidc_calculate_dec_input_frame_size(struct msm_vidc_inst *inst, u32 buff
if (inst->core->platform_data->vpu_ver == VPU_VERSION_AR50_LITE) {
base_res_mbs = inst->capability.cap[CAP_MBS_PER_FRAME].max;
div_factor = 1;
if (num_mbs < NUM_MBS_720P)
base_res_mbs = base_res_mbs * 2;
}
/* For HEIF image, use the actual resolution to calc buffer size */
if (is_heif_decoder(inst)) {