Name | Size | Description | |
Header | 8 Bytes | ||
Signature | 4 Bytes | 0x12 0x00 0x00 0x00 | |
Reserved | 4 Bytes | 0x02 0x00 0x00 0x00 | |
Palette Info | 12+ Bytes | ||
Length of the CLUT Data | 4 Bytes | This is the length of the CLUT Data + 12 (accounting for 12 bytes before the CLUT Data starts). | |
Palette Org X | 2 Bytes | X coordinate in frame buffer. | |
Palette Org Y | 2 Bytes | Y coordinate in frame buffer. | |
Number of Colors in CLUT | 2 Bytes | Depends on the BPP Mode. The value for 4 bpp is 16, and for 8 bpp is 256. | |
Number of CLUTs | 2 Bytes | This is the number of CLUT groupings. | |
CLUT Data | Number of CLUTs * Number of Colors in CLUT * 2 | ||
Each CLUT entry is 2 Bytes and all the colors are stored in the order TBGR (Transparency, Blue, Green, and Red). The Transparency bit is only 1 bit, while the others are 5 bits each.