diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-07-16 15:29:43 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-07-16 15:29:43 +0200 |
| commit | d05d162cb81664f292834fa5d48d623d2b6147a7 (patch) | |
| tree | 9d4252fcdfa2210613188d5c965514cfab6a8ec2 /src/blind-dot-product.c | |
| parent | Use #include instead of #define (diff) | |
| download | blind-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-dot-product.c')
| -rw-r--r-- | src/blind-dot-product.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/blind-dot-product.c b/src/blind-dot-product.c index 1d7053d..0a9e94e 100644 --- a/src/blind-dot-product.c +++ b/src/blind-dot-product.c @@ -18,13 +18,7 @@ main(int argc, char *argv[]) eopen_stream(&left, NULL); eopen_stream(&right, argv[0]); - if (left.encoding == DOUBLE) - process = process_lf; - else if (left.encoding == FLOAT) - process = process_f; - else - eprintf("pixel format %s is not supported, try xyza\n", left.pixfmt); - + SELECT_PROCESS_FUNCTION(&left); fprint_stream_head(stdout, &left); efflush(stdout, "<stdout>"); process_two_streams(&left, &right, STDOUT_FILENO, "<stdout>", process); |
