Home
last modified time | relevance | path

Searched refs:posState (Results 1 – 10 of 10) sorted by relevance

/third_party/lzma/Java/SevenZip/Compression/LZMA/
DEncoder.java177 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
[all …]
DDecoder.java30 for (int posState = 0; posState < m_NumPosStates; posState++) in Init()
32 m_LowCoder[posState].Init(); in Init()
33 m_MidCoder[posState].Init(); in Init()
38 …public int Decode(SevenZip.Compression.RangeCoder.Decoder rangeDecoder, int posState) throws IOExc… in Decode() argument
41 return m_LowCoder[posState].Decode(rangeDecoder); in Decode()
44 symbol += m_MidCoder[posState].Decode(rangeDecoder); in Decode()
215 int posState = (int)nowPos64 & m_PosStateMask; in Code() local
216 …if (m_RangeDecoder.DecodeBit(m_IsMatchDecoders, (state << Base.kNumPosStatesBitsMax) + posState) =… in Code()
235 …RangeDecoder.DecodeBit(m_IsRep0LongDecoders, (state << Base.kNumPosStatesBitsMax) + posState) == 0) in Code()
262 len = m_RepLenDecoder.Decode(m_RangeDecoder, posState) + Base.kMatchMinLen; in Code()
[all …]
/third_party/lzma/CS/7zip/Compress/LZMA/
DLzmaEncoder.cs177 for (UInt32 posState = 0; posState < Base.kNumPosStatesEncodingMax; posState++) in LenEncoder()
179 _lowCoder[posState] = new RangeCoder.BitTreeEncoder(Base.kNumLowLenBits); in LenEncoder()
180 _midCoder[posState] = new RangeCoder.BitTreeEncoder(Base.kNumMidLenBits); in LenEncoder()
188 for (UInt32 posState = 0; posState < numPosStates; posState++) in Init()
190 _lowCoder[posState].Init(); in Init()
191 _midCoder[posState].Init(); in Init()
196 public void Encode(RangeCoder.Encoder rangeEncoder, UInt32 symbol, UInt32 posState) in Encode() argument
201 _lowCoder[posState].Encode(rangeEncoder, symbol); in Encode()
210 _midCoder[posState].Encode(rangeEncoder, symbol); in Encode()
220 public void SetPrices(UInt32 posState, UInt32 numSymbols, UInt32[] prices, UInt32 st) in SetPrices() argument
[all …]
DLzmaDecoder.cs22 for (uint posState = m_NumPosStates; posState < numPosStates; posState++) in Create()
24 m_LowCoder[posState] = new BitTreeDecoder(Base.kNumLowLenBits); in Create()
25 m_MidCoder[posState] = new BitTreeDecoder(Base.kNumMidLenBits); in Create()
33 for (uint posState = 0; posState < m_NumPosStates; posState++) in Init()
35 m_LowCoder[posState].Init(); in Init()
36 m_MidCoder[posState].Init(); in Init()
42 public uint Decode(RangeCoder.Decoder rangeDecoder, uint posState) in Decode() argument
45 return m_LowCoder[posState].Decode(rangeDecoder); in Decode()
50 symbol += m_MidCoder[posState].Decode(rangeDecoder); in Decode()
255 uint posState = (uint)nowPos64 & m_PosStateMask; in Code()
[all …]
/third_party/lzma/C/
DLzmaEnc.c336 #define GET_PRICE_LEN(p, posState, len) \ argument
337 ((p)->prices[posState][(size_t)(len) - LZMA_MATCH_LEN_MIN])
942 static void LenEnc_Encode(CLenEnc *p, CRangeEnc *rc, unsigned sym, unsigned posState) in LenEnc_Encode() argument
969 probs += (posState << (1 + kLenNumLowBits)); in LenEnc_Encode()
1004 unsigned posState; in LenPriceEnc_UpdateTables() local
1008 for (posState = 0; posState < numPosStates; posState++) in LenPriceEnc_UpdateTables()
1010 UInt32 *prices = p->prices[posState]; in LenPriceEnc_UpdateTables()
1011 const CLzmaProb *probs = enc->low + (posState << (1 + kLenNumLowBits)); in LenPriceEnc_UpdateTables()
1072 unsigned posState; in LenPriceEnc_UpdateTables() local
1074 for (posState = 1; posState < numPosStates; posState++) in LenPriceEnc_UpdateTables()
[all …]
DLzmaDec.c168 #define COMBINED_PS_STATE (posState + state)
169 #define GET_LEN_STATE (posState)
260 unsigned posState = CALC_POS_STATE(processedPos, pbMask); in LZMA_DECODE_REAL() local
729 unsigned posState = CALC_POS_STATE(p->processedPos, ((unsigned)1 << p->prop.pb) - 1); in LzmaDec_TryDummy() local
/third_party/lzma/CPP/7zip/Bundles/LzmaSpec/
DLzmaSpec.cpp295 unsigned Decode(CRangeDecoder *rc, unsigned posState) in Decode() argument
298 return LowCoder[posState].Decode(rc); in Decode()
300 return 8 + MidCoder[posState].Decode(rc); in Decode()
483 unsigned posState = OutWindow.TotalPos & ((1 << pb) - 1); in Decode() local
485 if (RangeDec.DecodeBit(&IsMatch[(state << kNumPosBitsMax) + posState]) == 0) in Decode()
505 if (RangeDec.DecodeBit(&IsRep0Long[(state << kNumPosBitsMax) + posState]) == 0) in Decode()
532 len = RepLenDecoder.Decode(&RangeDec, posState); in Decode()
540 len = LenDecoder.Decode(&RangeDec, posState); in Decode()
/third_party/lzma/DOC/
Dlzma-specification.txt655 0 xxx LowCoder[posState] xxx
656 1 0 yyy MidCoder[posState] yyy + 8
662 LowCoder[posState] to decode 3-bit zero-based match length (xxx).
668 MidCoder[posState] to decode 3-bit "yyy" value, and zero-based match
675 LZMA uses "posState" value as context to select the binary tree
678 unsigned posState = OutWindow.TotalPos & ((1 << pb) - 1);
704 unsigned Decode(CRangeDecoder *rc, unsigned posState)
707 return LowCoder[posState].Decode(rc);
709 return 8 + MidCoder[posState].Decode(rc);
964 unsigned posState = OutWindow.TotalPos & ((1 << pb) - 1);
[all …]
/third_party/lzma/Asm/x86/
DLzmaDecOpt.asm583 ; prob = probs + IsMatch + (state << kNumPosBitsMax) + posState;
/third_party/lzma/Asm/arm64/
DLzmaDecOpt.S686 # prob = probs + IsMatch + (state << kNumPosBitsMax) + posState;