BlpFreeScratch
function · image · orchestration
- Address
0x5a8100· 50 bytes, up to0x5a8131- Signature
int __thiscall (void *this, uint32_t level)- Meaning
- Frees the scratch buffer of the last level and checks the level
- 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 5
- TabardModel::GetUpperEmblemTexture ui
- TabardModel::GetLowerEmblemTexture ui
- GetPortraitAlphaMask ui
- SetPortraitTexture ui
- BlpDecodeChain image
Callees 2
- BlpCheckLevel image
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.