aboutsummaryrefslogtreecommitdiffstats
path: root/libcolour-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcolour-template.c')
-rw-r--r--libcolour-template.c12
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;