De-interlace Capture Device

Document created by Philip_FSL Employee on Oct 16, 2012Last modified by Jodi Paul on Mar 14, 2013
Version 3Show Document
  • View in full screen mode

In some cases it is desired to directly have progressive content available from a TV-IN interface through the V4L2 capture device. In the BSP, HW accelerated de-interlacing is only supported in the V4L2 output stream. Below is a patch created against a rather old BSP version that adds support for de-interlaced V4L2 capture. The patch might need to be adapted to newer BSPs, However, the logic and functionality is there and should shorten the development time.


This patch adds another input device to the V4L2 framework that can be selected to perform the deinterlacing on the way to memory. The selection is done by passing the index “2” as an argument to the VIDIOC_S_INPUT  V4L2 ioctl. Attached is also a modified the tvin unit test to give an example of how to use the new driver. An example sequence for running the test is as follows:


modprobe mxc_v4l2_capture

./mxc_v4l2_tvin_vdi.out -ow 720 -oh 480 -ol 10 -ot 20 -f YU12


Some key things to note:

This driver does not support resize or color space conversion on the way to memory.

The requested format and size should match what can be provided directly by the sensor.

The driver was tested on a Sabre AI Rev A board running Linux 12.02.


This code is not an official delivery and as such no guarantee of support for this code is provided by Freescale.