The Header:
Bytes | Values | Notes |
0-3
4-7 8-11 |
"PAMC"
0x00000000 data size |
Section Type (CMAP)
0 size of following data |
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.