aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-extract-alpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-extract-alpha.c')
-rw-r--r--src/blind-extract-alpha.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/blind-extract-alpha.c b/src/blind-extract-alpha.c
index 6b94c19..49b3947 100644
--- a/src/blind-extract-alpha.c
+++ b/src/blind-extract-alpha.c
@@ -19,18 +19,11 @@ main(int argc, char *argv[])
eopen_stream(&stream, NULL);
fd = eopen(argv[0], O_WRONLY | O_CREAT | O_TRUNC, 0666);
- 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);
-
+ SELECT_PROCESS_FUNCTION(&stream);
fprint_stream_head(stdout, &stream);
efflush(stdout, "<stdout>");
if (dprint_stream_head(fd, &stream) < 0)
eprintf("dprintf %s:", argv[0]);
-
process(&stream, fd, argv[0]);
return 0;
}