Lines Matching defs:tree_ll
930 static void getTreeInflateFixed(HuffmanTree* tree_ll, HuffmanTree* tree_d)
933 generateFixedLitLenTree(tree_ll);
938 static unsigned getTreeInflateDynamic(HuffmanTree* tree_ll, HuffmanTree* tree_d,
1070 error = HuffmanTree_makeFromLengths(tree_ll, bitlen_ll, NUM_DEFLATE_CODE_SYMBOLS, 15);
1090 HuffmanTree tree_ll; /*the huffman tree for literal and length codes*/
1094 HuffmanTree_init(&tree_ll);
1097 if(btype == 1) getTreeInflateFixed(&tree_ll, &tree_d);
1098 else if(btype == 2) error = getTreeInflateDynamic(&tree_ll, &tree_d, in, bp, inlength);
1103 unsigned code_ll = huffmanDecodeSymbol(in, bp, &tree_ll, inbitlength);
1180 HuffmanTree_cleanup(&tree_ll);
1639 tree_ll: the tree for lit and len codes.
1643 const HuffmanTree* tree_ll, const HuffmanTree* tree_d)
1649 addHuffmanSymbol(bp, out, HuffmanTree_getCode(tree_ll, val), HuffmanTree_getLength(tree_ll, val));
1690 HuffmanTree tree_ll; /*tree for lit,len values*/
1692 HuffmanTree tree_cl; /*tree for encoding the code lengths representing tree_ll and tree_d*/
1706 bitlen_lld is to tree_cl what data is to tree_ll and tree_d.
1716 HuffmanTree_init(&tree_ll);
1760 error = HuffmanTree_makeFromFrequencies(&tree_ll, frequencies_ll.data, 257, frequencies_ll.size, 15);
1766 numcodes_ll = tree_ll.numcodes; if(numcodes_ll > 286) numcodes_ll = 286;
1769 for(i = 0; i < numcodes_ll; i++) uivector_push_back(&bitlen_lld, HuffmanTree_getLength(&tree_ll, (unsigned)i));
1891 writeLZ77data(bp, out, &lz77_encoded, &tree_ll, &tree_d);
1893 if(HuffmanTree_getLength(&tree_ll, 256) == 0) ERROR_BREAK(64);
1896 addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_ll, 256), HuffmanTree_getLength(&tree_ll, 256));
1903 HuffmanTree_cleanup(&tree_ll);
1921 HuffmanTree tree_ll; /*tree for literal values and length codes*/
1928 HuffmanTree_init(&tree_ll);
1931 generateFixedLitLenTree(&tree_ll);
1944 if(!error) writeLZ77data(bp, out, &lz77_encoded, &tree_ll, &tree_d);
1951 addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_ll, data[i]), HuffmanTree_getLength(&tree_ll, data[i]));
1955 if(!error) addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_ll, 256), HuffmanTree_getLength(&tree_ll, 256));
1958 HuffmanTree_cleanup(&tree_ll);