]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: ti-vpe: Add helper to perform color conversion
authorArchit Taneja <archit@ti.com>
Thu, 12 Dec 2013 08:36:02 +0000 (05:36 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 08:57:08 +0000 (06:57 -0200)
commit0d999c168acbe3c63e717187bc5f02dae62a2230
tree4506dab07334e06593cd5f13cfaa279cef8cecea
parentc3dbf6e8a6209e0935de3a29f4780fb2ed95e0ba
[media] v4l: ti-vpe: Add helper to perform color conversion

The CSC block can be used for color space conversion between YUV and RGB
formats.

It is configurable via a programmable set of coefficients. Add functionality to
choose the appropriate CSC coefficients and program them in the CSC registers.
We take the source and destination colorspace formats as the arguments, and
choose the coefficient table accordingly.

YUV to RGB coefficients are provided for standard and high definition
colorspaces. The coefficients can also be limited or full range. For now, only
full range coefficients are chosen. We would need some sort of control ioctl for
the user to specify the range needed. Not sure if there is a generic control
ioctl for this already?

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/ti-vpe/csc.c
drivers/media/platform/ti-vpe/csc.h