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

Add deflate_make_dht() to the Develop branch #115

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

abalib
Copy link

@abalib abalib commented Oct 12, 2015

I propose to add the deflate_make_dht() function to deflate.c in the develop branch.

Caller supplies histograms of Literal/Length and Distance symbols.
The function creates a dynamic huffman table that deflate() would have inserted in a type 2 block.
A working example is found in examples/makedht.c that I based off of examples/zpipe.c.

Why do we need this new function?
If you are a student of zlib, OR when you are debugging your own inflate implementation, e.g. implemented in software or hardware, and you want to test it with various huffman tables that zlib would have produced. Few more details in the wiki https://github.com/abalib/zlib/wiki

hzhuang1 pushed a commit to Linaro/warpdrive-zlib that referenced this pull request Jul 31, 2019
jinfeihan57 pushed a commit to minchai23/zlib that referenced this pull request Sep 15, 2020
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.

1 participant