From 5e4d0f271eab0be49103383299d1beb1559475eb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 15 Dec 2016 21:26:29 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libcolour.c | 2 ++ src/libcolour.h | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/libcolour.c b/src/libcolour.c index 3e15bd2..7799534 100644 --- a/src/libcolour.c +++ b/src/libcolour.c @@ -657,6 +657,8 @@ static void to_ydbdr(const libcolour_colour_t* restrict from, libcolour_ydbdr_t* static void to_yuv(const libcolour_colour_t* restrict from, libcolour_yuv_t* restrict to) { + /* TODO to_yuv: add direct conversion from and to CIE XYZ and use it as the default intermediary */ + /* TODO to_yub: add direct conversion from and to sRGB */ libcolour_colour_t tmp = *from; switch (from->model) { case LIBCOLOUR_YUV: diff --git a/src/libcolour.h b/src/libcolour.h index 330ecbe..3a8975e 100644 --- a/src/libcolour.h +++ b/src/libcolour.h @@ -243,21 +243,21 @@ typedef struct libcolour_rgb { double slope; double transition; double transitioninv; - struct libcolour_ciexyy red; - struct libcolour_ciexyy green; - struct libcolour_ciexyy blue; - struct libcolour_ciexyy white; double (*to_encoded_red)(double); double (*to_decoded_red)(double); double (*to_encoded_green)(double); double (*to_decoded_green)(double); double (*to_encoded_blue)(double); double (*to_decoded_blue)(double); - double M[3][3]; - double Minv[3][3]; + struct libcolour_ciexyy red; + struct libcolour_ciexyy green; + struct libcolour_ciexyy blue; + struct libcolour_ciexyy white; double white_r; double white_g; double white_b; + double M[3][3]; + double Minv[3][3]; enum libcolour_rgb_colour_space colour_space; } libcolour_rgb_t; -- cgit v1.2.3-70-g09d2