Home
last modified time | relevance | path

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

/external/webp/src/utils/
Dhuffman_utils.c81 const int code_lengths[], int code_lengths_size, in BuildHuffmanTable() argument
93 assert(code_lengths != NULL); in BuildHuffmanTable()
100 if (code_lengths[symbol] > MAX_ALLOWED_CODE_LENGTH) { in BuildHuffmanTable()
103 ++count[code_lengths[symbol]]; in BuildHuffmanTable()
122 const int symbol_code_length = code_lengths[symbol]; in BuildHuffmanTable()
123 if (code_lengths[symbol] > 0) { in BuildHuffmanTable()
215 const int code_lengths[], int code_lengths_size) { in VP8LBuildHuffmanTable() argument
220 code_lengths, code_lengths_size, NULL); in VP8LBuildHuffmanTable()
225 code_lengths, code_lengths_size, sorted); in VP8LBuildHuffmanTable()
231 code_lengths, code_lengths_size, sorted); in VP8LBuildHuffmanTable()
Dhuffman_encode_utils.c335 const int value = tree->code_lengths[i]; in VP8LCreateCompressedHuffmanTree()
338 while (k < depth_size && tree->code_lengths[k] == value) ++k; in VP8LCreateCompressedHuffmanTree()
384 const int code_length = tree->code_lengths[i]; in ConvertBitDepthsToSymbols()
398 const int code_length = tree->code_lengths[i]; in ConvertBitDepthsToSymbols()
414 huff_code->code_lengths); in VP8LCreateHuffmanTree()
Dhuffman_encode_utils.h32 uint8_t* code_lengths; // Code lengths of the symbols. member
Dhuffman_utils.h84 const int code_lengths[], int code_lengths_size);
/external/webp/src/dec/
Dvp8l_dec.c250 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
[all …]
/external/brotli/c/dec/
Dhuffman.c105 const uint8_t* const code_lengths, in BrotliBuildCodeLengthsHuffmanTable() argument
137 sorted[offset[code_lengths[symbol]]--] = symbol; in BrotliBuildCodeLengthsHuffmanTable()
Dhuffman.h92 const uint8_t* const code_lengths, uint16_t* count);
/external/webp/src/enc/
Dvp8l_enc.c510 huffman_codes[i].code_lengths = lengths; in GetHuffBitLengthsAndCodes()
572 if (huffman_code->code_lengths[k] != 0) { in ClearHuffmanTreeIfOnlyOneSymbol()
578 huffman_code->code_lengths[k] = 0; in ClearHuffmanTreeIfOnlyOneSymbol()
591 VP8LPutBits(bw, huffman_code->codes[ix], huffman_code->code_lengths[ix]); in StoreHuffmanTreeToBitMask()
617 huffman_code.code_lengths = code_length_bitdepth; in StoreFullHuffmanCode()
687 if (huffman_code->code_lengths[i] != 0) { in StoreHuffmanCode()
717 const int depth = code->code_lengths[code_index]; in WriteHuffmanCode()
728 const int depth = code->code_lengths[code_index]; in WriteHuffmanCodeWithExtraBits()