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()
374 int* code_lengths = NULL; in ReadHuffmanCodes() local
445 code_lengths = (int*)WebPSafeCalloc((uint64_t)max_alphabet_size, in ReadHuffmanCodes()
446 sizeof(*code_lengths)); in ReadHuffmanCodes()
451 if (htree_groups == NULL || code_lengths == NULL || huffman_tables == NULL) { in ReadHuffmanCodes()
477 ReadHuffmanCode(alphabet_size, dec, code_lengths, huffman_tables_i); in ReadHuffmanCodes()
487 int local_max_bits = code_lengths[0]; in ReadHuffmanCodes()
490 if (code_lengths[k] > local_max_bits) { in ReadHuffmanCodes()
491 local_max_bits = code_lengths[k]; in ReadHuffmanCodes()
523 WebPSafeFree(code_lengths); in ReadHuffmanCodes()