diff options
Diffstat (limited to 'src/blind-rectangle-tessellation.c')
| -rw-r--r-- | src/blind-rectangle-tessellation.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/blind-rectangle-tessellation.c b/src/blind-rectangle-tessellation.c index 2d83222..7ffcb49 100644 --- a/src/blind-rectangle-tessellation.c +++ b/src/blind-rectangle-tessellation.c @@ -47,10 +47,13 @@ main(int argc, char *argv[]) height = etozu_arg("block-height", argv[1], 1, SIZE_MAX); eset_pixel_format(&stream, pixfmt); + CHECK_N_CHAN(&stream, 4, 4); if (stream.encoding == DOUBLE) SET_XYZA(double); - else + else if (stream.encoding == FLOAT) SET_XYZA(float); + else + eprintf("pixel format %s is not supported, try xyza\n", stream.pixfmt); stream.width = 2 * width; stream.height = 2 * height; |
