Lines Matching full:distance
56 Appends the length and distance to the LZ77 arrays of the ZopfliLZ77Store.
67 Gets a score of the length given the distance. Typically, the score of the
68 length is the length itself, but if the distance is very long, decrease the
77 -avoid using a length of 3 in combination with a long distance. This only has
87 static int GetLengthScore(int length, int distance) {
89 At 1024, the distance uses 9+ extra bits and this seems to be the sweet spot
92 return distance > 1024 ? length - 1 : length;
157 Gets distance, length and sublen values from the cache if possible.
164 unsigned short* sublen, unsigned short* distance, unsigned short* length) {
185 *distance = sublen[*length];
190 *distance = s->lmc->dist[lmcpos];
203 Stores the found sublen, distance and length in the longest match cache, if
209 unsigned short distance, unsigned short length) {
221 s->lmc->dist[lmcpos] = length < ZOPFLI_MIN_MATCH ? 0 : distance;
232 unsigned short* sublen, unsigned short* distance, unsigned short* length) {
252 if (TryGetFromLongestMatchCache(s, pos, &limit, sublen, distance, length)) {
266 *distance = 0;
361 *distance = bestdist;