Lines Matching refs:code_lengths
72 int HuffmanCodeLengthsToCodes(const int* const code_lengths, in HuffmanCodeLengthsToCodes() argument
81 assert(code_lengths != NULL); in HuffmanCodeLengthsToCodes()
87 if (code_lengths[symbol] > max_code_length) { in HuffmanCodeLengthsToCodes()
88 max_code_length = code_lengths[symbol]; in HuffmanCodeLengthsToCodes()
95 ++code_length_hist[code_lengths[symbol]]; in HuffmanCodeLengthsToCodes()
111 if (code_lengths[symbol] > 0) { in HuffmanCodeLengthsToCodes()
112 huff_codes[symbol] = next_codes[code_lengths[symbol]]++; in HuffmanCodeLengthsToCodes()
146 const int* const code_lengths, in HuffmanTreeBuildImplicit() argument
153 assert(code_lengths != NULL); in HuffmanTreeBuildImplicit()
157 if (code_lengths[symbol] > 0) { in HuffmanTreeBuildImplicit()
183 if (!HuffmanCodeLengthsToCodes(code_lengths, code_lengths_size, codes)) { in HuffmanTreeBuildImplicit()
189 if (code_lengths[symbol] > 0) { in HuffmanTreeBuildImplicit()
190 if (!TreeAddSymbol(tree, symbol, codes[symbol], code_lengths[symbol])) { in HuffmanTreeBuildImplicit()
205 const int* const code_lengths, in HuffmanTreeBuildExplicit() argument
213 assert(code_lengths != NULL); in HuffmanTreeBuildExplicit()
226 if (!TreeAddSymbol(tree, symbols[i], codes[i], code_lengths[i])) { in HuffmanTreeBuildExplicit()