benilla-re systems structs docs

ConvertPaletteRgb565A2

function · image · primitive

Address
0x5a9a80 · 811 bytes, up to 0x5a9daa
Signature
void __thiscall (void *this, void *dst, const uint8_t *src, uint32_t w, uint32_t h)
Meaning
Converts indices to RGB565 with dithering and a 2-bit alpha plane
Confidence
verified, proof one
Finding
image/convert#dithered-16-bit-palettes
Test
image::image_palconv_fs_rgb565_a2

Finding: Dithered 16-bit palettes in image: pixel format conversion

The four live converters turn indices into 16-bit colour with Floyd-Steinberg error diffusion: 0x5a92d0 RGB444 with alpha merged to 4444, 0x5a9580 RGB555 with alpha merged to 1555, 0x5a9860 RGB565 without alpha, and 0x5a9a80 RGB565 followed by a 2-bit alpha plane.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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