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

{

	unsigned i;

	unsigned num_pixels = src_size;

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

	{

	    unsigned b,g,r;

	    register uint8_t rgb;

	    rgb = src[i];

	    r = (rgb&0x07);

	    g = (rgb&0x38)>>3;

	    b = (rgb&0xC0)>>6;

	    dst[i] = ((b<<1)&0x07) | ((g&0x07)<<3) | ((r&0x03)<<6);

	}

}

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

{

	unsigned i;

	unsigned num_pixels = src_size;

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

	{

	    unsigned b,g,r;

	    register uint8_t rgb;

	    rgb = src[i];

	    r = (rgb&0x07);

	    g = (rgb&0x38)>>3;

	    b = (rgb&0xC0)>>6;

	    dst[i] = ((b<<1)&0x07) | ((g&0x07)<<3) | ((r&0x03)<<6);

	}

}

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

{

	unsigned VAR_3;

	unsigned VAR_4 = VAR_2;

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

	{

	    unsigned VAR_5,VAR_6,VAR_7;

	    register uint8_t VAR_8;

	    VAR_8 = VAR_0[VAR_3];

	    VAR_7 = (VAR_8&0x07);

	    VAR_6 = (VAR_8&0x38)>>3;

	    VAR_5 = (VAR_8&0xC0)>>6;

	    VAR_1[VAR_3] = ((VAR_5<<1)&0x07) | ((VAR_6&0x07)<<3) | ((VAR_7&0x03)<<6);

	}

}

void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)
{ unsigned VAR_3; unsigned VAR_4 = VAR_2; for(VAR_3=0; VAR_3<VAR_4; VAR_3++) { unsigned VAR_5,VAR_6,VAR_7; register uint8_t VAR_8; VAR_8 = VAR_0[VAR_3]; VAR_7 = (VAR_8&0x07); VAR_6 = (VAR_8&0x38)>>3; VAR_5 = (VAR_8&0xC0)>>6; VAR_1[VAR_3] = ((VAR_5<<1)&0x07) | ((VAR_6&0x07)<<3) | ((VAR_7&0x03)<<6); } }