|
void Show24Bmp(unsigned char * BmpBuffer)
{
unsigned char r,g,b;
unsigned int high,low;
for (i=0;i<240*320;i++)
{
r = BmpBuffer[i*3+2] & 0xF8;
g = BmpBuffer[i*3+1] & 0xFC;
b = BmpBuffer[i*3+0] & 0xF8;
high = r | (g>>5);
low = (g<<3) | (b>>3);
pLCDBuffer24 = (high<<8)|low;
}
}
S3C2410,具体可以去网上查查这方面的资料 |
|