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

Incremental encoding api #867

Open
birktj opened this issue Feb 11, 2019 · 1 comment
Open

Incremental encoding api #867

birktj opened this issue Feb 11, 2019 · 1 comment

Comments

@birktj
Copy link
Member

birktj commented Feb 11, 2019

With image-rs/image-png#102 and image-rs/image-tiff#23 I would like to:

  1. Create a tiff encoder with support for incremental encoding
  2. Add incremental encoding to the png encoder

However I am not sure what a good api for incremental encoding would be?

One possibility is to do something like ImageDecoder and simply create a writer that you can write image bytes to. An alternative would be to have some type of Encoder::write_row method.

I am mostly leaning towards a Write interface as it it looks the most like the existing write_image(..., image: &[u8]) methods that most decoders use.

However I figured I should ask if anyone have better ideas or comments on the proposed apis?

@lovasoa
Copy link
Contributor

lovasoa commented Mar 7, 2021

This would be very useful to me for dezoomify-rs

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