benilla-re systems structs docs

BlpDecodeStage1

function · image · orchestration

Address
0x5a8590 · 352 bytes, up to 0x5a86ef
Signature
int __thiscall (void *this, uint32_t fmt, uint32_t level, void *dst, uint32_t *scratch)
Meaning
Converts or copies one level by compression into a chain entry
Confidence
verified, proof one
Finding
image/blp#level-pointers-without-copies

Finding: Level pointers without copies in image: BLP

0x5a8430(fmt, &chain, start, flag) is the variant that can point the chain at the file instead of copying. When the caller supplies a chain, flag is non-zero and the data is DXT for a format outside 2 to 5 or raw, it sets entry i to fileImage + offsets[i] for each level whose size is non-zero.

The derivation is in the doc.

Callers 1

Callees 7

Calls and jumps by a bare address, from tables/calls.tsv.