BlitBlended
function · charactermodel · primitive
- Address
0x477f20· 572 bytes, up to0x47815b- Signature
void __stdcall (void *src, void *dst, void *dstPos, void *srcPos, void *size, void *desc)- Meaning
- Blends a rectangle into every mip level by its 2-bit coverage in thirds
- Confidence
- verified, proof one
- Finding
- charactermodel/composite#blend-kernel
- Test
charactermodel::cm_fanout_f_blit_blend
Finding: Blend kernel in charactermodel: composite
0x477f20 reads the same plane, shifts the masked bits down by {0, 2, 4, 6}[i & 3] to a level v of 0 to 3 and writes per pixel by level: 0 keeps the target, 3 copies the source, and 1 or 2 blend per channel. The blend of a channel is
(source · SW + target · DW) >> 16, masked to the channel, with SW = {0, 0x5555, 0xaaaa, 0x10000}[v] and DW = SW[3 - v], on the green (0x7e0), blue (0x1f) and red (0xf800) fields of the 16-bit pixel.
The derivation is in the doc.
Callers 1
- BlitByFormat charactermodel
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.