aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-multiply-matrices.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-07-16 15:29:43 +0200
committerMattias Andrée <maandree@kth.se>2017-07-16 15:29:43 +0200
commitd05d162cb81664f292834fa5d48d623d2b6147a7 (patch)
tree9d4252fcdfa2210613188d5c965514cfab6a8ec2 /src/blind-multiply-matrices.c
parentUse #include instead of #define (diff)
downloadblind-d05d162cb81664f292834fa5d48d623d2b6147a7.tar.gz
blind-d05d162cb81664f292834fa5d48d623d2b6147a7.tar.bz2
blind-d05d162cb81664f292834fa5d48d623d2b6147a7.tar.xz
Misc code improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-multiply-matrices.c')
-rw-r--r--src/blind-multiply-matrices.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/blind-multiply-matrices.c b/src/blind-multiply-matrices.c
index 6aea2f0..af86311 100644
--- a/src/blind-multiply-matrices.c
+++ b/src/blind-multiply-matrices.c
@@ -66,12 +66,7 @@ main(int argc, char *argv[])
height = streams[i].height;
}
- if (streams->encoding == DOUBLE)
- process = process_lf;
- else if (streams->encoding == FLOAT)
- process = process_f;
- else
- eprintf("pixel format %s is not supported, try xyza\n", streams->pixfmt);
+ SELECT_PROCESS_FUNCTION(streams);
w = streams->width, streams->width = max_width;
h = streams->height, streams->height = max_height;