Searched refs:code_lengths (Results 1 – 12 of 12) sorted by relevance
/external/opencv3/3rdparty/libwebp/utils/ |
D | huffman.c | 72 int HuffmanCodeLengthsToCodes(const int* const code_lengths, in HuffmanCodeLengthsToCodes() argument 81 assert(code_lengths != NULL); in HuffmanCodeLengthsToCodes() 87 if (code_lengths[symbol] > max_code_length) { in HuffmanCodeLengthsToCodes() 88 max_code_length = code_lengths[symbol]; in HuffmanCodeLengthsToCodes() 95 ++code_length_hist[code_lengths[symbol]]; in HuffmanCodeLengthsToCodes() 111 if (code_lengths[symbol] > 0) { in HuffmanCodeLengthsToCodes() 112 huff_codes[symbol] = next_codes[code_lengths[symbol]]++; in HuffmanCodeLengthsToCodes() 146 const int* const code_lengths, in HuffmanTreeBuildImplicit() argument 153 assert(code_lengths != NULL); in HuffmanTreeBuildImplicit() 157 if (code_lengths[symbol] > 0) { in HuffmanTreeBuildImplicit() [all …]
|
D | huffman.h | 57 const int* const code_lengths, 64 const int* const code_lengths, 72 int HuffmanCodeLengthsToCodes(const int* const code_lengths,
|
D | huffman_encode.c | 356 const int value = tree->code_lengths[i]; in VP8LCreateCompressedHuffmanTree() 359 while (k < depth_size && tree->code_lengths[k] == value) ++k; in VP8LCreateCompressedHuffmanTree() 405 const int code_length = tree->code_lengths[i]; in ConvertBitDepthsToSymbols() 419 const int code_length = tree->code_lengths[i]; in ConvertBitDepthsToSymbols() 434 tree_depth_limit, tree->code_lengths)) { in VP8LCreateHuffmanTree()
|
D | huffman_encode.h | 32 uint8_t* code_lengths; // Code lengths of the symbols. member
|
/external/webp/src/utils/ |
D | huffman.c | 79 const int code_lengths[], int code_lengths_size) { in VP8LBuildHuffmanTable() argument 91 assert(code_lengths != NULL); in VP8LBuildHuffmanTable() 97 if (code_lengths[symbol] > MAX_ALLOWED_CODE_LENGTH) { in VP8LBuildHuffmanTable() 100 ++count[code_lengths[symbol]]; in VP8LBuildHuffmanTable() 124 const int symbol_code_length = code_lengths[symbol]; in VP8LBuildHuffmanTable() 125 if (code_lengths[symbol] > 0) { in VP8LBuildHuffmanTable()
|
D | huffman_encode.c | 335 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()
|
D | huffman_encode.h | 32 uint8_t* code_lengths; // Code lengths of the symbols. member
|
D | huffman.h | 82 const int code_lengths[], int code_lengths_size);
|
/external/webp/src/dec/ |
D | vp8l.c | 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 [all …]
|
/external/opencv3/3rdparty/libwebp/dec/ |
D | vp8l.c | 172 int num_symbols, int* const code_lengths) { in ReadHuffmanCodeLengths() argument 204 code_lengths[symbol++] = code_len; in ReadHuffmanCodeLengths() 217 while (repeat-- > 0) code_lengths[symbol++] = length; in ReadHuffmanCodeLengths() 237 int code_lengths[2]; in ReadHuffmanCode() local 243 code_lengths[0] = num_symbols - 1; in ReadHuffmanCode() 248 code_lengths[1] = num_symbols - 1; in ReadHuffmanCode() 250 ok = HuffmanTreeBuildExplicit(tree, code_lengths, codes, symbols, in ReadHuffmanCode() 253 int* code_lengths = NULL; in ReadHuffmanCode() local 262 code_lengths = in ReadHuffmanCode() 263 (int*)WebPSafeCalloc((uint64_t)alphabet_size, sizeof(*code_lengths)); in ReadHuffmanCode() [all …]
|
/external/opencv3/3rdparty/libwebp/enc/ |
D | vp8l.c | 219 huffman_codes[i].code_lengths = lengths; in GetHuffBitLengthsAndCodes() 272 if (huffman_code->code_lengths[k] != 0) { in ClearHuffmanTreeIfOnlyOneSymbol() 278 huffman_code->code_lengths[k] = 0; in ClearHuffmanTreeIfOnlyOneSymbol() 291 VP8LWriteBits(bw, huffman_code->code_lengths[ix], huffman_code->codes[ix]); in StoreHuffmanTreeToBitMask() 319 huffman_code.code_lengths = code_length_bitdepth; in StoreFullHuffmanCode() 386 if (huffman_code->code_lengths[i] != 0) { in StoreHuffmanCode() 418 const int depth = code->code_lengths[code_index]; in WriteHuffmanCode()
|
/external/webp/src/enc/ |
D | vp8l.c | 461 huffman_codes[i].code_lengths = lengths; in GetHuffBitLengthsAndCodes() 523 if (huffman_code->code_lengths[k] != 0) { in ClearHuffmanTreeIfOnlyOneSymbol() 529 huffman_code->code_lengths[k] = 0; in ClearHuffmanTreeIfOnlyOneSymbol() 542 VP8LPutBits(bw, huffman_code->codes[ix], huffman_code->code_lengths[ix]); in StoreHuffmanTreeToBitMask() 568 huffman_code.code_lengths = code_length_bitdepth; in StoreFullHuffmanCode() 633 if (huffman_code->code_lengths[i] != 0) { in StoreHuffmanCode() 663 const int depth = code->code_lengths[code_index]; in WriteHuffmanCode() 674 const int depth = code->code_lengths[code_index]; in WriteHuffmanCodeWithExtraBits()
|