]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00161948 mxc v4l2 output: fix case of input crop with xoffset
authorJason Chen <b02280@freescale.com>
Mon, 14 Nov 2011 02:34:49 +0000 (10:34 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:01 +0000 (14:10 +0200)
commitd08cf681519ab26ad44c1bbbe6f30950ac3f07f6
tree08d7825f1a634966118034eeff14756cb526086b
parent45825ddfe03e3f47418a0ffa5721169f8310203d
ENGR00161948 mxc v4l2 output: fix case of input crop with xoffset

run test like:
/unit_tests//mxc_v4l2_output.out -iw 1280 -ih 720 -cr 1024 700 40 0 -ow 1024
-oh 700 /unit_tests/720p.yuv
Under IPU IC bypass mode, the output color is not correct.
And sometimes come out tearing issue.

Fix them by modify fb driver adding xpanstep support and set vb->state to DONE
after it finish show.

When previous videobuf finish show and next videobuf ready to show, set
VIDEOBUF_DONE state to avoid tearing issue, which make sure showing buffer will
not be dequeue to write new data. It also bring side-effect that the last buffer
can not be dequeue correctly, app need take care about it.

Signed-off-by: Jason Chen <b02280@freescale.com>
drivers/media/video/mxc/output/mxc_vout.c
drivers/video/mxc/mxc_ipuv3_fb.c