benilla-re systems structs docs

s_textTrueVision

global · unassigned

Address
0x85c854 · 18 bytes, up to 0x85c865
Type
char[18]
Meaning
Holds the TGA footer signature "TRUEVISION-XFILE."
Confidence
verified, proof one
Finding
gx/capture#tga-written

Finding: TGA written in gx: screen capture

0x5a43c0 accepts depth 32 or 24 and alpha bits 0 or 8, copies the buffer, and writes the header: image type 2 (uncompressed true colour), width and height, depth 0x20, descriptor 0x20 (top-left origin), the footer TRUEVISION-XFILE. (0x85c854), and sets the pixel byte count +0x3c to ((depth + 7) >> 3) * w * h, which is 4 * w * h. 0x5a4250 then compacts the pixels in place from four bytes to three, sets the depth to 0x18 and the descriptor's alpha bits to 0, and never updates +0x3c. 0x5a4810 writes 18 header bytes, the identification field and colour map when present (neither is), +0x3c pixel bytes and 26 footer bytes.

The derivation is in the doc.