MipFillChain
function · image · primitive
- Address
0x5a4bb0· 82 bytes, up to0x5a4c01- Signature
void __fastcall (uint32_t fmt, uint32_t w, uint32_t h, uint32_t *base)- Meaning
- Fills the pointer table of a caller-supplied chain
- Confidence
- verified, proof one
- Finding
- image/mips#building-the-pointer-table
- Test
image::image_mip_populate_existing
Finding: Building the pointer table in image: mip geometry
0x5a4af0(fmt, w, h, file, line) allocates a chain with SMemAlloc using the caller's file and line,
fills the pointer table and returns it; 0x5a4bb0(fmt, w, h, base) fills a table the caller
supplies. Entry i is base + 4 · count + Σ levelSize(j) for j < i.
The derivation is in the doc.
Callers 3
- TextureDecodeTga gx
- BlpDecodeChain image
- BlpDecodeChainShared image
Callees 2
- MipLevelSize image
- MipLevelCount image
Calls and jumps by a bare address, from tables/calls.tsv.