aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-sinc-wave.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-sinc-wave.c')
-rw-r--r--src/blind-sinc-wave.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/blind-sinc-wave.c b/src/blind-sinc-wave.c
index 4ee2b52..f809c8e 100644
--- a/src/blind-sinc-wave.c
+++ b/src/blind-sinc-wave.c
@@ -5,7 +5,6 @@ USAGE("[-e] [theta0-stream]")
static int equal = 0;
-
#define PROCESS(TYPE, SUFFIX)\
static void\
process_##SUFFIX(struct stream *grad, struct stream *theta0)\
@@ -70,7 +69,6 @@ static int equal = 0;
PROCESS(double, lf)
PROCESS(float, f)
-
int
main(int argc, char *argv[])
{
@@ -96,9 +94,9 @@ main(int argc, char *argv[])
eprintf("theta0-stream must be of dimension 1x1\n");
}
- if (!strcmp(stream.pixfmt, "xyza"))
+ if (stream.encoding == DOUBLE)
process = process_lf;
- else if (!strcmp(stream.pixfmt, "xyza f"))
+ else if (stream.encoding == FLOAT)
process = process_f;
else
eprintf("pixel format %s is not supported, try xyza\n", stream.pixfmt);