Home
last modified time | relevance | path

Searched refs:matchByte (Results 1 – 12 of 12) sorted by relevance

/external/xz-java/src/org/tukaani/xz/lzma/
DLZMAEncoderNormal.java165 int matchByte = lz.getByte(reps[0] + 1); in getNextSymbol() local
170 if (mainLen < MATCH_LEN_MIN && curByte != matchByte in getNextSymbol()
181 int literalPrice = literalEncoder.getPrice(curByte, matchByte, in getNextSymbol()
191 if (matchByte == curByte) { in getNextSymbol()
379 int matchByte = lz.getByte(opts[optCur].reps[0] + 1);
383 + literalEncoder.getPrice(curByte, matchByte, lz.getByte(1),
391 if (matchByte == curByte && (opts[optCur + 1].optPrev == optCur
404 if (!nextIsByte && matchByte != curByte && avail > MATCH_LEN_MIN) {
468 int matchByte = lz.getByte(0); // lz.getByte(len, len)
470 price += literalEncoder.getPrice(curByte, matchByte, prevByte,
[all …]
DLZMAEncoder.java566 int getPrice(int curByte, int matchByte, in getPrice() argument
574 : subencoders[i].getMatchedPrice(curByte, matchByte); in getPrice()
595 int matchByte = lz.getByte(reps[0] + 1 + readAhead); in encode() local
602 matchByte <<= 1; in encode()
603 matchBit = matchByte & offset; in encode()
608 offset &= ~(matchByte ^ symbol); in encode()
633 int getMatchedPrice(int symbol, int matchByte) { in getMatchedPrice() argument
643 matchByte <<= 1; in getMatchedPrice()
644 matchBit = matchByte & offset; in getMatchedPrice()
650 offset &= ~(matchByte ^ symbol); in getMatchedPrice()
DLZMADecoder.java165 int matchByte = lz.getByte(reps[0]); in decode() local
171 matchByte <<= 1; in decode()
172 matchBit = matchByte & offset; in decode()
/external/lzma/CS/7zip/Compress/LZMA/
DLzmaDecoder.cs78 public byte DecodeWithMatchByte(RangeCoder.Decoder rangeDecoder, byte matchByte) in DecodeWithMatchByte()
83 uint matchBit = (uint)(matchByte >> 7) & 1; in DecodeWithMatchByte()
84 matchByte <<= 1; in DecodeWithMatchByte()
131 … byte DecodeWithMatchByte(RangeCoder.Decoder rangeDecoder, uint pos, byte prevByte, byte matchByte) in DecodeWithMatchByte() argument
132 { return m_Coders[GetState(pos, prevByte)].DecodeWithMatchByte(rangeDecoder, matchByte); } in DecodeWithMatchByte()
DLzmaEncoder.cs89 public void EncodeMatched(RangeCoder.Encoder rangeEncoder, byte matchByte, byte symbol) in EncodeMatched()
99 uint matchBit = (uint)((matchByte >> i) & 1); in EncodeMatched()
108 public uint GetPrice(bool matchMode, byte matchByte, byte symbol) in GetPrice()
117 uint matchBit = (uint)(matchByte >> i) & 1; in GetPrice()
596 Byte matchByte = _matchFinder.GetIndexByte((Int32)(0 - _repDistances[0] - 1 - 1)); in GetOptimum()
598 if (lenMain < 2 && currentByte != matchByte && repLens[repMaxIndex] < 2) in GetOptimum()
609 …_literalEncoder.GetSubCoder(position, _previousByte).GetPrice(!_state.IsCharState(), matchByte, cu… in GetOptimum()
615 if (matchByte == currentByte) in GetOptimum()
803 matchByte = _matchFinder.GetIndexByte((Int32)(0 - reps[0] - 1 - 1)); in GetOptimum()
810 GetPrice(!state.IsCharState(), matchByte, currentByte); in GetOptimum()
[all …]
/external/lzma/Java/SevenZip/Compression/LZMA/
DEncoder.java89 …public void EncodeMatched(SevenZip.Compression.RangeCoder.Encoder rangeEncoder, byte matchByte, by… in EncodeMatched() argument
99 int matchBit = ((matchByte >> i) & 1); in EncodeMatched()
108 public int GetPrice(boolean matchMode, byte matchByte, byte symbol) in GetPrice() argument
117 int matchBit = (matchByte >> i) & 1; in GetPrice()
596 byte matchByte = _matchFinder.GetIndexByte(0 - _repDistances[0] - 1 - 1); in GetOptimum()
598 if (lenMain < 2 && currentByte != matchByte && repLens[repMaxIndex] < 2) in GetOptimum()
609 …SubCoder(position, _previousByte).GetPrice(!Base.StateIsCharState(_state), matchByte, currentByte); in GetOptimum()
615 if (matchByte == currentByte) in GetOptimum()
803 matchByte = _matchFinder.GetIndexByte(0 - reps[0] - 1 - 1); in GetOptimum()
810 GetPrice(!Base.StateIsCharState(state), matchByte, currentByte); in GetOptimum()
[all …]
DDecoder.java71 …ithMatchByte(SevenZip.Compression.RangeCoder.Decoder rangeDecoder, byte matchByte) throws IOExcept… in DecodeWithMatchByte() argument
76 int matchBit = (matchByte >> 7) & 1; in DecodeWithMatchByte()
77 matchByte <<= 1; in DecodeWithMatchByte()
/external/lzma/C/
DLzmaDec.c59 matchByte += matchByte; \
61 offs &= matchByte; \
275 unsigned matchByte = dic[dicPos - rep0 + (dicPos < rep0 ? dicBufSize : 0)]; in LZMA_DECODE_REAL() local
695 unsigned matchByte = p->dic[p->dicPos - p->reps[0] + in LzmaDec_TryDummy() local
703 matchByte += matchByte; in LzmaDec_TryDummy()
705 offs &= matchByte; in LzmaDec_TryDummy()
DLzmaEnc.c709 static void LitEnc_EncodeMatched(CRangeEnc *p, CLzmaProb *probs, UInt32 sym, UInt32 matchByte) in LitEnc_EncodeMatched() argument
719 matchByte <<= 1; in LitEnc_EncodeMatched()
721 prob = probs + (offs + (matchByte & offs) + (sym >> 8)); in LitEnc_EncodeMatched()
724 offs &= ~(matchByte ^ sym); in LitEnc_EncodeMatched()
786 static UInt32 LitEnc_Matched_GetPrice(const CLzmaProb *probs, UInt32 sym, UInt32 matchByte, const C… in LitEnc_Matched_GetPrice() argument
793 matchByte <<= 1; in LitEnc_Matched_GetPrice()
794 price += GET_PRICEa(probs[offs + (matchByte & offs) + (sym >> 8)], (sym >> 7) & 1); in LitEnc_Matched_GetPrice()
796 offs &= ~(matchByte ^ sym); in LitEnc_Matched_GetPrice()
1130 Byte curByte, matchByte; in GetOptimum() local
1191 matchByte = *(data - reps[0]); in GetOptimum()
[all …]
/external/lzma/CPP/7zip/Bundles/LzmaSpec/
DLzmaSpec.cpp384 unsigned matchByte = OutWindow.GetByte(rep0 + 1); in DecodeLiteral() local
387 unsigned matchBit = (matchByte >> 7) & 1; in DecodeLiteral()
388 matchByte <<= 1; in DecodeLiteral()
/external/lzma/DOC/
Dlzma-specification.txt598 If (State > 7), the Literal Decoder also uses "matchByte" that represents
617 unsigned matchByte = OutWindow.GetByte(rep0 + 1);
620 unsigned matchBit = (matchByte >> 7) & 1;
621 matchByte <<= 1;
/external/lzma/Asm/x86/
DLzmaDecOpt.asm1015 ; matchByte = dic[dicPos - rep0 + (dicPos < rep0 ? dicBufSize : 0)];