benilla-re systems structs docs

ConvertPalette

function · image · orchestration

Address
0x5a8ce0 · 413 bytes, up to 0x5a8e7c
Signature
int __thiscall (void *this, uint32_t fmt, uint32_t level, void *dst, const void *src)
Meaning
Dispatches a palette level to the converter of a device format
Confidence
verified, proof one
Finding
image/convert#palette-to-bgra

Finding: Palette to BGRA in image: pixel format conversion

0x5a8790(dst, src, count) expands byte indices to BGRA dwords from the record's palette at +0x98 and then overwrites each alpha byte from a following alpha plane. 0x5a87d0 writes alpha 0xff and then fills the alpha from the plane by the record's alpha depth.

The derivation is in the doc.

Callers 2

Callees 6

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