aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-matrix-shear.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-matrix-shear.c')
-rw-r--r--src/blind-matrix-shear.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/blind-matrix-shear.c b/src/blind-matrix-shear.c
index d8ab02c..8130cba 100644
--- a/src/blind-matrix-shear.c
+++ b/src/blind-matrix-shear.c
@@ -36,6 +36,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");
@@ -44,13 +46,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;
}