BlpParse
function · image · primitive
- Address
0x5a83b0· 125 bytes, up to0x5a842c- Signature
int __thiscall (void *this, const void *file)- Meaning
- Copies and checks the file header and sets the level count
- Confidence
- verified, proof one
- Finding
- image/blp#reader-record
Finding: Reader record in image: BLP
A reader record is 0x4b4 bytes. The file header is copied to +0x04, so a header field sits at its
file offset plus 4 (the magic at +4 is file offset 0).
| offset | holds |
|---|---|
+0x00 | the decoded chain, 0 until built |
+0x04, +0x08 | magic BLP2, version 1 |
+0x0c | compression: 1 palette, 2 DXT, 3 raw BGRA |
+0x0d, +0x0e, +0x0f | alpha depth, alpha type, has mips |
+0x10, +0x14 | width, height |
+0x18 | 16 level offsets |
+0x58 | 16 level sizes |
+0x98 | 256 palette entries, BGRA |
+0x498 | the file image, 0 after a chain decode |
+0x49c, +0x4a0, +0x4b0 | 0, level count, temporary buffer of the last level |
The derivation is in the doc.
Callers 3
- TextureDecodeFileBytes gx
- TextureBuildFromBlp gx
- BlpOpen image
Callees 3
- MipLevelCount image
- BlpReset image
- BlpHasMips image
Calls and jumps by a bare address, from tables/calls.tsv.