TgaExpandPalette
function · image · primitive
- Address
0x5a3820· 417 bytes, up to0x5a39c0- Signature
int __thiscall (void *this, uint32_t flags)- Meaning
- Replaces the palette indices with their colours
- Confidence
- verified, proof one
- Finding
- image/tga#palette-expansion
- Test
image::image_tga_palette_expand
Finding: Palette expansion in image: TGA
0x5a3820(flags) replaces the indices with colours: it allocates the new buffer, copies for each
pixel the palette entry (index − firstIndex) · entry (the entry size above), frees the indices
and the palette, and sets the type to 2, the colour map to none and bpp to attribute + 24.
The derivation is in the doc.
Callers 1
- TgaDecodeIndexed image
Callees 3
- TgaAppendAlpha image
- SMemAlloc storm
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.