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

Zero-copy decoding #26

Open
3 tasks
randy408 opened this issue Aug 23, 2019 · 1 comment
Open
3 tasks

Zero-copy decoding #26

randy408 opened this issue Aug 23, 2019 · 1 comment
Labels
enhancement New feature or request performance

Comments

@randy408
Copy link
Owner

randy408 commented Aug 23, 2019

Zero-copy decoding consists of decompressing scanlines directly to the output buffer, this would be limited to non-interlaced images with the following PNG format -> output format combinations:

Format Bytes per pixel
Indexed/Gray 1/2/4bit 1
Gray 8-bit 1
Gray 16-bit 2
Gray alpha 8-bit 2
Gray alpha 16-bit 4
RGB 8-bit 3
RGB 16-bit 6
RGBA 8-bit 4
RGBA 16-bit 8

This may reduce performance (or not work, depending on optimizations and platform) because the scanlines are not always aligned.

@randy408
Copy link
Owner Author

Saving this here for future reference: madler/zlib#149 (comment)

@randy408 randy408 removed this from the 0.7.0 milestone Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance
Projects
Development

No branches or pull requests

1 participant