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

Function getTreeInflateFixed

depends/lodepng/lodepng.cpp:1123–1127  ·  view source on GitHub ↗

get the tree of a deflated block with fixed tree, as specified in the deflate specification Returns error code.*/

Source from the content-addressed store, hash-verified

1121/*get the tree of a deflated block with fixed tree, as specified in the deflate specification
1122Returns error code.*/
1123static unsigned getTreeInflateFixed(HuffmanTree* tree_ll, HuffmanTree* tree_d) {
1124 unsigned error = generateFixedLitLenTree(tree_ll);
1125 if(error) return error;
1126 return generateFixedDistanceTree(tree_d);
1127}
1128
1129/*get the tree of a deflated block with dynamic tree, the tree itself is also Huffman compressed with a known tree*/
1130static unsigned getTreeInflateDynamic(HuffmanTree* tree_ll, HuffmanTree* tree_d,

Callers 1

inflateHuffmanBlockFunction · 0.85

Calls 2

generateFixedLitLenTreeFunction · 0.85

Tested by

no test coverage detected