diff options
Diffstat (limited to '')
| -rw-r--r-- | src/blind-time-blur.c | 16 |
1 files changed, 8 insertions, 8 deletions
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); |
