benilla-re systems structs docs

BlitKeyed

function · charactermodel · primitive

Address
0x477db0 · 367 bytes, up to 0x477f1e
Signature
void __stdcall (void *src, void *dst, void *dstPos, void *srcPos, void *size, void *desc)
Meaning
Copies the pixels of a rectangle whose 2-bit coverage is not 0 into every mip level
Confidence
verified, proof one
Finding
charactermodel/composite#key-kernel
Test
charactermodel::cm_fanout_f_blit_masked

Finding: Key kernel in charactermodel: composite

0x477db0 has the same geometry but copies a pixel only when its coverage is not 0. The coverage is a 2-bit plane that starts after the source level's colour rows, at source level + size.h · source pitch, with the pixels counted continuously from the first one of the rectangle: the pixel number i has its coverage in byte i >> 2, selected by the mask {3, 0xc, 0x30, 0xc0}[i & 3]. A source whose width differs from the rectangle's width has its coverage read at the wrong pixels.

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.