CLT Palette Format

Header

NameSizeDescription
Header8 Bytes
 Signature4 Bytes0x12 0x00 0x00 0x00
 Reserved4 Bytes0x02 0x00 0x00 0x00
Palette Info12+ Bytes
 Length of the CLUT Data4 BytesThis is the length of the CLUT Data + 12 (accounting for 12 bytes before the CLUT Data starts).
 Palette Org X2 BytesX coordinate in frame buffer.
 Palette Org Y2 BytesY coordinate in frame buffer.
 Number of Colors in CLUT2 BytesDepends on the BPP Mode. The value for 4 bpp is 16, and for 8 bpp is 256.
 Number of CLUTs2 BytesThis is the number of CLUT groupings.
 CLUT DataNumber of CLUTs * Number of Colors in CLUT * 2

CLUTs

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.