From 3569a10c97d41913dbf7cf3114cb4d2d5f17dc7f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 15 Jul 2017 17:08:02 +0200 Subject: Some improvements and fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-time-blur.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/blind-time-blur.c') diff --git a/src/blind-time-blur.c b/src/blind-time-blur.c index 6d7a148..6144013 100644 --- a/src/blind-time-blur.c +++ b/src/blind-time-blur.c @@ -35,15 +35,15 @@ static int first = 1; } while (0) static void -process_xyza(char *output, char *restrict cbuf, char *restrict abuf, - struct stream *colour, struct stream *alpha) +process_lf(char *output, char *restrict cbuf, char *restrict abuf, + struct stream *colour, struct stream *alpha) { PROCESS(double); } static void -process_xyzaf(char *output, char *restrict cbuf, char *restrict abuf, - struct stream *colour, struct stream *alpha) +process_f(char *output, char *restrict cbuf, char *restrict abuf, + struct stream *colour, struct stream *alpha) { PROCESS(float); } @@ -66,10 +66,10 @@ main(int argc, char *argv[]) eopen_stream(&colour, NULL); eopen_stream(&alpha, argv[0]); - if (!strcmp(colour.pixfmt, "xyza")) - process = process_xyza; - else if (!strcmp(colour.pixfmt, "xyza f")) - process = process_xyzaf; + if (colour.encoding == DOUBLE) + process = process_lf; + else if (colour.encoding == FLOAT) + process = process_f; else eprintf("pixel format %s is not supported, try xyza\n", colour.pixfmt); -- cgit v1.2.3-70-g09d2