aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-15 21:26:29 +0100
committerMattias Andrée <maandree@kth.se>2016-12-15 21:26:29 +0100
commit5e4d0f271eab0be49103383299d1beb1559475eb (patch)
tree40083687a3023d7a7dc9073e8d396c189b1c14e9
parentadd todos (diff)
downloadlibcolour-5e4d0f271eab0be49103383299d1beb1559475eb.tar.gz
libcolour-5e4d0f271eab0be49103383299d1beb1559475eb.tar.bz2
libcolour-5e4d0f271eab0be49103383299d1beb1559475eb.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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;