Searched refs:repIndex (Results 1 – 3 of 3) sorted by relevance
/external/lzma/Java/SevenZip/Compression/LZMA/ |
D | Encoder.java | 461 int GetPureRepPrice(int repIndex, int state, int posState) in GetPureRepPrice() argument 464 if (repIndex == 0) in GetPureRepPrice() 472 if (repIndex == 1) in GetPureRepPrice() 477 price += SevenZip.Compression.RangeCoder.Encoder.GetPrice(_isRepG2[state], repIndex - 2); in GetPureRepPrice() 483 int GetRepPrice(int repIndex, int len, int state, int posState) in GetRepPrice() argument 486 return price + GetPureRepPrice(repIndex, state, posState); in GetRepPrice() 881 for (int repIndex = 0; repIndex < Base.kNumRepDistances; repIndex++) in GetOptimum() 883 int lenTest = _matchFinder.GetMatchLen(0 - 1, reps[repIndex], numAvailableBytes); in GetOptimum() 891 int curAndLenPrice = repMatchPrice + GetRepPrice(repIndex, lenTest, state, posState); in GetOptimum() 897 optimum.BackPrev = repIndex; in GetOptimum() [all …]
|
/external/lzma/CS/7zip/Compress/LZMA/ |
D | LzmaEncoder.cs | 461 UInt32 GetPureRepPrice(UInt32 repIndex, Base.State state, UInt32 posState) in GetPureRepPrice() argument 464 if (repIndex == 0) in GetPureRepPrice() 472 if (repIndex == 1) in GetPureRepPrice() 477 price += _isRepG2[state.Index].GetPrice(repIndex - 2); in GetPureRepPrice() 483 UInt32 GetRepPrice(UInt32 repIndex, UInt32 len, Base.State state, UInt32 posState) in GetRepPrice() argument 486 return price + GetPureRepPrice(repIndex, state, posState); in GetRepPrice() 881 for (UInt32 repIndex = 0; repIndex < Base.kNumRepDistances; repIndex++) in GetOptimum() 883 UInt32 lenTest = _matchFinder.GetMatchLen(0 - 1, reps[repIndex], numAvailableBytes); in GetOptimum() 891 UInt32 curAndLenPrice = repMatchPrice + GetRepPrice(repIndex, lenTest, state, posState); in GetOptimum() 897 optimum.BackPrev = repIndex; in GetOptimum() [all …]
|
/external/lzma/C/ |
D | LzmaEnc.c | 876 static UInt32 GetPureRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 state, UInt32 posState) in GetPureRepPrice() argument 879 if (repIndex == 0) in GetPureRepPrice() 887 if (repIndex == 1) in GetPureRepPrice() 892 price += GET_PRICE(p->isRepG2[state], repIndex - 2); in GetPureRepPrice() 898 static UInt32 GetRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 len, UInt32 state, UInt32 posState) in GetRepPrice() argument 901 GetPureRepPrice(p, repIndex, state, posState); in GetRepPrice() 1322 UInt32 repIndex; in GetOptimum() local 1323 for (repIndex = 0; repIndex < LZMA_NUM_REPS; repIndex++) in GetOptimum() 1328 const Byte *data2 = data - (reps[repIndex] + 1); in GetOptimum() 1335 price = repMatchPrice + GetPureRepPrice(p, repIndex, state, posState); in GetOptimum() [all …]
|