]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00269619 mxc vout:improve vb handling for 3 field deinterlacing
authorLiu Ying <Ying.Liu@freescale.com>
Thu, 11 Jul 2013 08:21:48 +0000 (16:21 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:14:12 +0000 (14:14 +0200)
commit091d116f43e1905fad5c80e1aa4196ea792e1bad
tree26ff2d7ed223f64ef70c9c82cc437bb4016edc8b
parent9b7d735c89122cc46a37a8e941f7b725b41ec485
ENGR00269619 mxc vout:improve vb handling for 3 field deinterlacing

We need 2 video buffers to get a deinterlaced frame in VDI low motion
mode or medium motion mode. When there is no enough video buffer in
the active list, no one triggers the video buffer timer, then users
may be blocked at dqueue buffer ioctrl if they are in blocking mode.
In order to fix this issue, we may peek the first available video
buffer in the queue list so that the buffer may be taken as a reference
video buffer to do deinterlacing. If there is no video buffer in the
queue list, we should make users be able to trigger the timer again
when they queue buffers to the driver.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 52d0e3f01afbf49d8d16225dede18cc71daa0570)
drivers/media/video/mxc/output/mxc_vout.c