BlpCheckLevel
function · image · primitive
- Address
0x5a7ec0· 50 bytes, up to0x5a7ef1- 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.
| compression | result |
|---|---|
| 1 palette | a new buffer, converted by 0x5a8ce0 |
2 DXT, fmt 0, 1, 7 | the file's own bytes, no copy |
2 DXT, fmt 2 to 5 | a new buffer, converted through the matrix |
2 DXT, fmt 6 or above 7 | nothing written, returns 1 |
| 3 raw | the file's own bytes, no copy |
The derivation is in the doc.
Callers 7
- BlpGetLevel image
- BlpDecodeLevel image
- BlpFreeScratch image
- BlpDecodeChain image
- BlpDecodeChainShared image
- BlpDecodeStage1 image
- BlpCheckLevel2 image
Callees 1
- BlpHasMips image
Calls and jumps by a bare address, from tables/calls.tsv.