From d05d162cb81664f292834fa5d48d623d2b6147a7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 16 Jul 2017 15:29:43 +0200 Subject: Misc code improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-single-colour.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/blind-single-colour.c') diff --git a/src/blind-single-colour.c b/src/blind-single-colour.c index 8017a25..b8f693a 100644 --- a/src/blind-single-colour.c +++ b/src/blind-single-colour.c @@ -57,15 +57,9 @@ main(int argc, char *argv[]) if (inf) einf_check_fd(STDOUT_FILENO, ""); - pixfmt = get_pixel_format(pixfmt, "xyza"); - if (!strcmp(pixfmt, "xyza")) - process = process_lf; - else if (!strcmp(pixfmt, "xyza f")) - process = process_f; - else - eprintf("pixel format %s is not supported, try xyza\n", pixfmt); + eset_pixel_format(&stream, pixfmt); + SELECT_PROCESS_FUNCTION(&stream); - strcpy(stream.pixfmt, pixfmt); fprint_stream_head(stdout, &stream); efflush(stdout, ""); -- cgit v1.2.3-70-g09d2