]> git.baikalelectronics.ru Git - kernel.git/commit
[media] vivid-tpg-colors: add AdobeRGB and BT.2020 support
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 17 Nov 2014 13:05:39 +0000 (10:05 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 2 Dec 2014 13:18:07 +0000 (11:18 -0200)
commitad341cf841518eedd40915cfe84165a1c5eb1d43
tree87ab54e8b093dea5af330a4c0a2a7270ddf8d26f
parentd2d2c513f6fbf03916247276fd2e50dfc0f4c88d
[media] vivid-tpg-colors: add AdobeRGB and BT.2020 support

This extends the precalculated tpg_csc_colors matrix with AdobeRGB and BT.2020
colorspace support.

It also adds two precalculated tables that convert between linear RGB and non-linear
Rec.709 R'G'B' values, i.e. the Rec. 709 transfer function. This is needed to
efficiently handle the BT.2020 Constant Luminance Yc'CbcCrc encoding and decoding.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-tpg-colors.c
drivers/media/platform/vivid/vivid-tpg-colors.h