diff options
Diffstat (limited to 'rgb16.c')
-rw-r--r-- | rgb16.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/rgb16.c b/rgb16.c deleted file mode 100644 index 1f10b653..00000000 --- a/rgb16.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - by prumpf@mandrakesoft.com in 14 minutes - to use it to make a screen shot of aurora : - chvt 12; sleep 2; cat /dev/fb0 | ./rgb16 | rawtoppm 800 600 - > foo.xpm -*/ - -#include <stdio.h> - -int main(void) -{ - unsigned short c; - - c = (c>>8) | (c<<8); - - for(;;) { - - fread(&c, 2, 1, stdin); - - putchar(((c>>11)&0x1f) << 3); - putchar(((c>> 5)&0x3f) << 2); - putchar(((c>> 0)&0x1f) << 3); - } - - return 0; -} |