Changeset View
Changeset View
Standalone View
Standalone View
colorcorrection/constants.h
Show All 25 Lines | |||||
26 | { | 26 | { | ||
27 | 27 | | |||
28 | static const int MSC_DAY = 86400000; | 28 | static const int MSC_DAY = 86400000; | ||
29 | static const int MIN_TEMPERATURE = 1000; | 29 | static const int MIN_TEMPERATURE = 1000; | ||
30 | static const int NEUTRAL_TEMPERATURE = 6500; | 30 | static const int NEUTRAL_TEMPERATURE = 6500; | ||
31 | static const int DEFAULT_NIGHT_TEMPERATURE = 4500; | 31 | static const int DEFAULT_NIGHT_TEMPERATURE = 4500; | ||
32 | static const int FALLBACK_SLOW_UPDATE_TIME = 1800000; /* 30 minutes */ | 32 | static const int FALLBACK_SLOW_UPDATE_TIME = 1800000; /* 30 minutes */ | ||
33 | 33 | | |||
34 | /* Whitepoint values for temperatures at 100K intervals. | 34 | /** | ||
35 | * Whitepoint values for temperatures at 100K intervals. | ||||
35 | * These will be interpolated for the actual temperature. | 36 | * These will be interpolated for the actual temperature. | ||
36 | * This table was provided by Ingo Thies, 2013. | 37 | * This table was provided by Ingo Thies, 2013. | ||
37 | * See the following file for more information: | 38 | * See the following file for more information: | ||
38 | * https://github.com/jonls/redshift/blob/master/README-colorramp | 39 | * https://github.com/jonls/redshift/blob/master/README-colorramp | ||
39 | */ | 40 | **/ | ||
40 | static const float blackbodyColor[] = { | 41 | static const float blackbodyColor[] = { | ||
41 | 1.00000000, 0.18172716, 0.00000000, /* 1000K */ | 42 | 1.00000000, 0.18172716, 0.00000000, /* 1000K */ | ||
42 | 1.00000000, 0.25503671, 0.00000000, /* 1100K */ | 43 | 1.00000000, 0.25503671, 0.00000000, /* 1100K */ | ||
43 | 1.00000000, 0.30942099, 0.00000000, /* 1200K */ | 44 | 1.00000000, 0.30942099, 0.00000000, /* 1200K */ | ||
44 | 1.00000000, 0.35357379, 0.00000000, /* ... */ | 45 | 1.00000000, 0.35357379, 0.00000000, /* ... */ | ||
45 | 1.00000000, 0.39091524, 0.00000000, | 46 | 1.00000000, 0.39091524, 0.00000000, | ||
46 | 1.00000000, 0.42322816, 0.00000000, | 47 | 1.00000000, 0.42322816, 0.00000000, | ||
47 | 1.00000000, 0.45159884, 0.00000000, | 48 | 1.00000000, 0.45159884, 0.00000000, | ||
▲ Show 20 Lines • Show All 241 Lines • Show Last 20 Lines |