Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/libwebp/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()
218 const int code_lengths[], int code_lengths_size) { in VP8LBuildHuffmanTable() argument
220 BuildHuffmanTable(NULL, root_bits, code_lengths, code_lengths_size, NULL); in VP8LBuildHuffmanTable()
254 code_lengths, code_lengths_size, sorted); in VP8LBuildHuffmanTable()
260 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()
413 huff_code->code_lengths); in VP8LCreateHuffmanTree()
Dhuffman_encode_utils.h32 uint8_t* code_lengths; // Code lengths of the symbols. member
Dhuffman_utils.h105 const int code_lengths[], int code_lengths_size);
/third_party/skia/third_party/externals/libwebp/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()
311 int* const code_lengths, in ReadHuffmanCode() argument
318 memset(code_lengths, 0, alphabet_size * sizeof(*code_lengths)); in ReadHuffmanCode()
325 code_lengths[symbol] = 1; in ReadHuffmanCode()
329 code_lengths[symbol] = 1; in ReadHuffmanCode()
345 code_lengths); in ReadHuffmanCode()
351 code_lengths, alphabet_size); in ReadHuffmanCode()
371 int* code_lengths = NULL; in ReadHuffmanCodes() local
[all …]
/third_party/ffmpeg/libavcodec/
Dwebp.c247 static int huff_reader_build_canonical(HuffReader *r, const uint8_t *code_lengths, in huff_reader_build_canonical() argument
256 if (code_lengths[sym] > 0) { in huff_reader_build_canonical()
271 max_code_length = FFMAX(max_code_length, code_lengths[sym]); in huff_reader_build_canonical()
284 if (code_lengths[sym] != len) in huff_reader_build_canonical()
297 code_lengths, sizeof(*code_lengths), sizeof(*code_lengths), in huff_reader_build_canonical()
328 uint8_t *code_lengths; in read_huffman_code_normal() local
343 code_lengths = av_mallocz(alphabet_size); in read_huffman_code_normal()
344 if (!code_lengths) { in read_huffman_code_normal()
372 code_lengths[symbol++] = code_len; in read_huffman_code_normal()
404 code_lengths[symbol++] = length; in read_huffman_code_normal()
[all …]
/third_party/node/deps/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);
/third_party/skia/third_party/externals/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);
/third_party/skia/third_party/externals/libwebp/src/enc/
Dvp8l_enc.c729 huffman_codes[i].code_lengths = lengths; in GetHuffBitLengthsAndCodes()
791 if (huffman_code->code_lengths[k] != 0) { in ClearHuffmanTreeIfOnlyOneSymbol()
797 huffman_code->code_lengths[k] = 0; in ClearHuffmanTreeIfOnlyOneSymbol()
810 VP8LPutBits(bw, huffman_code->codes[ix], huffman_code->code_lengths[ix]); in StoreHuffmanTreeToBitMask()
836 huffman_code.code_lengths = code_length_bitdepth; in StoreFullHuffmanCode()
906 if (huffman_code->code_lengths[i] != 0) { in StoreHuffmanCode()
936 const int depth = code->code_lengths[code_index]; in WriteHuffmanCode()
947 const int depth = code->code_lengths[code_index]; in WriteHuffmanCodeWithExtraBits()