benilla-re systems structs docs

ConvertPaletteRgb565

function · image · primitive

Address
0x5a9860 · 529 bytes, up to 0x5a9a70
Signature
void __fastcall (void *arg1, uint32_t unused, void *dst, const uint8_t *src, uint32_t w, uint32_t h)
Meaning
Converts indices to RGB565 with Floyd-Steinberg dithering
Confidence
verified, proof one
Finding
image/convert#dithered-16-bit-palettes
Test
image::image_palconv_fs_rgb565

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.