benilla-re systems structs docs

s_nibbleExpand

global · image

Address
0x85c8b0 · 16 bytes, up to 0x85c8bf
Type
const uint8_t[16]
Meaning
Holds each 4-bit value times 0x11
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.