image-rs / image

Encoding and decoding images in Rust
Apache License 2.0
5.01k stars 619 forks source link

Would it be possible to use rayon to add parallel iterators over the image pixels or add multithreading from scratch? #832

Closed arthmis closed 8 months ago

arthmis commented 6 years ago

Would adding multi-threading or parallel iterators to access pixels be feasible? Is it potentially planned for the future?

jjhbw commented 6 years ago

I wondered about this too. AFAIK, iterating over pixels in parallel currently requires ugly code (uglier than a Rayon iterator, at least).

arthmis commented 6 years ago

Is it necessary to add multi-threading? I was thinking about how it would benefit the imageproc crate, at least on large images, but maybe it would be better handled by the GPU.

ghost commented 1 year ago

i created this https://github.com/zzwxh/parallel_image/blob/main/src/lib.rs

fintelia commented 8 months ago

Fixed in https://github.com/image-rs/image/pull/2058