benilla-re systems structs docs

ExpandPaletteAlpha8

function · image · primitive

Address
0x5a8790 · 55 bytes, up to 0x5a87c6
Signature
void __fastcall (void *arg1, uint32_t unused, void *dst, const uint8_t *src, uint32_t count)
Meaning
Expands indices to BGRA8888 with alpha from a plane
Confidence
verified, proof one
Finding
image/convert#palette-to-bgra
Test
image::image_palconv_expand_bgra8888_a8

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 0

None by a direct call or jump.

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