void palette8tobgr32(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)
void palette8tobgr32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
void palette8tobgr32(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette){	unsigned i;	for(i=0; i<num_pixels; i++)	{		#ifdef WORDS_BIGENDIAN		dst[3]= palette[ src[i]*4+0 ];		dst[2]= palette[ src[i]*4+1 ];		dst[1]= palette[ src[i]*4+2 ];		#else		//FIXME slow?		dst[0]= palette[ src[i]*4+0 ];		dst[1]= palette[ src[i]*4+1 ];		dst[2]= palette[ src[i]*4+2 ];//		dst[3]= 0; /* do we need this cleansing? */		#endif				dst+= 4;	}}