]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00289553 IPU dev:correct downsize overflow check in rot case
authorLiu Ying <Ying.Liu@freescale.com>
Mon, 25 Nov 2013 10:34:40 +0000 (18:34 +0800)
committerLiu Ying <Ying.Liu@freescale.com>
Mon, 25 Nov 2013 10:43:43 +0000 (18:43 +0800)
commit1321a57a653a5cd5f5f0e7d517e0c179f9ea4986
treed90f26010499b362b87e41abf5be8c09734a0d73
parentec21cbefd6c2fe18475badf64b25c1dfbf402836
ENGR00289553 IPU dev:correct downsize overflow check in rot case

In rotation cases, the width and height of IPUv3 IC scaling block's
output should align with the width and height of IPUv3 IC rotation
block. And, users only tell the IPUv3 device driver about the parameters
of scaling block's input and rotation block's output. So, we need to
swap the width and height of rotation block in cache before we do
downsize(a functionality of the scaling block) overflow check.

This patch fixes the issue which can be reproduced by this unit test case:
/unit_tests/mxc_v4l2_output.out -iw 128 -ih 128 -ow 176 -oh 10 -r 90

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/mxc/ipu3/ipu_device.c