From 218b41129040515d7bf6a04a82576d61f83d8bf7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 10 Jun 2017 14:02:39 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- en_masse-template.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'en_masse-template.c') diff --git a/en_masse-template.c b/en_masse-template.c index d823026..127d766 100644 --- a/en_masse-template.c +++ b/en_masse-template.c @@ -108,13 +108,19 @@ libcolour_convert_en_masse(const libcolour_colour_t *from, const libcolour_colou } while (n--) { - tfrom.rgb.R = in1[n * width]; - tfrom.rgb.G = in2[n * width]; - tfrom.rgb.B = in3[n * width]; + tfrom.rgb.R = *in1; + tfrom.rgb.G = *in2; + tfrom.rgb.B = *in3; libcolour_convert(&tfrom, &tto); - out1[n * width] = tto.rgb.R; - out2[n * width] = tto.rgb.G; - out3[n * width] = tto.rgb.B; + *out1 = tto.rgb.R; + *out2 = tto.rgb.G; + *out3 = tto.rgb.B; + in1 += width; + in2 += width; + in3 += width; + out1 += width; + out2 += width; + out3 += width; } (void) on_cpu; -- cgit v1.2.3-70-g09d2