diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c index 7ab86e1804..4612f57399 100644 --- a/postproc/rgb2rgb.c +++ b/postproc/rgb2rgb.c @@ -12,6 +12,7 @@ #include "rgb2rgb.h" #include "../cpudetect.h" #include "../mangle.h" +#include "../bswap.h" #ifdef ARCH_X86 #define CAN_COMPILE_X86_ASM @@ -268,6 +269,29 @@ void palette8torgb32(const uint8_t *src, uint8_t *dst, unsigned num_pixels, cons ((unsigned *)dst)[i] = ((unsigned *)palette)[ src[i] ]; } +#if 0 +void palette8tobgr32(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette) +{ + unsigned i; + for(i=0; i