MipAllocChain
function · image · host
- Address
0x5a4af0· 140 bytes, up to0x5a4b7b- Signature
uint32_t * __fastcall (uint32_t fmt, uint32_t w, uint32_t h, const char *file, uint32_t line)- Meaning
- Allocates a mip chain and fills its pointer table
- Confidence
- verified, proof one
- Finding
- image/mips#building-the-pointer-table
- Test
image::image_mip_alloc_populate
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 4
- TextureAllocMips gx
- BlpAllocChain image
- BlpDecodeChain image
- BlpDecodeChainShared image
Callees 4
- MipLevelSize image
- MipSumSizes image
- MipLevelCount image
- SMemAlloc storm
Calls and jumps by a bare address, from tables/calls.tsv.