Skip to main content

upscale_x

Function upscale_x 

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

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

Doubles the logical width 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.