Lines Matching refs:posState

177 			for (int posState = 0; posState < Base.kNumPosStatesEncodingMax; posState++)  in LenEncoder()
179 _lowCoder[posState] = new BitTreeEncoder(Base.kNumLowLenBits); in LenEncoder()
180 _midCoder[posState] = new BitTreeEncoder(Base.kNumMidLenBits); in LenEncoder()
188 for (int posState = 0; posState < numPosStates; posState++) in Init()
190 _lowCoder[posState].Init(); in Init()
191 _midCoder[posState].Init(); in Init()
196 …public void Encode(SevenZip.Compression.RangeCoder.Encoder rangeEncoder, int symbol, int posState)… in Encode() argument
201 _lowCoder[posState].Encode(rangeEncoder, symbol); in Encode()
210 _midCoder[posState].Encode(rangeEncoder, symbol); in Encode()
220 public void SetPrices(int posState, int numSymbols, int[] prices, int st) in SetPrices() argument
231 prices[st + i] = a0 + _lowCoder[posState].GetPrice(i); in SetPrices()
237 prices[st + i] = b0 + _midCoder[posState].GetPrice(i - Base.kNumLowLenSymbols); in SetPrices()
254 public int GetPrice(int symbol, int posState) in GetPrice() argument
256 return _prices[posState * Base.kNumLenSymbols + symbol]; in GetPrice()
259 void UpdateTable(int posState) in UpdateTable() argument
261 SetPrices(posState, _tableSize, _prices, posState * Base.kNumLenSymbols); in UpdateTable()
262 _counters[posState] = _tableSize; in UpdateTable()
267 for (int posState = 0; posState < numPosStates; posState++) in UpdateTables()
268 UpdateTable(posState); in UpdateTables()
271 …public void Encode(SevenZip.Compression.RangeCoder.Encoder rangeEncoder, int symbol, int posState)… in Encode() argument
273 super.Encode(rangeEncoder, symbol, posState); in Encode()
274 if (--_counters[posState] == 0) in Encode()
275 UpdateTable(posState); in Encode()
455 int GetRepLen1Price(int state, int posState) in GetRepLen1Price() argument
458 …ression.RangeCoder.Encoder.GetPrice0(_isRep0Long[(state << Base.kNumPosStatesBitsMax) + posState]); in GetRepLen1Price()
461 int GetPureRepPrice(int repIndex, int state, int posState) in GetPureRepPrice() argument
467 …ression.RangeCoder.Encoder.GetPrice1(_isRep0Long[(state << Base.kNumPosStatesBitsMax) + posState]); in GetPureRepPrice()
483 int GetRepPrice(int repIndex, int len, int state, int posState) in GetRepPrice() argument
485 int price = _repMatchLenEncoder.GetPrice(len - Base.kMatchMinLen, posState); in GetRepPrice()
486 return price + GetPureRepPrice(repIndex, state, posState); in GetRepPrice()
489 int GetPosLenPrice(int pos, int len, int posState) in GetPosLenPrice() argument
498 return price + _lenEncoder.GetPrice(len - Base.kMatchMinLen, posState); in GetPosLenPrice()
606 int posState = (position & _posStateMask); in GetOptimum() local
608 …pression.RangeCoder.Encoder.GetPrice0(_isMatch[(_state << Base.kNumPosStatesBitsMax) + posState]) + in GetOptimum()
612 …mpression.RangeCoder.Encoder.GetPrice1(_isMatch[(_state << Base.kNumPosStatesBitsMax) + posState]); in GetOptimum()
617 int shortRepPrice = repMatchPrice + GetRepLen1Price(_state, posState); in GetOptimum()
650 int price = repMatchPrice + GetPureRepPrice(i, _state, posState); in GetOptimum()
653 int curAndLenPrice = price + _repMatchLenEncoder.GetPrice(repLen - 2, posState); in GetOptimum()
677 int curAndLenPrice = normalMatchPrice + GetPosLenPrice(distance, len, posState); in GetOptimum()
805 posState = (position & _posStateMask); in GetOptimum()
808 …mpression.RangeCoder.Encoder.GetPrice0(_isMatch[(state << Base.kNumPosStatesBitsMax) + posState]) + in GetOptimum()
823 …ompression.RangeCoder.Encoder.GetPrice1(_isMatch[(state << Base.kNumPosStatesBitsMax) + posState]); in GetOptimum()
829 int shortRepPrice = repMatchPrice + GetRepLen1Price(state, posState); in GetOptimum()
891 int curAndLenPrice = repMatchPrice + GetRepPrice(repIndex, lenTest, state, posState); in GetOptimum()
918 repMatchPrice + GetRepPrice(repIndex, lenTest, state, posState) + in GetOptimum()
971 int curAndLenPrice = normalMatchPrice + GetPosLenPrice(curBack, lenTest, posState); in GetOptimum()
1036 void WriteEndMarker(int posState) throws IOException in WriteEndMarker() argument
1041 _rangeEncoder.Encode(_isMatch, (_state << Base.kNumPosStatesBitsMax) + posState, 1); in WriteEndMarker()
1045 _lenEncoder.Encode(_rangeEncoder, len - Base.kMatchMinLen, posState); in WriteEndMarker()
1092 int posState = (int)(nowPos64) & _posStateMask; in CodeOneBlock() local
1093 _rangeEncoder.Encode(_isMatch, (_state << Base.kNumPosStatesBitsMax) + posState, 0); in CodeOneBlock()
1111 int posState = ((int)nowPos64) & _posStateMask; in CodeOneBlock() local
1112 int complexState = (_state << Base.kNumPosStatesBitsMax) + posState; in CodeOneBlock()
1157 _repMatchLenEncoder.Encode(_rangeEncoder, len - Base.kMatchMinLen, posState); in CodeOneBlock()
1172 _lenEncoder.Encode(_rangeEncoder, len - Base.kMatchMinLen, posState); in CodeOneBlock()