X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=d65.h;h=8f1f3e796f36cac2b4bd05abbd901950b0a75e53;hp=86f423bdd4ce8054b27d57d6ccefafb0a977bc46;hb=020ba675b7be6ceeb284be91039efc0dc0986227;hpb=57061265db1842d85c96bc678297d13b30661ab8 diff --git a/d65.h b/d65.h index 86f423b..8f1f3e7 100644 --- a/d65.h +++ b/d65.h @@ -9,5 +9,10 @@ // The definition (in xyz space) is given, for instance, in both Rec. 601 and 709. static const double d65_x = 0.3127, d65_y = 0.3290, d65_z = 1.0 - d65_x - d65_y; +// XYZ coordinates of D65, normalized so that Y=1. +static const double d65_X = d65_x / d65_y; +static const double d65_Y = 1.0; +static const double d65_Z = d65_z / d65_y; + #endif // !defined(_D65_H)