aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libcolour.c2
-rw-r--r--src/libcolour.h12
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;