Replies: 1 comment 1 reply
-
You could try something like: let img = DynamicImage::ImageRgba8(ImageBuffer::from_par_fn(width, height, |x,y| {
image_buffer_chunks[(x/3) + (y/3) * grid_row_count].get_pixel(x%3, y%3)
})); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a encoded image which parallel decoded into many of 3 by 3 chunk of image, but it will need compose them in single thread later something like.
Is there anyway to doing this in single iter or I'm missing something? current approach is not even quicker then doing whole process in single thread.
Maybe it in rayon's iter, but i can't find it.
Beta Was this translation helpful? Give feedback.
All reactions