Home
last modified time | relevance | path

Searched refs:bestlength (Results 1 – 3 of 3) sorted by relevance

/external/zopfli/src/zopfli/
Dcache.c53 unsigned bestlength = 0; in ZopfliSublenToCache() local
67 bestlength = i; in ZopfliSublenToCache()
73 assert(bestlength == length); in ZopfliSublenToCache()
74 cache[(ZOPFLI_CACHE_LENGTH - 1) * 3] = bestlength - 3; in ZopfliSublenToCache()
76 assert(bestlength <= length); in ZopfliSublenToCache()
78 assert(bestlength == ZopfliMaxCachedSublen(lmc, pos, length)); in ZopfliSublenToCache()
Dlz77.c235 unsigned short bestlength = 1; in ZopfliFindLongestMatch() local
300 if (pos + bestlength >= size in ZopfliFindLongestMatch()
301 || *(scan + bestlength) == *(match + bestlength)) { in ZopfliFindLongestMatch()
317 if (currentlength > bestlength) { in ZopfliFindLongestMatch()
320 for (j = bestlength + 1; j <= currentlength; j++) { in ZopfliFindLongestMatch()
325 bestlength = currentlength; in ZopfliFindLongestMatch()
333 if (hhead != h->head2 && bestlength >= h->same[hpos] && in ZopfliFindLongestMatch()
356 StoreInLongestMatchCache(s, pos, limit, sublen, bestdist, bestlength); in ZopfliFindLongestMatch()
359 assert(bestlength <= limit); in ZopfliFindLongestMatch()
362 *length = bestlength; in ZopfliFindLongestMatch()
Dsqueeze.c160 int bestlength = 0; /* length that has lowest cost in the cost model */ in GetCostModelMinCost() local
178 bestlength = i; in GetCostModelMinCost()
192 return costmodel(bestlength, bestdist, costcontext); in GetCostModelMinCost()