Skip to main content

convolve_x

Function convolve_x 

Source
pub(crate) fn convolve_x(
    src: &Pixmap,
    dst: &mut Pixmap,
    src_width: u16,
    src_height: u16,
    kernel: &[f32],
    radius: u8,
    edge_mode: EdgeMode,
)
Expand description

Apply horizontal blur pass (1D convolution along x-axis).

For each output pixel, computes a weighted sum of horizontally neighboring pixels using the Gaussian kernel. Handles edge cases according to the specified edge mode. Writes results to a destination buffer to avoid overwriting source data.