summaryrefslogtreecommitdiff
path: root/src/colour_matrix.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-02-17 19:57:28 +0000
committerCarl Hetherington <cth@carlh.net>2015-02-17 19:57:28 +0000
commit4f68d50abb5a83628482fd166e40f3b4b281166b (patch)
tree73d4bcd078bfa28342b9ccfb638a431257255bf6 /src/colour_matrix.cc
parent1e7e40ffb6e3632b65adb8372dc073106e3d4023 (diff)
Rec 709 -> XYZ and sRGB -> XYZ matrices are, it seems, the same;
I'm getting this from fnordware DCIconverter. https://github.com/fnordware/DCIconverter/blob/master/src/DCIconverter.cpp
Diffstat (limited to 'src/colour_matrix.cc')
-rw-r--r--src/colour_matrix.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/colour_matrix.cc b/src/colour_matrix.cc
index 1a997326..32683e8e 100644
--- a/src/colour_matrix.cc
+++ b/src/colour_matrix.cc
@@ -29,14 +29,8 @@ double const dcp::colour_matrix::xyz_to_rgb[3][3] = {
{ 0.0556300804018974, -0.203976958990097, 1.05697154998779 }
};
-double const dcp::colour_matrix::srgb_to_xyz[3][3] = {
+double const dcp::colour_matrix::rgb_to_xyz[3][3] = {
{0.4124564, 0.3575761, 0.1804375},
{0.2126729, 0.7151522, 0.0721750},
{0.0193339, 0.1191920, 0.9503041}
};
-
-double const dcp::colour_matrix::rec709_to_xyz[3][3] = {
- { 0.412390799265959, 0.357584339383878, 0.180480788401834 },
- { 0.21263900587151, 0.715168678767756, 0.0721923153607337 },
- { 0.0193308187155918, 0.119194779794626, 0.950532152249661 }
-};