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

Faster decoding of fdeflate encoded PNGs #373

Merged
merged 2 commits into from Feb 9, 2023

Conversation

fintelia
Copy link
Contributor

When a PNG has been encoded with fdeflate compression method added in #364, the decoder can make some assumptions that improve decoding performance. This PR adds a check on whether fdeflate compression was used and decompresses the image data accordingly.

src/decoder/zlib.rs Outdated Show resolved Hide resolved
Copy link
Member

@HeroicKatora HeroicKatora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I let this stew for a while but it looks perfectly fine to me with the comments.

@fintelia fintelia merged commit 43646cb into image-rs:master Feb 9, 2023
@fintelia fintelia deleted the finflate3 branch October 9, 2023 18:44
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

Successfully merging this pull request may close these issues.

None yet

2 participants