From ae811c3ce7b71902b508c65278050f0358471e98 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 12 Jan 2017 07:53:06 +0100 Subject: m + Add vu-gauss-blur MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/vu-next-frame.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/vu-next-frame.c') diff --git a/src/vu-next-frame.c b/src/vu-next-frame.c index 667acf5..6a55790 100644 --- a/src/vu-next-frame.c +++ b/src/vu-next-frame.c @@ -6,9 +6,6 @@ #include #include -#undef eprintf -#define eprintf(...) enprintf(2, __VA_ARGS__) - USAGE("width height pixel-format ...") int @@ -26,8 +23,8 @@ main(int argc, char *argv[]) stream.file = ""; stream.pixfmt[0] = '\0'; - stream.width = etozu_arg("the width", argv[0], 1, SIZE_MAX); - stream.height = etozu_arg("the height", argv[1], 1, SIZE_MAX); + stream.width = entozu_arg(2, "the width", argv[0], 1, SIZE_MAX); + stream.height = entozu_arg(2, "the height", argv[1], 1, SIZE_MAX); argv += 2, argc -= 2; n = (size_t)argc - 1; @@ -41,26 +38,26 @@ main(int argc, char *argv[]) } } - eset_pixel_size(&stream); + enset_pixel_size(2, &stream); fprint_stream_head(stdout, &stream); - efflush(stdout, ""); + enfflush(2, stdout, ""); w = stream.width * stream.pixel_size; while (stream.height) { stream.height--; for (n = w; n; n -= stream.ptr) { stream.ptr = 0; - if (!eread_stream(&stream, n)) + if (!enread_stream(2, &stream, n)) goto done; anything = 1; - ewriteall(STDOUT_FILENO, stream.buf, stream.ptr, ""); + enwriteall(2, STDOUT_FILENO, stream.buf, stream.ptr, ""); } } done: if (stream.height || n) - eprintf("incomplete frame\n"); + enprintf(2, "incomplete frame\n"); return !anything; } -- cgit v1.2.3-70-g09d2