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

Commit 86155e46 authored by Huaibin Yang's avatar Huaibin Yang Committed by Stephen Boyd
Browse files

msm: mdss: half the y offset value for s/w deinterlace



S/W deinterlaces interleaved videos by changing the original height to
the half. Y offset needs to be half as well and this half y should be
checked again to make sure it is not an odd value, which is required
by mdp h/w.

CRs-fixed: 524678
Change-Id: I429dd6e66a8c034815ab3751c31e7e60c25a8051
Signed-off-by: default avatarHuaibin Yang <huaibiny@codeaurora.org>
parent 710d9fae
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -287,6 +287,9 @@ static int mdss_mdp_overlay_rotator_setup(struct msm_fb_data_type *mfd,
	if (req->flags & MDP_DEINTERLACE) {
		rot->flags |= MDP_DEINTERLACE;
		rot->src_rect.h /= 2;
		rot->src_rect.y /= 2;
		if (rot->src_rect.y % 2)
			rot->src_rect.y++;
	}

	ret = mdss_mdp_rotator_setup(rot);
@@ -583,6 +586,9 @@ static int mdss_mdp_overlay_pipe_setup(struct msm_fb_data_type *mfd,
			pipe->img_width /= 2;
		} else {
			pipe->src.h /= 2;
			pipe->src.y /= 2;
			if (pipe->src.y % 2)
				pipe->src.y++;
		}
	}