Expand description
Scaling the rendered frame to the window: area averaging when shrinking (supersampling anti-aliasing), and nearest / bilinear / sharp-bilinear when enlarging.
Structs§
- Tap 🔒
- Two neighbouring source samples and the blend weight between them.
Functions§
- fit
- Largest rectangle of aspect
aw:ahcentred inww x wh: (x, y, w, h). - mix 🔒
- resample
- Resamples
src(sw x sh, 0RGB) into thedw x dhrectangle at (ox,oy) ofdst(row stridestride). Pixels ofdstoutside the rectangle are left alone. - resample_
cols - Like
resample, but the source is column-major (src[x * sh + y], the renderer’s native layout), so the frame never has to be transposed. Works on bands of output rows so every source column is read as short contiguous runs.