From d05d162cb81664f292834fa5d48d623d2b6147a7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 16 Jul 2017 15:29:43 +0200 Subject: Misc code improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-matrix-orthoproject.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/blind-matrix-orthoproject.c') diff --git a/src/blind-matrix-orthoproject.c b/src/blind-matrix-orthoproject.c index 5bac543..816e76c 100644 --- a/src/blind-matrix-orthoproject.c +++ b/src/blind-matrix-orthoproject.c @@ -28,6 +28,8 @@ main(int argc, char *argv[]) eopen_stream(&stream, NULL); + SELECT_PROCESS_FUNCTION(&stream); + if (stream.width > 2 || stream.height > 2 || stream.width * stream.height != 2) eprintf(": each frame must contain exactly 2 pixels\n"); @@ -36,13 +38,6 @@ main(int argc, char *argv[]) fprint_stream_head(stdout, &stream); efflush(stdout, ""); - if (stream.encoding == DOUBLE) - process = process_lf; - else if (stream.encoding == FLOAT) - process = process_f; - else - eprintf("pixel format %s is not supported, try xyza\n", stream.pixfmt); - process(&stream); return 0; } -- cgit v1.2.3-70-g09d2