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