diff options
author | Oliver Brown <oliver.brown@freescale.com> | 2014-03-12 11:21:02 -0500 |
---|---|---|
committer | Peng Fushi <fushi.peng@freescale.com> | 2014-08-28 16:56:08 +0800 |
commit | 83fa00ac17c8b978e242d3c8b74c01222b1fffff (patch) | |
tree | 8b1b8db83797851940f6dba4fc1afc6ea38e4cf8 | |
parent | 07c24fa80aeb59d545e37057aa51fc076f6943ab (diff) |
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 <oliver.brown@freescale.com>
-rw-r--r-- | drivers/mxc/ipu3/ipu_calc_stripes_sizes.c | 7 |
1 files 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 8dfd9979222f..796c19a90f15 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, " |