pub fn par_simd_blur<T: Send + Sync, Bsimd: StackBlurrable + Send + Sync, Bsingle: StackBlurrable + Send + Sync, const LANES: usize>(
    buffer: &mut ImgRefMut<'_, T>,
    radius: usize,
    to_blurrable_simd: impl Fn([&T; LANES]) -> Bsimd + Sync,
    to_pixel_simd: impl Fn(Bsimd) -> [T; LANES] + Sync,
    to_blurrable_single: impl Fn(&T) -> Bsingle + Sync,
    to_pixel_single: impl Fn(Bsingle) -> T + Sync
) where
    LaneCount<LANES>: SupportedLaneCount
Expand description

Blurs a buffer with SIMD in parallel, assuming one element per pixel.

The provided closures are used to convert from the buffer’s native pixel format to StackBlurrable values that can be consumed by StackBlur.