Home
last modified time | relevance | path

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

/external/lzma/Java/Tukaani/src/org/tukaani/xz/lzma/
DLZMAEncoderNormal.java163 int matchByte = lz.getByte(reps[0] + 1); in getNextSymbol() local
168 if (mainLen < MATCH_LEN_MIN && curByte != matchByte in getNextSymbol()
179 int literalPrice = literalEncoder.getPrice(curByte, matchByte, in getNextSymbol()
189 if (matchByte == curByte) { in getNextSymbol()
377 int matchByte = lz.getByte(opts[optCur].reps[0] + 1);
381 + literalEncoder.getPrice(curByte, matchByte, lz.getByte(1),
389 if (matchByte == curByte && (opts[optCur + 1].optPrev == optCur
402 if (!nextIsByte && matchByte != curByte && avail > MATCH_LEN_MIN) {
466 int matchByte = lz.getByte(0); // lz.getByte(len, len)
468 price += literalEncoder.getPrice(curByte, matchByte, prevByte,
[all …]
DLZMAEncoder.java527 int getPrice(int curByte, int matchByte, in getPrice() argument
535 : subencoders[i].getMatchedPrice(curByte, matchByte); in getPrice()
556 int matchByte = lz.getByte(reps[0] + 1 + readAhead); in encode() local
563 matchByte <<= 1; in encode()
564 matchBit = matchByte & offset; in encode()
569 offset &= ~(matchByte ^ symbol); in encode()
594 int getMatchedPrice(int symbol, int matchByte) { in getMatchedPrice() argument
604 matchByte <<= 1; in getMatchedPrice()
605 matchBit = matchByte & offset; in getMatchedPrice()
611 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/libgdx/gdx/src/com/badlogic/gdx/utils/compression/lzma/
DEncoder.java87 … EncodeMatched (com.badlogic.gdx.utils.compression.rangecoder.Encoder rangeEncoder, byte matchByte, in EncodeMatched() argument
95 int matchBit = ((matchByte >> i) & 1); in EncodeMatched()
104 public int GetPrice (boolean matchMode, byte matchByte, byte symbol) { in GetPrice() argument
110 int matchBit = (matchByte >> i) & 1; in GetPrice()
536 byte matchByte = _matchFinder.GetIndexByte(0 - _repDistances[0] - 1 - 1); in GetOptimum()
538 if (lenMain < 2 && currentByte != matchByte && repLens[repMaxIndex] < 2) { in GetOptimum()
549 …SubCoder(position, _previousByte).GetPrice(!Base.StateIsCharState(_state), matchByte, currentByte); in GetOptimum()
556 if (matchByte == currentByte) { in GetOptimum()
708 matchByte = _matchFinder.GetIndexByte(0 - reps[0] - 1 - 1); in GetOptimum()
716 matchByte, currentByte); in GetOptimum()
[all …]
DDecoder.java75 …eWithMatchByte (com.badlogic.gdx.utils.compression.rangecoder.Decoder rangeDecoder, byte matchByte) in DecodeWithMatchByte() argument
79 int matchBit = (matchByte >> 7) & 1; in DecodeWithMatchByte()
80 matchByte <<= 1; in DecodeWithMatchByte()
/external/lzma/C/
DLzmaEnc.c596 static void LitEnc_EncodeMatched(CRangeEnc *p, CLzmaProb *probs, UInt32 symbol, UInt32 matchByte) in LitEnc_EncodeMatched() argument
602 matchByte <<= 1; in LitEnc_EncodeMatched()
603 RangeEnc_EncodeBit(p, probs + (offs + (matchByte & offs) + (symbol >> 8)), (symbol >> 7) & 1); in LitEnc_EncodeMatched()
605 offs &= ~(matchByte ^ symbol); in LitEnc_EncodeMatched()
659 static UInt32 LitEnc_GetPriceMatched(const CLzmaProb *probs, UInt32 symbol, UInt32 matchByte, UInt3… in LitEnc_GetPriceMatched() argument
666 matchByte <<= 1; in LitEnc_GetPriceMatched()
667 price += GET_PRICEa(probs[offs + (matchByte & offs) + (symbol >> 8)], (symbol >> 7) & 1); in LitEnc_GetPriceMatched()
669 offs &= ~(matchByte ^ symbol); in LitEnc_GetPriceMatched()
949 Byte curByte, matchByte; in GetOptimum() local
1012 matchByte = *(data - (reps[0] + 1)); in GetOptimum()
[all …]
DLzmaDec.c51 matchByte <<= 1; \
52 bit = (matchByte & offs); \
198 unsigned matchByte = dic[(dicPos - rep0) + ((dicPos < rep0) ? dicBufSize : 0)]; in LzmaDec_DecodeReal() local
555 unsigned matchByte = p->dic[p->dicPos - p->reps[0] + in LzmaDec_TryDummy() local
563 matchByte <<= 1; in LzmaDec_TryDummy()
564 bit = (matchByte & offs); in LzmaDec_TryDummy()
/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.txt597 If (State > 7), the Literal Decoder also uses "matchByte" that represents
616 unsigned matchByte = OutWindow.GetByte(rep0 + 1);
619 unsigned matchBit = (matchByte >> 7) & 1;
620 matchByte <<= 1;