benilla-re systems structs docs

CopyBgra

function · image · primitive

Address
0x5a5480 · 139 bytes, up to 0x5a550a
Signature
void __fastcall (void *arg1, const void *src, uint32_t srcStride, void *dst, uint32_t dstStride)
Meaning
Copies BGRA8888 pixels
Confidence
verified, proof one
Finding
image/convert#copies-and-blends
Test
image::image_bgra8888_copy

Finding: Copies and blends in image: pixel format conversion

The BGRA copy moves w · h dwords in one run when both strides equal 4 · w, else row by row. The alpha key copy 0x5a5510 writes (dst & 0xff000000) | (src & 0xffffff) for each pixel whose source alpha is not 0. The blend 0x5a5590 skips a source alpha of 0, treats 0xff like the key copy, and otherwise sets each colour channel to dst + ((src − dst) · a >> 8) and keeps the destination alpha. The 16-bit copy does the same moves with 2 · w.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 0

None by a direct call or jump.

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