Grand Prix Legends CMAP Section Format by P.A.Flack 1998
contact: phil@flack99.freeserve.co.uk
last revised 21/Dec/'98
CMAP's, or Colour (Color if you must) Maps are 16 entry palettes with 24bit entries.  They look like so:

The Header:

Bytes Values Notes
0-3 
4-7 
8-11
"PAMC" 
0x00000000 
data size
Section Type (CMAP) 

size of following data
where data size has only ever been seen as 64 - i.e 16*4byte entries.

The rest of the section:

Bytes Values Notes
0-3 
4-7
8-11 
12-15 
16-19
20-23 
...
60-63
Col 0
Col 1
Col 2
Col 3
Col 4
Col 5
...
Col 15
First Colour argb
Second
..
 
 
 

Last Colour

The format of the colours is argb (4444) where a is the alpha, or translucency channel.  To read e.g. a, do alpha=(colour >> 12) & 0x0f.



contact: phil@flack99.freeserve.co.uk
last revised 21/Dec/'98