Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a69feaa5 authored by Malathi Gottam's avatar Malathi Gottam
Browse files

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: default avatarMalathi Gottam <mgottam@codeaurora.org>
parent 1380c137
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)) {