void palette8torgb16(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)

{

	unsigned i;

	for(i=0; i<num_pixels; i++)

		((uint16_t *)dst)[i] = ((uint16_t *)palette)[ src[i] ];

}

void palette8torgb16(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)

{

	unsigned i;

	for(i=0; i<num_pixels; i++)

		((uint16_t *)dst)[i] = ((uint16_t *)palette)[ src[i] ];

}

	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; void palette8torgb16(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette) 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i;
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned VAR_2, const uint8_t *VAR_3)

{

	unsigned VAR_4;

	for(VAR_4=0; VAR_4<VAR_2; VAR_4++)

		((uint16_t *)VAR_1)[VAR_4] = ((uint16_t *)VAR_3)[ VAR_0[VAR_4] ];

}

void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned VAR_2, const uint8_t *VAR_3)
{ unsigned VAR_4; for(VAR_4=0; VAR_4<VAR_2; VAR_4++) ((uint16_t *)VAR_1)[VAR_4] = ((uint16_t *)VAR_3)[ VAR_0[VAR_4] ]; }