Skip to content

Commit 81b3fe6

Browse files
Add rayon parallel iterators (#2058)
1 parent 483d3b9 commit 81b3fe6

4 files changed

Lines changed: 503 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ color_quant = "1.1"
4343
exr = { version = "1.5.0", optional = true }
4444
qoi = { version = "0.4", optional = true }
4545
libwebp = { package = "webp", version = "0.2.2", default-features = false, optional = true }
46+
rayon = { version = "1.7.0", optional = true }
4647

4748
[dev-dependencies]
4849
crc32fast = "1.2.0"

src/buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ where
888888
Container: Deref<Target = [P::Subpixel]> + DerefMut,
889889
{
890890
// TODO: choose name under which to expose.
891-
fn inner_pixels_mut(&mut self) -> &mut [P::Subpixel] {
891+
pub(crate) fn inner_pixels_mut(&mut self) -> &mut [P::Subpixel] {
892892
let len = Self::image_buffer_len(self.width, self.height).unwrap();
893893
&mut self.data[..len]
894894
}

0 commit comments

Comments
 (0)