void rgb15tobgr15(const uint8_t *src, uint8_t *dst, unsigned int src_size)

{

	unsigned i;

	unsigned num_pixels = src_size >> 1;

	

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

	{

	    unsigned b,g,r;

	    register uint16_t rgb;

	    rgb = src[2*i];

	    r = rgb&0x1F;

	    g = (rgb&0x3E0)>>5;

	    b = (rgb&0x7C00)>>10;

	    dst[2*i] = (b&0x1F) | ((g&0x1F)<<5) | ((r&0x1F)<<10);

	}

}

void rgb15tobgr15(const uint8_t *src, uint8_t *dst, unsigned int src_size)

{

	unsigned i;

	unsigned num_pixels = src_size >> 1;

	

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

	{

	    unsigned b,g,r;

	    register uint16_t rgb;

	    rgb = src[2*i];

	    r = rgb&0x1F;

	    g = (rgb&0x3E0)>>5;

	    b = (rgb&0x7C00)>>10;

	    dst[2*i] = (b&0x1F) | ((g&0x1F)<<5) | ((r&0x1F)<<10);

	}

}

	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned i; 	unsigned num_pixels = src_size >> 1; 	unsigned i; 	unsigned num_pixels = src_size >> 1; 	unsigned i; 	unsigned num_pixels = src_size >> 1; void rgb15tobgr15(const uint8_t *src, uint8_t *dst, unsigned int src_size) 	unsigned i; 	unsigned num_pixels = src_size >> 1; 	unsigned i;
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)

{

	unsigned VAR_3;

	unsigned VAR_4 = VAR_2 >> 1;

	

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

	{

	    unsigned VAR_5,VAR_6,VAR_7;

	    register uint16_t VAR_8;

	    VAR_8 = VAR_0[2*VAR_3];

	    VAR_7 = VAR_8&0x1F;

	    VAR_6 = (VAR_8&0x3E0)>>5;

	    VAR_5 = (VAR_8&0x7C00)>>10;

	    VAR_1[2*VAR_3] = (VAR_5&0x1F) | ((VAR_6&0x1F)<<5) | ((VAR_7&0x1F)<<10);

	}

}

void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)
{ unsigned VAR_3; unsigned VAR_4 = VAR_2 >> 1; for(VAR_3=0; VAR_3<VAR_4; VAR_3++) { unsigned VAR_5,VAR_6,VAR_7; register uint16_t VAR_8; VAR_8 = VAR_0[2*VAR_3]; VAR_7 = VAR_8&0x1F; VAR_6 = (VAR_8&0x3E0)>>5; VAR_5 = (VAR_8&0x7C00)>>10; VAR_1[2*VAR_3] = (VAR_5&0x1F) | ((VAR_6&0x1F)<<5) | ((VAR_7&0x1F)<<10); } }