]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00290659 IPUv3: Fix a flashing vert. line when downsizing 1080i to 300x400.
authorOliver Brown <oliver.brown@freescale.com>
Wed, 19 Feb 2014 23:32:48 +0000 (17:32 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:56 +0000 (10:06 +0200)
When split mode deinterlacing is the ipu_calc_stripes_sizes() was failing due
to an unnecessary test. Added logic to use the maximal_stripe_width only if
the flag parameter has the bit 0 clear for not equal stripe sizes.

Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
drivers/mxc/ipu3/ipu_calc_stripes_sizes.c

index ea5470707f356d4bc94ec5706c8614b14701d499..27abb06be12bc9b3be2de0895d873b7393489e7c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2009-2013 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2009-2014 Freescale Semiconductor, Inc. All Rights Reserved.
  */
 
 /*
@@ -295,7 +295,8 @@ int ipu_calc_stripes_sizes(const unsigned int input_frame_width,
            || ((((u64)output_frame_width) << 32) <
                (2 * ((((u64)output_f) << 32) + (input_f * rr_opt))))
            || (maximal_stripe_width < output_f)
-           || (output_frame_width <= maximal_stripe_width)
+           || ((output_frame_width <= maximal_stripe_width)
+               && (equal_stripes == 0))
            || ((2 * maximal_stripe_width) < output_frame_width))
                return 1;