Home
last modified time | relevance | path

Searched refs:repIndex (Results 1 – 4 of 4) sorted by relevance

/external/lzma/Java/SevenZip/Compression/LZMA/
DEncoder.java461 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/
DLzmaEncoder.cs461 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/libgdx/gdx/src/com/badlogic/gdx/utils/compression/lzma/
DEncoder.java424 int GetPureRepPrice (int repIndex, int state, int posState) { in GetPureRepPrice() argument
426 if (repIndex == 0) { in GetPureRepPrice()
432 if (repIndex == 1) in GetPureRepPrice()
436 …e += com.badlogic.gdx.utils.compression.rangecoder.Encoder.GetPrice(_isRepG2[state], repIndex - 2); in GetPureRepPrice()
442 int GetRepPrice (int repIndex, int len, int state, int posState) { in GetRepPrice() argument
444 return price + GetPureRepPrice(repIndex, state, posState); in GetRepPrice()
780 for (int repIndex = 0; repIndex < Base.kNumRepDistances; repIndex++) { in GetOptimum()
781 int lenTest = _matchFinder.GetMatchLen(0 - 1, reps[repIndex], numAvailableBytes); in GetOptimum()
787 int curAndLenPrice = repMatchPrice + GetRepPrice(repIndex, lenTest, state, posState); in GetOptimum()
792 optimum.BackPrev = repIndex; in GetOptimum()
[all …]
/external/lzma/C/
DLzmaEnc.c876 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 …]