Searched defs:posState (Results 1 - 10 of 10) sorted by relevance

/external/lzma/Java/Tukaani/src/org/tukaani/xz/lzma/
H A DLZMADecoder.java53 int posState = lz.getPos() & posMask;
55 if (rc.decodeBit(isMatch[state.get()], posState) == 0) {
59 ? decodeMatch(posState)
60 : decodeRepMatch(posState);
72 private int decodeMatch(int posState) throws IOException { argument
79 int len = matchLenDecoder.decode(posState);
101 private int decodeRepMatch(int posState) throws IOException { argument
103 if (rc.decodeBit(isRep0Long[state.get()], posState) == 0) {
129 return repLenDecoder.decode(posState);
187 int decode(int posState) throw argument
[all...]
H A DLZMAEncoderNormal.java174 int posState = pos & posMask;
184 int anyMatchPrice = getAnyMatchPrice(state, posState);
191 state, posState);
228 state, posState);
231 posState);
253 dist, len, posState);
280 posState = pos & posMask;
284 + getAnyMatchPrice(opts[optCur].state, posState);
287 calc1BytePrices(pos, posState, avail, anyRepPrice);
290 int startLen = calcLongRepPrices(pos, posState,
371 calc1BytePrices(int pos, int posState, int avail, int anyRepPrice) argument
427 calcLongRepPrices(int pos, int posState, int avail, int anyRepPrice) argument
492 calcNormalMatchPrices(int pos, int posState, int avail, int anyMatchPrice, int startLen) argument
[all...]
H A DLZMAEncoder.java252 int posState = (lz.getPos() - readAhead) & posMask;
257 rc.encodeBit(isMatch[state.get()], posState, 0);
261 rc.encodeBit(isMatch[state.get()], posState, 1);
267 encodeRepMatch(back, len, posState);
272 encodeMatch(back - REPS, len, posState);
282 private void encodeMatch(int dist, int len, int posState) { argument
284 matchLenEncoder.encode(len, posState);
314 private void encodeRepMatch(int rep, int len, int posState) { argument
317 rc.encodeBit(isRep0Long[state.get()], posState, len == 1 ? 0 : 1);
341 repLenEncoder.encode(len, posState);
358 getAnyMatchPrice(State state, int posState) argument
372 getShortRepPrice(int anyRepPrice, State state, int posState) argument
379 getLongRepPrice(int anyRepPrice, int rep, State state, int posState) argument
400 getLongRepAndLenPrice(int rep, int len, State state, int posState) argument
407 getMatchAndLenPrice(int normalMatchPrice, int dist, int len, int posState) argument
652 encode(int len, int posState) argument
674 getPrice(int len, int posState) argument
687 updatePrices(int posState) argument
[all...]
/external/lzma/Java/SevenZip/Compression/LZMA/
H A DDecoder.java30 for (int posState = 0; posState < m_NumPosStates; posState++)
32 m_LowCoder[posState].Init();
33 m_MidCoder[posState].Init();
38 public int Decode(SevenZip.Compression.RangeCoder.Decoder rangeDecoder, int posState) throws IOException argument
41 return m_LowCoder[posState].Decode(rangeDecoder);
44 symbol += m_MidCoder[posState].Decode(rangeDecoder);
215 int posState = (int)nowPos64 & m_PosStateMask;
216 if (m_RangeDecoder.DecodeBit(m_IsMatchDecoders, (state << Base.kNumPosStatesBitsMax) + posState)
[all...]
H A DEncoder.java177 for (int posState = 0; posState < Base.kNumPosStatesEncodingMax; posState++)
179 _lowCoder[posState] = new BitTreeEncoder(Base.kNumLowLenBits);
180 _midCoder[posState] = new BitTreeEncoder(Base.kNumMidLenBits);
188 for (int posState = 0; posState < numPosStates; posState++)
190 _lowCoder[posState].Init();
191 _midCoder[posState]
196 Encode(SevenZip.Compression.RangeCoder.Encoder rangeEncoder, int symbol, int posState) argument
220 SetPrices(int posState, int numSymbols, int[] prices, int st) argument
254 GetPrice(int symbol, int posState) argument
259 UpdateTable(int posState) argument
271 Encode(SevenZip.Compression.RangeCoder.Encoder rangeEncoder, int symbol, int posState) argument
455 GetRepLen1Price(int state, int posState) argument
461 GetPureRepPrice(int repIndex, int state, int posState) argument
483 GetRepPrice(int repIndex, int len, int state, int posState) argument
489 GetPosLenPrice(int pos, int len, int posState) argument
1036 WriteEndMarker(int posState) argument
[all...]
/external/lzma/CS/7zip/Compress/LZMA/
H A DLzmaDecoder.cs22 for (uint posState = m_NumPosStates; posState < numPosStates; posState++)
24 m_LowCoder[posState] = new BitTreeDecoder(Base.kNumLowLenBits);
25 m_MidCoder[posState] = new BitTreeDecoder(Base.kNumMidLenBits);
33 for (uint posState = 0; posState < m_NumPosStates; posState++)
35 m_LowCoder[posState].Init();
36 m_MidCoder[posState]
42 Decode(RangeCoder.Decoder rangeDecoder, uint posState) argument
[all...]
H A DLzmaEncoder.cs177 for (UInt32 posState = 0; posState < Base.kNumPosStatesEncodingMax; posState++)
179 _lowCoder[posState] = new RangeCoder.BitTreeEncoder(Base.kNumLowLenBits);
180 _midCoder[posState] = new RangeCoder.BitTreeEncoder(Base.kNumMidLenBits);
188 for (UInt32 posState = 0; posState < numPosStates; posState++)
190 _lowCoder[posState].Init();
191 _midCoder[posState]
196 Encode(RangeCoder.Encoder rangeEncoder, UInt32 symbol, UInt32 posState) argument
220 SetPrices(UInt32 posState, UInt32 numSymbols, UInt32[] prices, UInt32 st) argument
254 GetPrice(UInt32 symbol, UInt32 posState) argument
259 UpdateTable(UInt32 posState) argument
271 Encode(RangeCoder.Encoder rangeEncoder, UInt32 symbol, UInt32 posState) argument
455 GetRepLen1Price(Base.State state, UInt32 posState) argument
461 GetPureRepPrice(UInt32 repIndex, Base.State state, UInt32 posState) argument
483 GetRepPrice(UInt32 repIndex, UInt32 len, Base.State state, UInt32 posState) argument
489 GetPosLenPrice(UInt32 pos, UInt32 len, UInt32 posState) argument
1036 WriteEndMarker(UInt32 posState) argument
[all...]
/external/lzma/C/
H A DLzmaDec.c167 unsigned posState = processedPos & pbMask; local
169 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState;
248 prob = probs + IsRep0Long + (state << kNumPosBitsMax) + posState;
299 probLen = prob + LenLow + (posState << kLenNumLowBits);
310 probLen = prob + LenMid + (posState << kLenNumMidBits);
533 unsigned posState = (p->processedPos) & ((1 << p->prop.pb) - 1); local
535 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState;
593 prob = probs + IsRep0Long + (state << kNumPosBitsMax) + posState;
636 probLen = prob + LenLow + (posState << kLenNumLowBits);
647 probLen = prob + LenMid + (posState << kLenNumMidBit
[all...]
H A DLzmaEnc.c743 static void LenEnc_Encode(CLenEnc *p, CRangeEnc *rc, UInt32 symbol, UInt32 posState) argument
748 RcTree_Encode(rc, p->low + (posState << kLenNumLowBits), kLenNumLowBits, symbol);
756 RcTree_Encode(rc, p->mid + (posState << kLenNumMidBits), kLenNumMidBits, symbol - kLenNumLowSymbols);
766 static void LenEnc_SetPrices(CLenEnc *p, UInt32 posState, UInt32 numSymbols, UInt32 *prices, UInt32 *ProbPrices) argument
777 prices[i] = a0 + RcTree_GetPrice(p->low + (posState << kLenNumLowBits), kLenNumLowBits, i, ProbPrices);
783 prices[i] = b0 + RcTree_GetPrice(p->mid + (posState << kLenNumMidBits), kLenNumMidBits, i - kLenNumLowSymbols, ProbPrices);
789 static void MY_FAST_CALL LenPriceEnc_UpdateTable(CLenPriceEnc *p, UInt32 posState, UInt32 *ProbPrices) argument
791 LenEnc_SetPrices(&p->p, posState, p->tableSize, p->prices[posState], ProbPrices);
792 p->counters[posState]
797 UInt32 posState; local
802 LenEnc_Encode2(CLenPriceEnc *p, CRangeEnc *rc, UInt32 symbol, UInt32 posState, Bool updatePrice, UInt32 *ProbPrices) argument
869 GetRepLen1Price(CLzmaEnc *p, UInt32 state, UInt32 posState) argument
876 GetPureRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 state, UInt32 posState) argument
898 GetRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 len, UInt32 state, UInt32 posState) argument
944 UInt32 numAvail, mainLen, numPairs, repMaxIndex, i, posState, lenEnd, len, cur; local
1139 UInt32 numAvailFull, newLen, numPairs, posPrev, state, posState, startLen; local
1610 WriteEndMarker(CLzmaEnc *p, UInt32 posState) argument
1780 UInt32 pos, len, posState; local
[all...]
/external/lzma/CPP/7zip/Bundles/LzmaSpec/
H A DLzmaSpec.cpp295 unsigned Decode(CRangeDecoder *rc, unsigned posState) argument
298 return LowCoder[posState].Decode(rc);
300 return 8 + MidCoder[posState].Decode(rc);
481 unsigned posState = OutWindow.TotalPos & ((1 << pb) - 1); local
483 if (RangeDec.DecodeBit(&IsMatch[(state << kNumPosBitsMax) + posState]) == 0)
503 if (RangeDec.DecodeBit(&IsRep0Long[(state << kNumPosBitsMax) + posState]) == 0)
530 len = RepLenDecoder.Decode(&RangeDec, posState);
538 len = LenDecoder.Decode(&RangeDec, posState);

Completed in 91 milliseconds