diff options
Diffstat (limited to '')
| -rw-r--r-- | src/blind-matrix-translate.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/blind-matrix-translate.c b/src/blind-matrix-translate.c index beb84d9..5ae1104 100644 --- a/src/blind-matrix-translate.c +++ b/src/blind-matrix-translate.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("<stdin>: each frame must contain exactly 2 pixels\n"); @@ -36,13 +38,6 @@ main(int argc, char *argv[]) fprint_stream_head(stdout, &stream); efflush(stdout, "<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; } |
