aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-square-gradient.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-square-gradient.c')
-rw-r--r--src/blind-square-gradient.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/blind-square-gradient.c b/src/blind-square-gradient.c
index bdd92bc..3a754a2 100644
--- a/src/blind-square-gradient.c
+++ b/src/blind-square-gradient.c
@@ -33,12 +33,7 @@ main(int argc, char *argv[])
eopen_stream(&stream, NULL);
- if (!strcmp(stream.pixfmt, "xyza"))
- process = process_lf;
- else if (!strcmp(stream.pixfmt, "xyza f"))
- process = process_f;
- else
- eprintf("pixel format %s is not supported, try xyza\n", stream.pixfmt);
+ SELECT_PROCESS_FUNCTION(&stream);
if (stream.width > 3 || stream.height > 3 ||
stream.width * stream.height < 2 ||