diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-02-17 19:57:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-02-17 19:57:28 +0000 |
| commit | 4f68d50abb5a83628482fd166e40f3b4b281166b (patch) | |
| tree | 73d4bcd078bfa28342b9ccfb638a431257255bf6 /src/colour_conversion.cc | |
| parent | 1e7e40ffb6e3632b65adb8372dc073106e3d4023 (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_conversion.cc')
| -rw-r--r-- | src/colour_conversion.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/colour_conversion.cc b/src/colour_conversion.cc index 8a64c89b..17955915 100644 --- a/src/colour_conversion.cc +++ b/src/colour_conversion.cc @@ -30,7 +30,7 @@ ColourConversion::srgb_to_xyz () { static ColourConversion* c = new ColourConversion ( shared_ptr<const TransferFunction> (new ModifiedGammaTransferFunction (false, 2.4, 0.04045, 0.055, 12.92)), - dcp::colour_matrix::srgb_to_xyz, + dcp::colour_matrix::rgb_to_xyz, shared_ptr<const TransferFunction> (new GammaTransferFunction (true, 2.6)) ); return *c; @@ -52,7 +52,7 @@ ColourConversion::rec709_to_xyz () { static ColourConversion* c = new ColourConversion ( shared_ptr<const TransferFunction> (new ModifiedGammaTransferFunction (false, 2.4, 0.081, 0.099, 4.5)), - dcp::colour_matrix::rec709_to_xyz, + dcp::colour_matrix::rgb_to_xyz, shared_ptr<const TransferFunction> (new GammaTransferFunction (true, 2.6)) ); return *c; |
