From 06b8e2576f952e8f8b097ee906f662d2ac38e2e8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 3 May 2017 20:20:12 +0200 Subject: Add constants D65_XYZ_X and D65_XYZ_Z MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/util/colour.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util') 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) { -- cgit v1.2.3-70-g09d2