From 6c1baeb0aa75f2db95bf419ea83c8314b0376b07 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 30 Aug 2002 11:17:15 +0000 Subject: [PATCH] added missing palette8tobgr pairs (hope it's correct) Originally committed as revision 7160 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- postproc/rgb2rgb.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) 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