[media] vivid: use Bradford method when converting Rec. 709 to NTSC 1953
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 13 Sep 2015 16:41:28 +0000 (13:41 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 30 Sep 2015 22:41:06 +0000 (19:41 -0300)
commit2e94c19c0750d5685c95db5561f1f34e5fcab0c7
tree3b7d9edba56813a3ff3d3e68c8e8697f9bd186fe
parentff1447267b83d648078c1002eb566e7f6c0f82dd
[media] vivid: use Bradford method when converting Rec. 709 to NTSC 1953

The V4L2_COLORSPACE_470_SYSTEM_M (aka NTSC 1953) colorspace has a different
whitepoint (C) compared to Rec. 709 (D65). The Bradford method is the
recommended method to compensate for that when converting a Rec. 709 color
to an NTSC 1953 color.

See http://www.brucelindbloom.com/index.html?Eqn_ChromAdapt.html for more
details on the Bradford method.

This patch updates the Rec. 709 to NTSC 1953 matrix so that it includes the
chromatic adaptation as calculated by the Bradford method, and it recalculates
the tpg_csc_colors table accordingly.

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