pub(crate) fn apply_blur(
pixmap: &mut Pixmap,
scratch: &mut Pixmap,
n_decimations: usize,
kernel: &[f32],
edge_mode: EdgeMode,
)Expand description
Apply Gaussian blur using multi-scale decimation and upsampling.
Uses a precomputed decimation plan and kernel for optimal performance.
Operates in-place using a single pixmap buffer with logical dimension tracking
to minimize memory allocations. For n_decimations=0, applies direct convolution.
The scratch buffer is used for separable convolution and must be at least as
large as the source pixmap.