Lines Matching refs:code_lengths
250 int num_symbols, int* const code_lengths) { in ReadHuffmanCodeLengths() argument
284 code_lengths[symbol++] = code_len; in ReadHuffmanCodeLengths()
296 while (repeat-- > 0) code_lengths[symbol++] = length; in ReadHuffmanCodeLengths()
310 int* const code_lengths, HuffmanCode* const table) { in ReadHuffmanCode() argument
316 memset(code_lengths, 0, alphabet_size * sizeof(*code_lengths)); in ReadHuffmanCode()
323 code_lengths[symbol] = 1; in ReadHuffmanCode()
327 code_lengths[symbol] = 1; in ReadHuffmanCode()
343 code_lengths); in ReadHuffmanCode()
349 code_lengths, alphabet_size); in ReadHuffmanCode()
370 int* code_lengths = NULL; in ReadHuffmanCodes() local
435 code_lengths = (int*)WebPSafeCalloc((uint64_t)max_alphabet_size, in ReadHuffmanCodes()
436 sizeof(*code_lengths)); in ReadHuffmanCodes()
441 if (htree_groups == NULL || code_lengths == NULL || huffman_tables == NULL) { in ReadHuffmanCodes()
457 if (!ReadHuffmanCode(alphabet_size, dec, code_lengths, NULL)) { in ReadHuffmanCodes()
475 size = ReadHuffmanCode(alphabet_size, dec, code_lengths, huffman_table); in ReadHuffmanCodes()
485 int local_max_bits = code_lengths[0]; in ReadHuffmanCodes()
488 if (code_lengths[k] > local_max_bits) { in ReadHuffmanCodes()
489 local_max_bits = code_lengths[k]; in ReadHuffmanCodes()
521 WebPSafeFree(code_lengths); in ReadHuffmanCodes()