Home
last modified time | relevance | path

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

/external/brotli/c/enc/
Dprefix.h24 static BROTLI_INLINE void PrefixEncodeCopyDistance(size_t distance_code, in PrefixEncodeCopyDistance() argument
29 if (distance_code < BROTLI_NUM_DISTANCE_SHORT_CODES + num_direct_codes) { in PrefixEncodeCopyDistance()
30 *code = (uint16_t)distance_code; in PrefixEncodeCopyDistance()
35 (distance_code - BROTLI_NUM_DISTANCE_SHORT_CODES - num_direct_codes); in PrefixEncodeCopyDistance()
Dbackward_references_inc.h83 size_t distance_code = ComputeDistanceCode( in EXPORT_FN() local
85 if ((sr.distance <= (max_distance + gap)) && distance_code > 0) { in EXPORT_FN()
93 sr.len, sr.len_code_delta, distance_code); in EXPORT_FN()
Dcommand.h122 size_t copylen, int copylen_code_delta, size_t distance_code) { in InitCommand() argument
131 distance_code, dist->num_direct_distance_codes, in InitCommand()
Dencode.c894 uint32_t distance_code = CommandRestoreDistanceCode(last_command, in ExtendLastCommand() local
896 if (distance_code < BROTLI_NUM_DISTANCE_SHORT_CODES || in ExtendLastCommand()
897 distance_code - (BROTLI_NUM_DISTANCE_SHORT_CODES - 1) == cmd_dist) { in ExtendLastCommand()
/external/brotli/c/dec/
Ddecode.c1460 if (s->distance_code == 0) { in TakeDistanceFromRingBuffer()
1462 s->distance_code = s->dist_rb[s->dist_rb_idx & 3]; in TakeDistanceFromRingBuffer()
1466 int distance_code = s->distance_code << 1; in TakeDistanceFromRingBuffer() local
1474 (int)(kDistanceShortCodeIndexOffset >> distance_code)) & 0x3; in TakeDistanceFromRingBuffer()
1475 s->distance_code = s->dist_rb[v]; in TakeDistanceFromRingBuffer()
1476 v = (int)(kDistanceShortCodeValueOffset >> distance_code) & 0x3; in TakeDistanceFromRingBuffer()
1477 if ((distance_code & 0x3) != 0) { in TakeDistanceFromRingBuffer()
1478 s->distance_code += v; in TakeDistanceFromRingBuffer()
1480 s->distance_code -= v; in TakeDistanceFromRingBuffer()
1481 if (s->distance_code <= 0) { in TakeDistanceFromRingBuffer()
[all …]
Dprefix.h37 int8_t distance_code; member
Dstate.h165 int distance_code; member
/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()