Lines Matching refs:code_lengths
170 int num_symbols, int* const code_lengths) { in ReadHuffmanCodeLengths() argument
202 code_lengths[symbol++] = code_len; in ReadHuffmanCodeLengths()
215 while (repeat-- > 0) code_lengths[symbol++] = length; in ReadHuffmanCodeLengths()
235 int code_lengths[2]; in ReadHuffmanCode() local
241 code_lengths[0] = num_symbols - 1; in ReadHuffmanCode()
246 code_lengths[1] = num_symbols - 1; in ReadHuffmanCode()
248 ok = HuffmanTreeBuildExplicit(tree, code_lengths, codes, symbols, in ReadHuffmanCode()
251 int* code_lengths = NULL; in ReadHuffmanCode() local
260 code_lengths = in ReadHuffmanCode()
261 (int*)WebPSafeCalloc((uint64_t)alphabet_size, sizeof(*code_lengths)); in ReadHuffmanCode()
262 if (code_lengths == NULL) { in ReadHuffmanCode()
271 code_lengths); in ReadHuffmanCode()
273 ok = HuffmanTreeBuildImplicit(tree, code_lengths, alphabet_size); in ReadHuffmanCode()
275 free(code_lengths); in ReadHuffmanCode()