[media] vivid-tpg-colors: add AdobeRGB and BT.2020 support
commit3930e906f304854e90890fc96786b74c9979180b
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 17 Nov 2014 13:05:39 +0000 (17 10:05 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 2 Dec 2014 13:18:07 +0000 (2 11:18 -0200)
tree87ab54e8b093dea5af330a4c0a2a7270ddf8d26f
parent1afed88381bb332040f2cb80ab1fa1d70506d593
[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