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

Support in-place decoding #127

Open
fintelia opened this issue Apr 10, 2021 · 0 comments
Open

Support in-place decoding #127

fintelia opened this issue Apr 10, 2021 · 0 comments

Comments

@fintelia
Copy link
Contributor

Currently, decoding an image allocates a new vector to store the output data. This is unfortunate because it can result in extra copies, for instance in the image crate:

https://github.com/image-rs/image/blob/6e0cd31a5287dd589d2e78ae33c1f720c77a6863/src/codecs/tiff.rs#L198

It would be better if there was an API that took a mutable slice and wrote image data into that.

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

1 participant