From 4674ec0e4b833ab0d0365225ba99228df14abe87 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 13 Jan 2017 09:05:08 +0100 Subject: Rename to blind MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/vu-flop.c | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/vu-flop.c (limited to 'src/vu-flop.c') diff --git a/src/vu-flop.c b/src/vu-flop.c deleted file mode 100644 index e98771d..0000000 --- a/src/vu-flop.c +++ /dev/null @@ -1,44 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include "stream.h" -#include "util.h" - -#include -#include -#include - -USAGE("") - -int -main(int argc, char *argv[]) -{ - struct stream stream; - char *buf, *image; - size_t i, j, n, m; - - ENOFLAGS(argc); - - stream.file = ""; - stream.fd = STDIN_FILENO; - einit_stream(&stream); - fprint_stream_head(stdout, &stream); - efflush(stdout, ""); - - if (stream.width > SIZE_MAX / stream.pixel_size) - eprintf(": video frame is too wide\n"); - n = stream.width * stream.pixel_size; - buf = emalloc(n); - image = emalloc(n); - - m = n - stream.pixel_size; - memcpy(buf, stream.buf, stream.ptr); - while (eread_row(&stream, buf, n)) { - for (i = 0; i < stream.pixel_size; i++) - for (j = 0; j < n; j += stream.pixel_size) - image[m - j + i] = buf[i + j]; - ewriteall(STDOUT_FILENO, image, n, ""); - } - - free(buf); - free(image); - return 0; -} -- cgit v1.2.3-70-g09d2