benilla-re systems structs docs

TgaDecodeRle

function · image · primitive

Address
0x5a3ed0 · 229 bytes, up to 0x5a3fb4
Signature
int __thiscall (void *this, const uint8_t *packets, uint8_t *out)
Meaning
Expands run and raw packets until the image is full
Confidence
verified, proof one
Finding
image/tga#run-length-packets
Test
image::image_tga_rle_decode

Finding: Run-length packets in image: TGA

A control byte with bit 7 set repeats the next pixel (b & 0x7f) + 1 times; a clear bit 7 copies b + 1 pixels. The decode ends when width · height pixels have been written, and the image type then drops by 8.

The derivation is in the doc.

Callers 1

Callees 1

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