Revert vertical blur to not use rayon.
This commit is contained in:
parent
053f3ed739
commit
74a588046a
12
src/blur.rs
12
src/blur.rs
@ -106,12 +106,12 @@ impl Blur {
|
|||||||
let top_off = ((i + radius) & (height - 1)) * width;
|
let top_off = ((i + radius) & (height - 1)) * width;
|
||||||
let top_row = &src[top_off..top_off + width];
|
let top_row = &src[top_off..top_off + width];
|
||||||
|
|
||||||
(dst_row, &mut self.row_buffer, bottom_row, top_row)
|
for (dst, buf, bottom, top) in
|
||||||
.into_par_iter()
|
multizip((dst_row, &mut self.row_buffer, bottom_row, top_row))
|
||||||
.for_each(|(dst, buf, bottom, top)| {
|
{
|
||||||
*buf += top - bottom;
|
*buf += top - bottom;
|
||||||
*dst = *buf * weight;
|
*dst = *buf * weight;
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user