1 === Simple Image Format ===
3 U16 Magic 0x51F0 - This determines the endianness of the file
5 > 0-2: Compression (0: Uncompressed, 1: RLE, 2: zlib, 3: RLE-Channel)
6 > 3-5: Format (0: ARGB, 1: RGB
12 === Compression Formats ===
14 The file data is a linear sequence of Width * Height 32-bit ARGB
15 words (in file endianness, determined by the magic)
18 7-bit length followed by a 32-bit value that is repeated `n` times
19 (if bit 7 of the length byte is set, the next `n` 32-bit words are
23 The image data is a zlib stream of 32-bit xRGB words
26 The data is the alpha values, followed by red, then green, then blue
27 encoded as RLE with a 7-bit length and a verbatim flag (same as mode
28 1, except with 8-bit values instead of 32-bit)