summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Brown <oliver.brown@freescale.com>2014-02-19 17:32:48 -0600
committerPeng Fushi <fushi.peng@freescale.com>2014-08-28 16:55:57 +0800
commit07c24fa80aeb59d545e37057aa51fc076f6943ab (patch)
treedb3ce0c7dc0142761e1bd911cb2005bef516332e
parent1c7a380fa4b451fd99552c7ffe6754a81c72cee4 (diff)
ENGR00290659 IPUv3: Fix a flashing vert. line when downsizing 1080i to 300x400.
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>
-rw-r--r--drivers/mxc/ipu3/ipu_calc_stripes_sizes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c b/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c
index 1c742a51b5d9..8dfd9979222f 100644
--- a/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c
+++ b/drivers/mxc/ipu3/ipu_calc_stripes_sizes.c
@@ -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;