diff options
Diffstat (limited to 'src/blind-matrix-orthoproject.c')
| -rw-r--r-- | src/blind-matrix-orthoproject.c | 9 |
1 files changed, 2 insertions, 7 deletions
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("<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; } |
