libsai
libsai copied to clipboard
Deciphering mask data.
Ok, so I've gotten pretty far with deciphering transparency mask data:
- Masks are stored as 16bit, not 8bit like the color raster data.
- The highest value of a given mask seems to be 16447???
This isn't as important as getting big raster data to load, but I am terribly confused why the maximum value is 16447...
16447 has a bit pattern 0100000000111111 which might imply some kind of alternate encoding is going on such as fixed point or some other type of packed binary format or something. The last 6 bits probably actually encodes the pixel intensity.