]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00303200 [IPU Split] - Vertical line in downsaled image with ratio less 2
authorOliver Brown <oliver.brown@freescale.com>
Wed, 12 Mar 2014 16:21:02 +0000 (11:21 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:57 +0000 (10:06 +0200)
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 <oliver.brown@freescale.com>
drivers/mxc/ipu3/ipu_calc_stripes_sizes.c

index 27abb06be12bc9b3be2de0895d873b7393489e7c..c466ea991f8be62842c229e716bd4f92eff555a5 100644 (file)
@@ -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, "