From 62d7fa9555924ab8e152b546711d27add640b102 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 19 Jan 2012 01:33:12 +0200 Subject: refactor gpu plugins and Makefiles name common gpu code gpulib, reduce amount of copy-paste in plugin Makefiles --- frontend/cspace.c | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 frontend/cspace.c (limited to 'frontend/cspace.c') diff --git a/frontend/cspace.c b/frontend/cspace.c deleted file mode 100644 index eee56ce..0000000 --- a/frontend/cspace.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "cspace.h" - -void bgr555_to_rgb565(void *dst_, const void *src_, int bytes) -{ - unsigned int *src = (unsigned int *)src_; - unsigned int *dst = (unsigned int *)dst_; - unsigned int p; - int x; - - for (x = 0; x < bytes / 4; x++) { - p = src[x]; - p = ((p & 0x7c007c00) >> 10) | ((p & 0x03e003e0) << 1) - | ((p & 0x001f001f) << 11); - dst[x] = p; - } -} - -// TODO? -void bgr888_to_rgb888(void *dst, const void *src, int bytes) {} -void bgr888_to_rgb565(void *dst, const void *src, int bytes) {} - -- cgit v1.2.3