benilla-re systems structs docs

TgaPixelOffset

function · image · primitive

Address
0x5a3b40 · 59 bytes, up to 0x5a3b7a
Signature
uint32_t __thiscall (void *this)
Meaning
Returns the file offset of the pixel data
Confidence
verified, proof one
Finding
image/tga#image-record
Test
image::image_tga_pixel_offset

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.

offsetholds
+0x00file handle
+0x04pixels, 0 until decoded
+0x08ID length
+0x09, +0x0acolour map type, image type
+0x0b, +0x0d, +0x0fcolour map first index, length, entry size in bits
+0x14, +0x16width, height
+0x18, +0x19bits per pixel; descriptor
+0x1cID buffer
+0x20 to +0x39the 26-byte footer
+0x3c, +0x40pixel bytes, palette

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.