]> git.sesse.net Git - movit/blob - d65.h
Disable OpenGL dithering, just to be on the safe side.
[movit] / d65.h
1 #ifndef _MOVIT_D65_H
2 #define _MOVIT_D65_H 1
3
4 // The D65 illuminant, which is the standard white point (ie. what you should get
5 // for R=G=B=1) for almost all video color spaces in common use. It has a color
6 // temperature roughly around 6500 K, which is sort of bluish; it is intended to
7 // simulate average daylight conditions.
8 //
9 // The definition (in xyz space) is given, for instance, in both Rec. 601 and 709.
10 static const double d65_x = 0.3127, d65_y = 0.3290, d65_z = 1.0 - d65_x - d65_y;
11
12 // XYZ coordinates of D65, normalized so that Y=1.
13 static const double d65_X = d65_x / d65_y;
14 static const double d65_Y = 1.0;
15 static const double d65_Z = d65_z / d65_y;
16
17 #endif  // !defined(_MOVIT_D65_H)
18