aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-time-blur.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-07-15 17:08:02 +0200
committerMattias Andrée <maandree@kth.se>2017-07-15 17:08:02 +0200
commit3569a10c97d41913dbf7cf3114cb4d2d5f17dc7f (patch)
treee8b08fe9b0cdc208f66582309377bc3c1817fe1f /src/blind-time-blur.c
parentGenerate USING_BINARY{32,64} (diff)
downloadblind-3569a10c97d41913dbf7cf3114cb4d2d5f17dc7f.tar.gz
blind-3569a10c97d41913dbf7cf3114cb4d2d5f17dc7f.tar.bz2
blind-3569a10c97d41913dbf7cf3114cb4d2d5f17dc7f.tar.xz
Some improvements and fixes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/blind-time-blur.c16
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);