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

Commit 955a07f4 authored by Malathi Gottam's avatar Malathi Gottam
Browse files

msm: vidc: allocate max input buffer size for specific video hardware



For certain video hardware which doesn't support higher resolutions
like 4k or above, allocate maximum input buffer size.

Change-Id: I30a908573cf4d0dce8bcbaeb813913130f051884
Signed-off-by: default avatarMalathi Gottam <mgottam@codeaurora.org>
parent 70d6e20d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -935,7 +935,7 @@ u32 msm_vidc_calculate_dec_input_frame_size(struct msm_vidc_inst *inst)
	/* For targets that doesn't support 4k, consider max mb's for that
	 * target and allocate max input buffer size for the same
	 */
	if (base_res_mbs > inst->capability.cap[CAP_MBS_PER_FRAME].max) {
	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)