I'm getting this from fnordware DCIconverter.
https://github.com/fnordware/DCIconverter/blob/master/src/DCIconverter.cpp
{
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;
{
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;
{ 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 }
-};
namespace colour_matrix {
extern double const xyz_to_rgb[3][3];
-extern double const srgb_to_xyz[3][3];
-extern double const rec709_to_xyz[3][3];
+extern double const rgb_to_xyz[3][3];
}