aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-matrix-transpose.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-matrix-transpose.c')
-rw-r--r--src/blind-matrix-transpose.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/blind-matrix-transpose.c b/src/blind-matrix-transpose.c
index 2634b8f..3f19053 100644
--- a/src/blind-matrix-transpose.c
+++ b/src/blind-matrix-transpose.c
@@ -28,6 +28,8 @@ main(int argc, char *argv[])
eopen_stream(&stream, NULL);
+ SELECT_PROCESS_FUNCTION(&stream);
+
if (stream.width != 1 || stream.height != 1)
eprintf("<stdin>: each frame must contain exactly 1 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;
}