Searched refs:bestlength (Results 1 – 3 of 3) sorted by relevance
53 unsigned bestlength = 0; in ZopfliSublenToCache() local67 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()
235 unsigned short bestlength = 1; in ZopfliFindLongestMatch() local300 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()
160 int bestlength = 0; /* length that has lowest cost in the cost model */ in GetCostModelMinCost() local178 bestlength = i; in GetCostModelMinCost()192 return costmodel(bestlength, bestdist, costcontext); in GetCostModelMinCost()