Image Buffer Formats
The format of standard hardware image buffers (in little-endian machines) are as follows :
|MSB LSB| |Byte 3| |Byte 2| |Byte 1| |Byte 0| 24 bpp : 00000000 RRRRRRRR GGGGGGGG BBBBBBBB 16 bpp : RRRRRGGG GGGBBBBB (RGB 565) 16 bpp : 0RRRRRGG GGGBBBBB (RGB 555) 8 bpp : CCCCCCCC 0 = always zero bits R = red bits G = green bits B = blue bits C = color index bits |
|MSB LSB| |Byte 3| |Byte 2| |Byte 1| |Byte 0| 00000000 RRRRR000 GGGGG000 BBBBB000 |