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

Commit 5a6c8f99 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 f5bd05d9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -938,6 +938,8 @@ u32 msm_vidc_calculate_dec_input_frame_size(struct msm_vidc_inst *inst)
	if (base_res_mbs > inst->capability.cap[CAP_MBS_PER_FRAME].max) {
		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;
	}

	frame_size = base_res_mbs * MB_SIZE_IN_PIXEL * 3 / 2 / div_factor;