Lines Matching defs:state
96 int state = context;
100 state += ((1 + matchBit) << 8);
103 rangeEncoder.Encode(m_Encoders, state, bit);
455 int GetRepLen1Price(int state, int posState)
457 return SevenZip.Compression.RangeCoder.Encoder.GetPrice0(_isRepG0[state]) +
458 SevenZip.Compression.RangeCoder.Encoder.GetPrice0(_isRep0Long[(state << Base.kNumPosStatesBitsMax) + posState]);
461 int GetPureRepPrice(int repIndex, int state, int posState)
466 price = SevenZip.Compression.RangeCoder.Encoder.GetPrice0(_isRepG0[state]);
467 price += SevenZip.Compression.RangeCoder.Encoder.GetPrice1(_isRep0Long[(state << Base.kNumPosStatesBitsMax) + posState]);
471 price = SevenZip.Compression.RangeCoder.Encoder.GetPrice1(_isRepG0[state]);
473 price += SevenZip.Compression.RangeCoder.Encoder.GetPrice0(_isRepG1[state]);
476 price += SevenZip.Compression.RangeCoder.Encoder.GetPrice1(_isRepG1[state]);
477 price += SevenZip.Compression.RangeCoder.Encoder.GetPrice(_isRepG2[state], repIndex - 2);
483 int GetRepPrice(int repIndex, int len, int state, int posState)
486 return price + GetPureRepPrice(repIndex, state, posState);
713 int state;
719 state = _optimum[_optimum[cur].PosPrev2].State;
721 state = Base.StateUpdateRep(state);
723 state = Base.StateUpdateMatch(state);
726 state = _optimum[posPrev].State;
727 state = Base.StateUpdateChar(state);
730 state = _optimum[posPrev].State;
734 state = Base.StateUpdateShortRep(state);
736 state = Base.StateUpdateChar(state);
745 state = Base.StateUpdateRep(state);
751 state = Base.StateUpdateRep(state);
753 state = Base.StateUpdateMatch(state);
795 _optimum[cur].State = state;
808 SevenZip.Compression.RangeCoder.Encoder.GetPrice0(_isMatch[(state << Base.kNumPosStatesBitsMax) + posState]) +
810 GetPrice(!Base.StateIsCharState(state), matchByte, currentByte);
823 matchPrice = curPrice + SevenZip.Compression.RangeCoder.Encoder.GetPrice1(_isMatch[(state << Base.kNumPosStatesBitsMax) + posState]);
824 repMatchPrice = matchPrice + SevenZip.Compression.RangeCoder.Encoder.GetPrice1(_isRep[state]);
829 int shortRepPrice = repMatchPrice + GetRepLen1Price(state, posState);
854 int state2 = Base.StateUpdateChar(state);
891 int curAndLenPrice = repMatchPrice + GetRepPrice(repIndex, lenTest, state, posState);
914 int state2 = Base.StateUpdateRep(state);
918 repMatchPrice + GetRepPrice(repIndex, lenTest, state, posState) +
960 normalMatchPrice = matchPrice + SevenZip.Compression.RangeCoder.Encoder.GetPrice0(_isRep[state]);
989 int state2 = Base.StateUpdateMatch(state);