MCPcopy Create free account
hub / github.com/DFHack/dfhack / HuffmanTree_cleanup

Function HuffmanTree_cleanup

depends/lodepng/lodepng.cpp:674–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674static void HuffmanTree_cleanup(HuffmanTree* tree) {
675 lodepng_free(tree->codes);
676 lodepng_free(tree->lengths);
677 lodepng_free(tree->table_len);
678 lodepng_free(tree->table_value);
679}
680
681/* amount of bits for first huffman table lookup (aka root bits), see HuffmanTree_makeTable and huffmanDecodeSymbol.*/
682/* values 8u and 9u work the fastest */

Callers 4

getTreeInflateDynamicFunction · 0.85
inflateHuffmanBlockFunction · 0.85
deflateDynamicFunction · 0.85
deflateFixedFunction · 0.85

Calls 1

lodepng_freeFunction · 0.85

Tested by

no test coverage detected