From 642827248322add0cdaac6cf516f32c5c804a8e9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 4 Jul 2017 05:35:57 +0200 Subject: Add bff-flip, bff-flop, bff-rotate-90, bff-rotate-180, bff-rotate-270, and bff-transpose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 6 ++++++ bff-flip.c | 23 +++++++++++++++++++++++ bff-flop.c | 23 +++++++++++++++++++++++ bff-rotate-180.c | 23 +++++++++++++++++++++++ bff-rotate-270.c | 23 +++++++++++++++++++++++ bff-rotate-90.c | 23 +++++++++++++++++++++++ bff-transpose.c | 23 +++++++++++++++++++++++ 7 files changed, 144 insertions(+) create mode 100644 bff-flip.c create mode 100644 bff-flop.c create mode 100644 bff-rotate-180.c create mode 100644 bff-rotate-270.c create mode 100644 bff-rotate-90.c create mode 100644 bff-transpose.c diff --git a/Makefile b/Makefile index c7aa8fd..927923b 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,13 @@ include $(CONFIGFILE) BIN =\ + bff-flip\ + bff-flop\ bff-premultiply\ + bff-rotate-180\ + bff-rotate-270\ + bff-rotate-90\ + bff-transpose\ bff-unpremultiply diff --git a/bff-flip.c b/bff-flip.c new file mode 100644 index 0000000..1c28c29 --- /dev/null +++ b/bff-flip.c @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + +USAGE("") + +int +main(int argc, char *argv[]) +{ + pid_t pid; + + UNOFLAGS(argc); + + bff_begin(); + + pid = bff_run((const char *[]){ "blind-flip", NULL }, + STDIN_FILENO, STDOUT_FILENO); + + bff_wait(pid, "blind-flip"); + + bff_end(); + + return 0; +} diff --git a/bff-flop.c b/bff-flop.c new file mode 100644 index 0000000..8724b08 --- /dev/null +++ b/bff-flop.c @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + +USAGE("") + +int +main(int argc, char *argv[]) +{ + pid_t pid; + + UNOFLAGS(argc); + + bff_begin(); + + pid = bff_run((const char *[]){ "blind-flop", NULL }, + STDIN_FILENO, STDOUT_FILENO); + + bff_wait(pid, "blind-flop"); + + bff_end(); + + return 0; +} diff --git a/bff-rotate-180.c b/bff-rotate-180.c new file mode 100644 index 0000000..d743a86 --- /dev/null +++ b/bff-rotate-180.c @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + +USAGE("") + +int +main(int argc, char *argv[]) +{ + pid_t pid; + + UNOFLAGS(argc); + + bff_begin(); + + pid = bff_run((const char *[]){ "blind-rotate-180", NULL }, + STDIN_FILENO, STDOUT_FILENO); + + bff_wait(pid, "blind-rotate-180"); + + bff_end(); + + return 0; +} diff --git a/bff-rotate-270.c b/bff-rotate-270.c new file mode 100644 index 0000000..041b623 --- /dev/null +++ b/bff-rotate-270.c @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + +USAGE("") + +int +main(int argc, char *argv[]) +{ + pid_t pid; + + UNOFLAGS(argc); + + bff_begin(); + + pid = bff_run((const char *[]){ "blind-rotate-270", NULL }, + STDIN_FILENO, STDOUT_FILENO); + + bff_wait(pid, "blind-rotate-270"); + + bff_end(); + + return 0; +} diff --git a/bff-rotate-90.c b/bff-rotate-90.c new file mode 100644 index 0000000..91a592f --- /dev/null +++ b/bff-rotate-90.c @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + +USAGE("") + +int +main(int argc, char *argv[]) +{ + pid_t pid; + + UNOFLAGS(argc); + + bff_begin(); + + pid = bff_run((const char *[]){ "blind-rotate-90", NULL }, + STDIN_FILENO, STDOUT_FILENO); + + bff_wait(pid, "blind-rotate-90"); + + bff_end(); + + return 0; +} diff --git a/bff-transpose.c b/bff-transpose.c new file mode 100644 index 0000000..3e686b5 --- /dev/null +++ b/bff-transpose.c @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + +USAGE("") + +int +main(int argc, char *argv[]) +{ + pid_t pid; + + UNOFLAGS(argc); + + bff_begin(); + + pid = bff_run((const char *[]){ "blind-transpose", NULL }, + STDIN_FILENO, STDOUT_FILENO); + + bff_wait(pid, "blind-transpose"); + + bff_end(); + + return 0; +} -- cgit v1.2.3-70-g09d2