summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-20 14:44:46 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-20 14:44:46 +0200
commit2d736d5591c85f94b49d02b5e8415b98a5577c5b (patch)
treeb8ffd09a5348dd64a9bfe8b21d07c1101eabd654 /Meta
parentdbf5a7e4a6a308dd5af09178da497a44dec7427e (diff)
downloadserenity-2d736d5591c85f94b49d02b5e8415b98a5577c5b.zip
Meta: Remove convert-raw-to-rgb thingy since we have PNG support nowadays.
Diffstat (limited to 'Meta')
-rw-r--r--Meta/convert-raw-to-rgb.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/Meta/convert-raw-to-rgb.cpp b/Meta/convert-raw-to-rgb.cpp
deleted file mode 100644
index 15e9868233..0000000000
--- a/Meta/convert-raw-to-rgb.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <stdio.h>
-#include <arpa/inet.h>
-#include <unistd.h>
-#include <fcntl.h>
-
-int main(int argc, char**argv)
-{
- int fd = open(argv[1], O_RDONLY);
- if (fd < 0) {
- perror("open");
- return 1;
- }
- for (;;) {
- unsigned buffer;
- ssize_t nread = read(fd, &buffer, sizeof(buffer));
- if (nread == 0)
- break;
- if (nread < 0) {
- perror("read");
- return 1;
- }
- unsigned converted = buffer & 0xff00ff00;
- converted |= (buffer & 0xff0000) >> 16;
- converted |= (buffer & 0xff) << 16;
- write(1, &converted, sizeof(unsigned));
- }
- int rc = close(fd);
- if (rc < 0) {
- perror("close");
- return 1;
- }
- return 0;
-}