The pal (formerly wtf2) value indicates the presence of a palette: 0x1000 if
present; 0 otherwise. Then, immediately following the offsets comes the
palette header: 2 bytes always zero, 2 bytes for the number of entries.
Entries are sequential starting from zero.