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

Commit 67f28c16 authored by Srinu Gorle's avatar Srinu Gorle
Browse files

msm: vidc: consider max of dpb-opb resolutions to kick-in DCVS



In case of down scalar enabled, opb resolution is considered
to calculate macro blocks per frame.
Calculating macro blocks per frame based on max of dpb-opb resolutions.

Change-Id: I5149f078349bce8341ebc5e410b5247f028d8452
Signed-off-by: default avatarSrinu Gorle <sgorle@codeaurora.org>
CRs-Fixed: 970253
parent 82fbed04
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -29,8 +29,10 @@ static inline int msm_dcvs_get_mbs_per_frame(struct msm_vidc_inst *inst)
	int height, width;

	if (!inst->in_reconfig) {
		height = inst->prop.height[CAPTURE_PORT];
		width = inst->prop.width[CAPTURE_PORT];
		height = max(inst->prop.height[CAPTURE_PORT],
				inst->prop.height[OUTPUT_PORT]);
		width = max(inst->prop.width[CAPTURE_PORT],
				inst->prop.width[OUTPUT_PORT]);
	} else {
		height = inst->reconfig_height;
		width = inst->reconfig_width;