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-transpose.c | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/vu-transpose.c (limited to 'src/vu-transpose.c') diff --git a/src/vu-transpose.c b/src/vu-transpose.c deleted file mode 100644 index 0c32d81..0000000 --- a/src/vu-transpose.c +++ /dev/null @@ -1,45 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include "stream.h" -#include "util.h" - -#include -#include -#include -#include - -USAGE("") - -int -main(int argc, char *argv[]) -{ - struct stream stream; - char *buf, *image; - size_t n, imgw, imgh, x, y, i, b; - - ENOFLAGS(argc); - - stream.file = ""; - stream.fd = STDIN_FILENO; - einit_stream(&stream); - fprint_stream_head(stdout, &stream); - efflush(stdout, ""); - - echeck_frame_size(stream.width, stream.height, stream.pixel_size, 0, ""); - n = stream.width * stream.height * stream.pixel_size; - buf = emalloc(n); - image = emalloc(n); - - imgw = stream.width * (imgh = stream.height * stream.pixel_size); - memcpy(buf, stream.buf, stream.ptr); - while (eread_frame(&stream, buf, n)) { - for (b = y = 0; y < imgh; y += stream.pixel_size) - for (x = 0; x < imgw; x += imgh) - for (i = 0; i < stream.pixel_size; i++) - image[x + y + i] = buf[b++]; - ewriteall(STDOUT_FILENO, image, n, ""); - } - - free(buf); - free(image); - return 0; -} -- cgit v1.2.3-70-g09d2