Description
Source
Call Graph
Start Line: 308
void RGB565toBGR555(unsigned char *fileSource, unsigned char *fileDestination, unsigned int width, unsigned int height, unsigned char bpp)
{
unsigned int i;
unsigned int j;
unsigned int row;
for (i=0; i < height*(bpp/8); i++) {
row = (i*width*(bpp/8));
for (j=0; j <= width*(bpp/8); j+=2) {
fileDestination[row+j] = ((fileSource[row+j+1]>>3)&0x1F)
| (fileSource[row+j]&0xE0);
fileDestination[row+j+1] = (fileSource[row+j+1]&0x03)
| ((fileSource[row+j]&0x1F)<<2);
}
}
}