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

Complete refactor #1

Open
auronandace opened this issue May 28, 2024 · 0 comments
Open

Complete refactor #1

auronandace opened this issue May 28, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@auronandace
Copy link
Owner

I have come to realise that the benefit of a streaming decoder/encoder is that the whole input data doesn't need to be loaded into memory to make progress for decoding/encoding.

Currently, this library requires that the entire input data (QOI image in bytes for the decoder, pixel values in bytes for the encoder) is already fully loaded in memory and the input data fed into the decoder/encoder is simply a slice pointing to where it is stored. This effectively nullifies the main advantage of making this library a streaming decoder/encoder.

This entire library needs to be refactored to allow feeding a series of bytes that represent incomplete data to the decoder/encoder. Then it will truly be a streaming decoder/encoder library.

I have some ideas on how to accomplish this which should make the library difficult to misuse.

@auronandace auronandace added the enhancement New feature or request label May 28, 2024
@auronandace auronandace self-assigned this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant