Home
last modified time | relevance | path

Searched refs:repLen (Results 1 – 5 of 5) sorted by relevance

/external/xz-java/src/org/tukaani/xz/lzma/
DLZMAEncoderNormal.java225 int repLen = repLens[rep]; in getNextSymbol() local
226 if (repLen < MATCH_LEN_MIN) in getNextSymbol()
232 int price = longRepPrice + repLenEncoder.getPrice(repLen, in getNextSymbol()
234 if (price < opts[repLen].price) in getNextSymbol()
235 opts[repLen].set1(price, 0, rep); in getNextSymbol()
236 } while (--repLen >= MATCH_LEN_MIN); in getNextSymbol()
/external/zstd/lib/compress/
Dzstd_opt.c569 U32 repLen = 0; in ZSTD_insertBtAndGetAllMatches() local
576 repLen = (U32)ZSTD_count(ip+minMatch, ip+minMatch-repOffset, iLimit) + minMatch; in ZSTD_insertBtAndGetAllMatches()
587repLen = (U32)ZSTD_count_2segments(ip+minMatch, repMatch+minMatch, iLimit, dictEnd, prefixStart) +… in ZSTD_insertBtAndGetAllMatches()
593repLen = (U32)ZSTD_count_2segments(ip+minMatch, repMatch+minMatch, iLimit, dmsEnd, prefixStart) + … in ZSTD_insertBtAndGetAllMatches()
596 if (repLen > bestLength) { in ZSTD_insertBtAndGetAllMatches()
598 repCode, ll0, repOffset, repLen); in ZSTD_insertBtAndGetAllMatches()
599 bestLength = repLen; in ZSTD_insertBtAndGetAllMatches()
601 matches[mnum].len = (U32)repLen; in ZSTD_insertBtAndGetAllMatches()
603 if ( (repLen > sufficient_len) in ZSTD_insertBtAndGetAllMatches()
604 | (ip+repLen == iLimit) ) { /* best possible */ in ZSTD_insertBtAndGetAllMatches()
/external/lzma/C/
DLzmaEnc.c1247 unsigned repLen = repLens[i]; in GetOptimum() local
1249 if (repLen < 2) in GetOptimum()
1254 UInt32 price2 = price + GET_PRICE_LEN(&p->repLenEnc, posState, repLen); in GetOptimum()
1255 COptimal *opt = &p->opt[repLen]; in GetOptimum()
1259 opt->len = (UInt32)repLen; in GetOptimum()
1264 while (--repLen >= 2); in GetOptimum()
1868 unsigned mainLen, numPairs, repIndex, repLen, i; in GetOptimumFast() local
1887 repLen = repIndex = 0; in GetOptimumFast()
1903 if (len > repLen) in GetOptimumFast()
1906 repLen = len; in GetOptimumFast()
[all …]
/external/lzma/Java/SevenZip/Compression/LZMA/
DEncoder.java647 int repLen = repLens[i]; in GetOptimum() local
648 if (repLen < 2) in GetOptimum()
653 int curAndLenPrice = price + _repMatchLenEncoder.GetPrice(repLen - 2, posState); in GetOptimum()
654 Optimal optimum = _optimum[repLen]; in GetOptimum()
663 while (--repLen >= 2); in GetOptimum()
/external/lzma/CS/7zip/Compress/LZMA/
DLzmaEncoder.cs647 UInt32 repLen = repLens[i]; in GetOptimum()
648 if (repLen < 2) in GetOptimum()
653 UInt32 curAndLenPrice = price + _repMatchLenEncoder.GetPrice(repLen - 2, posState); in GetOptimum()
654 Optimal optimum = _optimum[repLen]; in GetOptimum()
663 while (--repLen >= 2); in GetOptimum()