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/
H A Dhuffman_utils.c81 const int code_lengths[], int code_lengths_size, in BuildHuffmanTable()
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()
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_siz in VP8LBuildHuffmanTable()
80 BuildHuffmanTable(HuffmanCode* const root_table, int root_bits, const int code_lengths[], int code_lengths_size, uint16_t sorted[]) BuildHuffmanTable() argument
217 VP8LBuildHuffmanTable(HuffmanTables* const root_table, int root_bits, const int code_lengths[], int code_lengths_size) VP8LBuildHuffmanTable() argument
[all...]
H A 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()
H A Dhuffman_encode_utils.h32 uint8_t* code_lengths; // Code lengths of the symbols. member
H A Dhuffman_utils.h100 // The 'code_lengths' is pre-allocated temporary memory buffer used for creating
105 const int code_lengths[], int code_lengths_size);
/third_party/skia/third_party/externals/libwebp/src/dec/
H A Dvp8l_dec.c250 int num_symbols, int* const code_lengths) { in ReadHuffmanCodeLengths()
284 code_lengths[symbol++] = code_len; in ReadHuffmanCodeLengths()
296 while (repeat-- > 0) code_lengths[symbol++] = length; in ReadHuffmanCodeLengths()
308 // 'code_lengths' is pre-allocated temporary buffer, used for creating Huffman
311 int* const code_lengths, in ReadHuffmanCode()
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()
248 ReadHuffmanCodeLengths( VP8LDecoder* const dec, const int* const code_length_code_lengths, int num_symbols, int* const code_lengths) ReadHuffmanCodeLengths() argument
310 ReadHuffmanCode(int alphabet_size, VP8LDecoder* const dec, int* const code_lengths, HuffmanTables* const table) ReadHuffmanCode() argument
371 int* code_lengths = NULL; ReadHuffmanCodes() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dwebp.c254 static int huff_reader_build_canonical(HuffReader *r, const uint8_t *code_lengths, in huff_reader_build_canonical() argument
263 if (code_lengths[sym] > 0) { in huff_reader_build_canonical()
278 max_code_length = FFMAX(max_code_length, code_lengths[sym]); in huff_reader_build_canonical()
291 if (code_lengths[sym] != len) in huff_reader_build_canonical()
304 code_lengths, sizeof(*code_lengths), sizeof(*code_lengths), in huff_reader_build_canonical()
335 uint8_t *code_lengths; in read_huffman_code_normal() local
350 code_lengths = av_mallocz(alphabet_size); in read_huffman_code_normal()
351 if (!code_lengths) { in read_huffman_code_normal()
[all...]
/third_party/node/deps/brotli/c/dec/
H A Dhuffman.h92 const uint8_t* const code_lengths, uint16_t* count);
H A Dhuffman.c105 const uint8_t* const code_lengths, in BrotliBuildCodeLengthsHuffmanTable()
137 sorted[offset[code_lengths[symbol]]--] = symbol; in BrotliBuildCodeLengthsHuffmanTable()
104 BrotliBuildCodeLengthsHuffmanTable(HuffmanCode* table, const uint8_t* const code_lengths, uint16_t* count) BrotliBuildCodeLengthsHuffmanTable() argument
/third_party/skia/third_party/externals/brotli/c/dec/
H A Dhuffman.h92 const uint8_t* const code_lengths, uint16_t* count);
H A Dhuffman.c105 const uint8_t* const code_lengths, in BrotliBuildCodeLengthsHuffmanTable()
137 sorted[offset[code_lengths[symbol]]--] = symbol; in BrotliBuildCodeLengthsHuffmanTable()
104 BrotliBuildCodeLengthsHuffmanTable(HuffmanCode* table, const uint8_t* const code_lengths, uint16_t* count) BrotliBuildCodeLengthsHuffmanTable() argument
/third_party/skia/third_party/externals/libwebp/src/enc/
H A 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()

Completed in 27 milliseconds