Skip to main content

upscale_y

Function upscale_y 

Source
fn upscale_y(
    src: &mut Pixmap,
    src_width: u16,
    src_height: u16,
    edge_mode: EdgeMode,
)
Expand description

Vertical upsampling pass using [0.75, 0.25] interpolation with logical dimensions.

Doubles the logical height using phase-aligned interpolation. Each input pixel generates two output pixels with different weights based on their distance from the downsampled pixel’s center position. Operates in-place by processing backwards to avoid overwriting source data.