benilla-re systems structs docs

BlpCheckLevel

function · image · primitive

Address
0x5a7ec0 · 50 bytes, up to 0x5a7ef1
Signature
int __thiscall (void *this, uint32_t level)
Meaning
Returns whether a level exists: level 0, or below the level count with mips
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.

Callers 7

Callees 1

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