X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=d65.h;h=807c274ece6ce645a4f14b0699e63ae83cf9d37e;hp=86f423bdd4ce8054b27d57d6ccefafb0a977bc46;hb=8dedcc2fd11b00fec125212b60e144363033137d;hpb=57061265db1842d85c96bc678297d13b30661ab8 diff --git a/d65.h b/d65.h index 86f423b..807c274 100644 --- a/d65.h +++ b/d65.h @@ -1,5 +1,5 @@ -#ifndef _D65_H -#define _D65_H 1 +#ifndef _MOVIT_D65_H +#define _MOVIT_D65_H 1 // The D65 illuminant, which is the standard white point (ie. what you should get // for R=G=B=1) for almost all video color spaces in common use. It has a color @@ -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; -#endif // !defined(_D65_H) +// 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(_MOVIT_D65_H)