Home
last modified time | relevance | path

Searched refs:distance_code (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/third_party/brotli/src/brotli/enc/
Dprefix.cc122 void PrefixEncodeCopyDistance(int distance_code, in PrefixEncodeCopyDistance() argument
128 distance_code -= 1; in PrefixEncodeCopyDistance()
129 if (distance_code < kNumDistanceShortCodes + num_direct_codes) { in PrefixEncodeCopyDistance()
130 *code = distance_code; in PrefixEncodeCopyDistance()
135 distance_code -= kNumDistanceShortCodes + num_direct_codes; in PrefixEncodeCopyDistance()
136 distance_code += (1 << (postfix_bits + 2)); in PrefixEncodeCopyDistance()
137 int bucket = Log2Floor(distance_code) - 1; in PrefixEncodeCopyDistance()
139 int postfix = distance_code & postfix_mask; in PrefixEncodeCopyDistance()
140 int prefix = (distance_code >> bucket) & 1; in PrefixEncodeCopyDistance()
145 *extra_bits = (distance_code - offset) >> postfix_bits; in PrefixEncodeCopyDistance()
Dprefix.h38 void PrefixEncodeCopyDistance(int distance_code,
/external/chromium_org/third_party/brotli/src/brotli/dec/
Ddecode.c859 int distance_code; in BrotliDecompress() local
883 distance_code = -1; in BrotliDecompress()
885 distance_code = 0; in BrotliDecompress()
895 BROTLI_LOG_UINT(distance_code); in BrotliDecompress()
935 if (distance_code < 0) { in BrotliDecompress()
955 distance_code = ReadSymbol(hgroup[2].htrees[dist_htree_index], &br); in BrotliDecompress()
956 if (distance_code >= num_direct_distance_codes) { in BrotliDecompress()
960 distance_code -= num_direct_distance_codes; in BrotliDecompress()
961 postfix = distance_code & distance_postfix_mask; in BrotliDecompress()
962 distance_code >>= distance_postfix_bits; in BrotliDecompress()
[all …]
/external/zopfli/src/zopflipng/lodepng/
Dlodepng.cpp1656 unsigned distance_code = lz77_encoded->data[++i]; in writeLZ77data() local
1658 unsigned distance_index = distance_code; in writeLZ77data()
1663 addHuffmanSymbol(bp, out, HuffmanTree_getCode(tree_d, distance_code), in writeLZ77data()
1664 HuffmanTree_getLength(tree_d, distance_code)); in writeLZ77data()