Lines Matching refs:code_lengths
249 int num_symbols, int* const code_lengths) { in ReadHuffmanCodeLengths() argument
283 code_lengths[symbol++] = code_len; in ReadHuffmanCodeLengths()
295 while (repeat-- > 0) code_lengths[symbol++] = length; in ReadHuffmanCodeLengths()
309 int* const code_lengths, HuffmanCode* const table) { in ReadHuffmanCode() argument
315 memset(code_lengths, 0, alphabet_size * sizeof(*code_lengths)); in ReadHuffmanCode()
322 code_lengths[symbol] = 1; in ReadHuffmanCode()
326 code_lengths[symbol] = 1; in ReadHuffmanCode()
342 code_lengths); in ReadHuffmanCode()
348 code_lengths, alphabet_size); in ReadHuffmanCode()
368 int* code_lengths = NULL; in ReadHuffmanCodes() local
408 code_lengths = (int*)WebPSafeCalloc((uint64_t)max_alphabet_size, in ReadHuffmanCodes()
409 sizeof(*code_lengths)); in ReadHuffmanCodes()
411 if (htree_groups == NULL || code_lengths == NULL || huffman_tables == NULL) { in ReadHuffmanCodes()
430 size = ReadHuffmanCode(alphabet_size, dec, code_lengths, next); in ReadHuffmanCodes()
440 int local_max_bits = code_lengths[0]; in ReadHuffmanCodes()
443 if (code_lengths[k] > local_max_bits) { in ReadHuffmanCodes()
444 local_max_bits = code_lengths[k]; in ReadHuffmanCodes()
467 WebPSafeFree(code_lengths); in ReadHuffmanCodes()
477 WebPSafeFree(code_lengths); in ReadHuffmanCodes()