Home
last modified time | relevance | path

Searched refs:code_lengths (Results 1 – 6 of 6) sorted by relevance

/external/webp/src/utils/
Dhuffman.c70 int HuffmanCodeLengthsToCodes(const int* const code_lengths, in HuffmanCodeLengthsToCodes() argument
79 assert(code_lengths != NULL); in HuffmanCodeLengthsToCodes()
85 if (code_lengths[symbol] > max_code_length) { in HuffmanCodeLengthsToCodes()
86 max_code_length = code_lengths[symbol]; in HuffmanCodeLengthsToCodes()
93 ++code_length_hist[code_lengths[symbol]]; in HuffmanCodeLengthsToCodes()
109 if (code_lengths[symbol] > 0) { in HuffmanCodeLengthsToCodes()
110 huff_codes[symbol] = next_codes[code_lengths[symbol]]++; in HuffmanCodeLengthsToCodes()
144 const int* const code_lengths, in HuffmanTreeBuildImplicit() argument
151 assert(code_lengths != NULL); in HuffmanTreeBuildImplicit()
155 if (code_lengths[symbol] > 0) { in HuffmanTreeBuildImplicit()
[all …]
Dhuffman.h55 const int* const code_lengths,
62 const int* const code_lengths,
70 int HuffmanCodeLengthsToCodes(const int* const code_lengths,
Dhuffman_encode.c354 const int value = tree->code_lengths[i]; in VP8LCreateCompressedHuffmanTree()
357 while (k < depth_size && tree->code_lengths[k] == value) ++k; in VP8LCreateCompressedHuffmanTree()
403 const int code_length = tree->code_lengths[i]; in ConvertBitDepthsToSymbols()
417 const int code_length = tree->code_lengths[i]; in ConvertBitDepthsToSymbols()
432 tree_depth_limit, tree->code_lengths)) { in VP8LCreateHuffmanTree()
Dhuffman_encode.h30 uint8_t* code_lengths; // Code lengths of the symbols. member
/external/webp/src/dec/
Dvp8l.c170 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()
[all …]
/external/webp/src/enc/
Dvp8l.c217 huffman_codes[i].code_lengths = lengths; in GetHuffBitLengthsAndCodes()
270 if (huffman_code->code_lengths[k] != 0) { in ClearHuffmanTreeIfOnlyOneSymbol()
276 huffman_code->code_lengths[k] = 0; in ClearHuffmanTreeIfOnlyOneSymbol()
289 VP8LWriteBits(bw, huffman_code->code_lengths[ix], huffman_code->codes[ix]); in StoreHuffmanTreeToBitMask()
317 huffman_code.code_lengths = code_length_bitdepth; in StoreFullHuffmanCode()
384 if (huffman_code->code_lengths[i] != 0) { in StoreHuffmanCode()
416 const int depth = code->code_lengths[code_index]; in WriteHuffmanCode()