Home | History | Annotate | Download | only in zopfli

Lines Matching refs:distance

56 Appends the length and distance to the LZ77 arrays of the ZopfliLZ77Store.
67 Gets the value of the length given the distance. Typically, the value of the
68 length is the length, but if the distance is very long, decrease the value of
72 static int GetLengthValue(int length, int distance) {
74 At distance > 1024, using length 3 is no longer good, due to the large amount
75 of extra bits for the distance code. distance > 1024 uses 9+ extra bits, and
78 return distance > 1024 ? length - 1 : length;
143 Gets distance, length and sublen values from the cache if possible.
150 unsigned short* sublen, unsigned short* distance, unsigned short* length) {
171 *distance = sublen[*length];
176 *distance = s->lmc->dist[lmcpos];
189 Stores the found sublen, distance and length in the longest match cache, if
195 unsigned short distance, unsigned short length) {
207 s->lmc->dist[lmcpos] = length < ZOPFLI_MIN_MATCH ? 0 : distance;
218 unsigned short* sublen, unsigned short* distance, unsigned short* length) {
238 if (TryGetFromLongestMatchCache(s, pos, &limit, sublen, distance, length)) {
252 *distance = 0;
347 *distance = bestdist;