benilla-re systems structs docs

s_decodeDxtIndex

global · image

Address
0x5a80c4 · 8 bytes, up to 0x5a80cb
Type
const uint8_t[8]
Meaning
Holds the case of each format 0 to 7 in the DXT switch of 0x5a7f00
Confidence
verified, proof one
Finding
image/blp#decoding-one-level

Finding: Decoding one level in image: BLP

0x5a7f00(fmt, level, &out, &size) produces the pixels of a level in the graphics layer's format fmt and returns 1. It needs the file pointer, a valid level and a non-zero level size; the compression chooses the path.

compressionresult
1 palettea new buffer, converted by 0x5a8ce0
2 DXT, fmt 0, 1, 7the file's own bytes, no copy
2 DXT, fmt 2 to 5a new buffer, converted through the matrix
2 DXT, fmt 6 or above 7nothing written, returns 1
3 rawthe file's own bytes, no copy

The derivation is in the doc.