benilla-re systems structs docs

BlpParse

function · image · primitive

Address
0x5a83b0 · 125 bytes, up to 0x5a842c
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).

offsetholds
+0x00the decoded chain, 0 until built
+0x04, +0x08magic BLP2, version 1
+0x0ccompression: 1 palette, 2 DXT, 3 raw BGRA
+0x0d, +0x0e, +0x0falpha depth, alpha type, has mips
+0x10, +0x14width, height
+0x1816 level offsets
+0x5816 level sizes
+0x98256 palette entries, BGRA
+0x498the file image, 0 after a chain decode
+0x49c, +0x4a0, +0x4b00, level count, temporary buffer of the last level

The derivation is in the doc.

Callers 3

Callees 3

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