diff options
author | Mattias Andrée <maandree@kth.se> | 2017-06-12 18:03:48 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-06-12 18:03:48 +0200 |
commit | 7871f5f946ce19c22c1b69a1019dee9cfa665731 (patch) | |
tree | d28f677ab6e4a4c4c5a194c66e1ba4ef53f3ee80 /libcolour-template.c | |
parent | Make conversion macros not require restrict (diff) | |
download | libcolour-7871f5f946ce19c22c1b69a1019dee9cfa665731.tar.gz libcolour-7871f5f946ce19c22c1b69a1019dee9cfa665731.tar.bz2 libcolour-7871f5f946ce19c22c1b69a1019dee9cfa665731.tar.xz |
libcolour_convert uses libcolour_convert_en_masse instead of the other way around
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcolour-template.c')
-rw-r--r-- | libcolour-template.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcolour-template.c b/libcolour-template.c index 9d0fb0b..bfbbd3e 100644 --- a/libcolour-template.c +++ b/libcolour-template.c @@ -8,6 +8,18 @@ TYPE libcolour_srgb_decode(TYPE t) { return srgb_decode(t); } int +libcolour_convert(const libcolour_colour_t *from, libcolour_colour_t *to) +{ + return libcolour_convert_en_masse(from, to, + LIBCOLOUR_CONVERT_EN_MASSE_SEPARATED | + LIBCOLOUR_CONVERT_EN_MASSE_ON_CPU | + LIBCOLOUR_CONVERT_EN_MASSE_NO_OVERRIDE, 1, + &from->srgb.R, &from->srgb.G, &from->srgb.B, + &to->srgb.R, &to->srgb.G, &to->srgb.B); +} + + +int libcolour_delta_e(const libcolour_colour_t *a, const libcolour_colour_t *b, TYPE *e) { libcolour_cielab_t u, v; |