TgaReadPixels
function · image · host
- Address
0x5a3c80· 229 bytes, up to0x5a3d64- Signature
int __thiscall (void *this, uint32_t flags)- Meaning
- Reads uncompressed pixels into a buffer with room for an alpha plane
- Confidence
- verified, proof one
- Finding
- image/tga#decoding
Finding: Decoding in image: TGA
0x5a3a30(flags) decodes into +0x04. Image types 1 and 9 go to the colour-mapped path, 2 to
the plain path and 10 to the run-length path; 0, 3 and 11 and the rest are refused. Flag bit 0
adds an opaque alpha channel where the file has none; flag bit 1 expands a palette to colours.
The derivation is in the doc.
Callers 2
- TgaDecodeIndexed image
- TgaDecode image
Callees 5
- TgaPixelOffset image
- TgaAppendAlpha image
- SMemAlloc storm
- SFile::Read storm
- SFile::SetFilePointer storm
Calls and jumps by a bare address, from tables/calls.tsv.