chachalaca / huffman

Huffman coding C++ implementation
MIT License
3 stars 1 forks source link

No function to save Huffman tree #3

Open crookedbard opened 7 years ago

crookedbard commented 7 years ago

There is no function that would allow convert Huffman tree to stream and save it somewhere. For example if I would save the code (vector) stream to file, and later on I would need to decode it. I could not achieve that if there is no Huffman tree saved anywhere, I need to use the same Huffman constructor with which I have created the "code" values. And that is very limited.

chachalaca commented 7 years ago

@crookedbard Thank you for your feedback, decoding is currently not implemented. However, if you need decoding algorithm, see this repo https://github.com/chachalaca/ImgFormat — it is another Huffman coding implementation which also includes decompression.