From 74a588046ac3641452ab636da49dcbb8c7b8bf5c Mon Sep 17 00:00:00 2001 From: mindv0rtex Date: Sun, 28 Feb 2021 14:07:04 -0500 Subject: [PATCH] Revert vertical blur to not use rayon. --- src/blur.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/blur.rs b/src/blur.rs index 3d42e20..10c1eef 100644 --- a/src/blur.rs +++ b/src/blur.rs @@ -106,12 +106,12 @@ impl Blur { let top_off = ((i + radius) & (height - 1)) * width; let top_row = &src[top_off..top_off + width]; - (dst_row, &mut self.row_buffer, bottom_row, top_row) - .into_par_iter() - .for_each(|(dst, buf, bottom, top)| { - *buf += top - bottom; - *dst = *buf * weight; - }); + for (dst, buf, bottom, top) in + multizip((dst_row, &mut self.row_buffer, bottom_row, top_row)) + { + *buf += top - bottom; + *dst = *buf * weight; + } } } }