benilla-re systems structs docs

RasterVerticalSweepSpan

function · unassigned · primitive

Address
0x7dac90 · 239 bytes, up to 0x7dad7e
Signature
void __fastcall (void *raster, int32_t y, int32_t x1, int32_t x2, void *left, void *right)
Meaning
Sets a row's pixels between two crossings, one pixel when the gap is within the jitter
Confidence
verified, proof one
Finding
font/freetype#mono-scan-conversion
Test
font::vertical_span_difftest

Finding: Mono scan conversion in font: the FreeType calls

raster1 sets its precision from the outline's high-precision flag: with it, 10 bits per pixel and a jitter of 24 units, 24/1024 px; without it, 6 bits and a jitter of 2, 2/64 px. It sweeps the rows with drop-out control 2 and then, unless the outline flag 0x200 is set, the columns. A row span from x1 to x2 fills the pixels from ceil(x1) to floor(x2), but only pixel ceil(x1) when x2 − x1 − 1 px is at most the jitter; a span past either end of the row fills nothing, and one partly outside is clamped to the row.

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.