Lines Matching refs:code_lengths
172 int num_symbols, int* const code_lengths) { in ReadHuffmanCodeLengths() argument
204 code_lengths[symbol++] = code_len; in ReadHuffmanCodeLengths()
217 while (repeat-- > 0) code_lengths[symbol++] = length; in ReadHuffmanCodeLengths()
237 int code_lengths[2]; in ReadHuffmanCode() local
243 code_lengths[0] = num_symbols - 1; in ReadHuffmanCode()
248 code_lengths[1] = num_symbols - 1; in ReadHuffmanCode()
250 ok = HuffmanTreeBuildExplicit(tree, code_lengths, codes, symbols, in ReadHuffmanCode()
253 int* code_lengths = NULL; in ReadHuffmanCode() local
262 code_lengths = in ReadHuffmanCode()
263 (int*)WebPSafeCalloc((uint64_t)alphabet_size, sizeof(*code_lengths)); in ReadHuffmanCode()
264 if (code_lengths == NULL) { in ReadHuffmanCode()
273 code_lengths); in ReadHuffmanCode()
275 ok = HuffmanTreeBuildImplicit(tree, code_lengths, alphabet_size); in ReadHuffmanCode()
277 free(code_lengths); in ReadHuffmanCode()