aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-05-03 20:20:12 +0200
committerMattias Andrée <maandree@kth.se>2017-05-03 20:20:12 +0200
commit06b8e2576f952e8f8b097ee906f662d2ac38e2e8 (patch)
tree35b0b9dc614f5f097ffb82e4c2d032958833fc3e /src/util
parentFixes and improvements to stream.c (diff)
downloadblind-06b8e2576f952e8f8b097ee906f662d2ac38e2e8.tar.gz
blind-06b8e2576f952e8f8b097ee906f662d2ac38e2e8.tar.bz2
blind-06b8e2576f952e8f8b097ee906f662d2ac38e2e8.tar.xz
Add constants D65_XYZ_X and D65_XYZ_Z
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/colour.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/colour.h b/src/util/colour.h
index 84c543c..ae50d32 100644
--- a/src/util/colour.h
+++ b/src/util/colour.h
@@ -4,6 +4,9 @@
#define D65_XYY_X 0.312726871026564878786047074755
#define D65_XYY_Y 0.329023206641284038376227272238
+#define D65_XYZ_X (D65_XYY_X / D65_XYY_Y)
+#define D65_XYZ_Z (1 / D65_XYY_Y - 1 - D65_XYZ_X)
+
static inline double
srgb_encode(double t)
{