Searched refs:distance_code (Results 1 – 4 of 4) sorted by relevance
122 void PrefixEncodeCopyDistance(int distance_code, in PrefixEncodeCopyDistance() argument128 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()
38 void PrefixEncodeCopyDistance(int distance_code,
859 int distance_code; in BrotliDecompress() local883 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 …]
1656 unsigned distance_code = lz77_encoded->data[++i]; in writeLZ77data() local1658 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()