Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does lodepng support multithreading? #152

Open
wuyang-dl opened this issue Oct 26, 2021 · 1 comment
Open

does lodepng support multithreading? #152

wuyang-dl opened this issue Oct 26, 2021 · 1 comment

Comments

@wuyang-dl
Copy link

hi, can you tell me does lodepng support multithreading?

tks!

@rafa-br34
Copy link

I don't know if encoding a single image with multiple threads is possible, but if you need to encode multiple images, yes it is.
This is an example of how you could do it, it can be made much better (allocating a buffer for each thread, keeping the threads alive, etc).
Hopefully this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants