From fcd672bf6ddceff1e0e2fcd15933c3178e1f9402 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 16 Dec 2016 00:28:48 +0100 Subject: fix cielab to ciexyz conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libclut.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libclut.h b/src/libclut.h index 26e27a9..6daec11 100644 --- a/src/libclut.h +++ b/src/libclut.h @@ -2079,8 +2079,8 @@ void (libclut_model_cielab_to_ciexyz)(double, double, double, double*, double*, *X__ = a__ / 500 + *Y__; \ *Z__ = *Y__ - b__ / 200; \ *X__ = LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(*X__) * 0.95047; \ - *Y__ = LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(*Y__); \ - *Z__ = LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(*Z__) * 1.08883; \ + *Y__ = LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(*Y__) * 1.08883; \ + *Z__ = LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(*Z__); \ } \ while (0) #define LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(C) \ -- cgit v1.2.3-70-g09d2