From 50d5d4bf13603a49c44ee110758672f5a9f19db0 Mon Sep 17 00:00:00 2001 From: Oliver Brown Date: Wed, 12 Mar 2014 11:21:02 -0500 Subject: [PATCH] ENGR00303200 [IPU Split] - Vertical line in downsaled image with ratio less 2 The optimal resize ratio should be used if the downscaler is not needed. This will fix a vertical line in the center for some scaling ratios. Signed-off-by: Oliver Brown --- drivers/mxc/ipu3/ipu_calc_stripes_sizes.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c b/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c index 27abb06be12b..c466ea991f8b 100644 --- a/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c +++ b/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c @@ -388,8 +388,11 @@ int ipu_calc_stripes_sizes(const unsigned int input_frame_width, &resize_coeff, &downsize_coeff) < 0) return -EINVAL; - left->irr = right->irr = - (downsize_coeff << 14) | resize_coeff; + + if (downsize_coeff > 0) { + left->irr = right->irr = + (downsize_coeff << 14) | resize_coeff; + } } pr_debug("inw %d, onw %d, ilw %d, ilc %d, olw %d," " irw %d, irc %d, orw %d, orc %d, " -- 2.39.2