Lines Matching refs:lmcpos

167   size_t lmcpos = pos - s->blockstart;  in TryGetFromLongestMatchCache()  local
171 unsigned char cache_available = s->lmc && (s->lmc->length[lmcpos] == 0 || in TryGetFromLongestMatchCache()
172 s->lmc->dist[lmcpos] != 0); in TryGetFromLongestMatchCache()
174 (*limit == ZOPFLI_MAX_MATCH || s->lmc->length[lmcpos] <= *limit || in TryGetFromLongestMatchCache()
176 lmcpos, s->lmc->length[lmcpos]) >= *limit)); in TryGetFromLongestMatchCache()
179 if (!sublen || s->lmc->length[lmcpos] in TryGetFromLongestMatchCache()
180 <= ZopfliMaxCachedSublen(s->lmc, lmcpos, s->lmc->length[lmcpos])) { in TryGetFromLongestMatchCache()
181 *length = s->lmc->length[lmcpos]; in TryGetFromLongestMatchCache()
184 ZopfliCacheToSublen(s->lmc, lmcpos, *length, sublen); in TryGetFromLongestMatchCache()
187 assert(sublen[*length] == s->lmc->dist[lmcpos]); in TryGetFromLongestMatchCache()
190 *distance = s->lmc->dist[lmcpos]; in TryGetFromLongestMatchCache()
196 *limit = s->lmc->length[lmcpos]; in TryGetFromLongestMatchCache()
212 size_t lmcpos = pos - s->blockstart; in StoreInLongestMatchCache() local
216 unsigned char cache_available = s->lmc && (s->lmc->length[lmcpos] == 0 || in StoreInLongestMatchCache()
217 s->lmc->dist[lmcpos] != 0); in StoreInLongestMatchCache()
220 assert(s->lmc->length[lmcpos] == 1 && s->lmc->dist[lmcpos] == 0); in StoreInLongestMatchCache()
221 s->lmc->dist[lmcpos] = length < ZOPFLI_MIN_MATCH ? 0 : distance; in StoreInLongestMatchCache()
222 s->lmc->length[lmcpos] = length < ZOPFLI_MIN_MATCH ? 0 : length; in StoreInLongestMatchCache()
223 assert(!(s->lmc->length[lmcpos] == 1 && s->lmc->dist[lmcpos] == 0)); in StoreInLongestMatchCache()
224 ZopfliSublenToCache(sublen, lmcpos, length, s->lmc); in StoreInLongestMatchCache()