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

Commit e53fcca8 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vdec: Do not consider 10bit size for specific video hardware"

parents 6e6740b2 10cba222
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -909,8 +909,9 @@ u32 msm_vidc_calculate_dec_input_frame_size(struct msm_vidc_inst *inst)
	frame_size = base_res_mbs * MB_SIZE_IN_PIXEL * 3 / 2 / div_factor;

	 /* multiply by 10/8 (1.25) to get size for 10 bit case */
	if ((f->fmt.pix_mp.pixelformat == V4L2_PIX_FMT_VP9) ||
		(f->fmt.pix_mp.pixelformat == V4L2_PIX_FMT_HEVC))
	if ((f->fmt.pix_mp.pixelformat == V4L2_PIX_FMT_VP9 ||
		f->fmt.pix_mp.pixelformat == V4L2_PIX_FMT_HEVC) &&
		inst->core->platform_data->vpu_ver != VPU_VERSION_AR50_LITE)
		frame_size = frame_size + (frame_size >> 2);

	if (inst->buffer_size_limit &&