TgaClose
function · image · orchestration
- Address
0x5a3600· 88 bytes, up to0x5a3657- Signature
void __thiscall (void *this)- Meaning
- Frees the pixels, closes the file and frees the ID buffer and palette
- Confidence
- verified, proof one
- Finding
- image/tga#image-record
Finding: Image record in image: TGA
An image record is 0x44 bytes. The TGA header is read straight into +0x08, so its fields sit at
the offsets of the file's own layout plus 8.
| offset | holds |
|---|---|
+0x00 | file handle |
+0x04 | pixels, 0 until decoded |
+0x08 | ID length |
+0x09, +0x0a | colour map type, image type |
+0x0b, +0x0d, +0x0f | colour map first index, length, entry size in bits |
+0x14, +0x16 | width, height |
+0x18, +0x19 | bits per pixel; descriptor |
+0x1c | ID buffer |
+0x20 to +0x39 | the 26-byte footer |
+0x3c, +0x40 | pixel bytes, palette |
The derivation is in the doc.
Callers 7
- WriteScreenshot unassigned
- TextureDecodeTga gx
- TextureReadTgaMips gx
- TextureCreateFromTga gx
- GetPortraitAlphaMask ui
- TgaOpen image
- AtlasPage::Dump font
Callees 3
- TgaFreeId image
- SMemFree storm
- SFile::Close storm
Calls and jumps by a bare address, from tables/calls.tsv.