void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size)

{

	const uint16_t *end;

	uint8_t *d = (uint8_t *)dst;

	const uint16_t *s = (uint16_t *)src;

	end = s + src_size/2;

	while(s < end)

	{

		register uint16_t bgr;

		bgr = *s++;

		#ifdef WORDS_BIGENDIAN

			*d++ = 0;

			*d++ = (bgr&0x1F)<<3;

			*d++ = (bgr&0x7E0)>>3;

			*d++ = (bgr&0xF800)>>8;

		#else

			*d++ = (bgr&0xF800)>>8;

			*d++ = (bgr&0x7E0)>>3;

			*d++ = (bgr&0x1F)<<3;

			*d++ = 0;

		#endif

	}

}

void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size)

{

	const uint16_t *end;

	uint8_t *d = (uint8_t *)dst;

	const uint16_t *s = (uint16_t *)src;

	end = s + src_size/2;

	while(s < end)

	{

		register uint16_t bgr;

		bgr = *s++;

		#ifdef WORDS_BIGENDIAN

			*d++ = 0;

			*d++ = (bgr&0x1F)<<3;

			*d++ = (bgr&0x7E0)>>3;

			*d++ = (bgr&0xF800)>>8;

		#else

			*d++ = (bgr&0xF800)>>8;

			*d++ = (bgr&0x7E0)>>3;

			*d++ = (bgr&0x1F)<<3;

			*d++ = 0;

		#endif

	}

}

		#ifdef WORDS_BIGENDIAN 		#else 		#endif 		#ifdef WORDS_BIGENDIAN 		#else 		#endif 		#ifdef WORDS_BIGENDIAN 		#else 		#endif 		#ifdef WORDS_BIGENDIAN 		#else 		#endif 	const uint16_t *end; 	uint8_t *d = (uint8_t *)dst; 	const uint16_t *s = (uint16_t *)src; 	end = s + src_size/2; 	while(s < end) 		register uint16_t bgr; 		bgr = *s++; 		#ifdef WORDS_BIGENDIAN 			*d++ = 0; 			*d++ = (bgr&0x1F)<<3; 			*d++ = (bgr&0x7E0)>>3; 			*d++ = (bgr&0xF800)>>8; 		#else 			*d++ = (bgr&0xF800)>>8; 			*d++ = (bgr&0x7E0)>>3; 			*d++ = (bgr&0x1F)<<3; 			*d++ = 0; 		#endif 	const uint16_t *end; 	uint8_t *d = (uint8_t *)dst; 	end = s + src_size/2; 	while(s < end) 		register uint16_t bgr; 		bgr = *s++; 	const uint16_t *end; 	uint8_t *d = (uint8_t *)dst; 	end = s + src_size/2; 	while(s < end) 		register uint16_t bgr; 		bgr = *s++; 		#ifdef WORDS_BIGENDIAN 			*d++ = 0; 			*d++ = (bgr&0x1F)<<3; 		#else 			*d++ = (bgr&0x1F)<<3; 			*d++ = 0; 		#endif 	const uint16_t *end; 	uint8_t *d = (uint8_t *)dst; 	const uint16_t *s = (uint16_t *)src; 	end = s + src_size/2; 	while(s < end) 		register uint16_t bgr; 		bgr = *s++; 	while(s < end) 	while(s < end) 	while(s < end) 	while(s < end) 	while(s < end) 	while(s < end) 	while(s < end) 	while(s < end) 	const uint16_t *end; 	uint8_t *d = (uint8_t *)dst; 	const uint16_t *s = (uint16_t *)src; 	end = s + src_size/2; 	while(s < end) 		register uint16_t bgr; 		bgr = *s++; 	const uint16_t *end; 	uint8_t *d = (uint8_t *)dst; 	end = s + src_size/2; 	while(s < end) 		register uint16_t bgr; 		bgr = *s++; 	const uint16_t *end; 	uint8_t *d = (uint8_t *)dst; 	end = s + src_size/2; 	while(s < end) 		register uint16_t bgr; 		bgr = *s++; 	const uint16_t *end; 	uint8_t *d = (uint8_t *)dst; 	const uint16_t *s = (uint16_t *)src; 	end = s + src_size/2; 	while(s < end) 		register uint16_t bgr; 		bgr = *s++;
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2)

{

	const uint16_t *VAR_3;

	uint8_t *d = (uint8_t *)VAR_1;

	const uint16_t *VAR_4 = (uint16_t *)VAR_0;

	VAR_3 = VAR_4 + VAR_2/2;

	while(VAR_4 < VAR_3)

	{

		register uint16_t VAR_5;

		VAR_5 = *VAR_4++;

		#ifdef WORDS_BIGENDIAN

			*d++ = 0;

			*d++ = (VAR_5&0x1F)<<3;

			*d++ = (VAR_5&0x7E0)>>3;

			*d++ = (VAR_5&0xF800)>>8;

		#else

			*d++ = (VAR_5&0xF800)>>8;

			*d++ = (VAR_5&0x7E0)>>3;

			*d++ = (VAR_5&0x1F)<<3;

			*d++ = 0;

		#endif

	}

}

void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2)
{ const uint16_t *VAR_3; uint8_t *d = (uint8_t *)VAR_1; const uint16_t *VAR_4 = (uint16_t *)VAR_0; VAR_3 = VAR_4 + VAR_2/2; while(VAR_4 < VAR_3)
{ register uint16_t VAR_5; VAR_5 = *VAR_4++; #ifdef WORDS_BIGENDIAN
*d++ = 0; *d++ = (VAR_5&0x1F)<<3; *d++ = (VAR_5&0x7E0)>>3; *d++ = (VAR_5&0xF800)>>8; #else
*d++ = (VAR_5&0xF800)>>8; *d++ = (VAR_5&0x7E0)>>3; *d++ = (VAR_5&0x1F)<<3; *d++ = 0; #endif
} }