/external/lzma/CS/7zip/Compress/LZMA/ |
D | LzmaDecoder.cs | 78 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()
|
D | LzmaEncoder.cs | 89 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/ |
D | Encoder.java | 89 …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 …]
|
D | Decoder.java | 71 …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/ |
D | LzmaEnc.c | 586 static void LitEnc_EncodeMatched(CRangeEnc *p, CLzmaProb *probs, UInt32 symbol, UInt32 matchByte) in LitEnc_EncodeMatched() argument 592 matchByte <<= 1; in LitEnc_EncodeMatched() 593 RangeEnc_EncodeBit(p, probs + (offs + (matchByte & offs) + (symbol >> 8)), (symbol >> 7) & 1); in LitEnc_EncodeMatched() 595 offs &= ~(matchByte ^ symbol); in LitEnc_EncodeMatched() 649 static UInt32 LitEnc_GetPriceMatched(const CLzmaProb *probs, UInt32 symbol, UInt32 matchByte, UInt3… in LitEnc_GetPriceMatched() argument 656 matchByte <<= 1; in LitEnc_GetPriceMatched() 657 price += GET_PRICEa(probs[offs + (matchByte & offs) + (symbol >> 8)], (symbol >> 7) & 1); in LitEnc_GetPriceMatched() 659 offs &= ~(matchByte ^ symbol); in LitEnc_GetPriceMatched() 936 Byte curByte, matchByte; in GetOptimum() local 999 matchByte = *(data - (reps[0] + 1)); in GetOptimum() [all …]
|
D | LzmaDec.c | 178 unsigned matchByte = p->dic[(dicPos - rep0) + ((dicPos < rep0) ? dicBufSize : 0)]; in LzmaDec_DecodeReal() local 186 matchByte <<= 1; in LzmaDec_DecodeReal() 187 bit = (matchByte & offs); in LzmaDec_DecodeReal() 522 unsigned matchByte = p->dic[p->dicPos - p->reps[0] + in LzmaDec_TryDummy() local 530 matchByte <<= 1; in LzmaDec_TryDummy() 531 bit = (matchByte & offs); in LzmaDec_TryDummy()
|
/external/chromium_org/third_party/ots/third_party/lzma_sdk/ |
D | LzmaEnc.c | 587 static void LitEnc_EncodeMatched(CRangeEnc *p, CLzmaProb *probs, UInt32 symbol, UInt32 matchByte) in LitEnc_EncodeMatched() argument 593 matchByte <<= 1; in LitEnc_EncodeMatched() 594 RangeEnc_EncodeBit(p, probs + (offs + (matchByte & offs) + (symbol >> 8)), (symbol >> 7) & 1); in LitEnc_EncodeMatched() 596 offs &= ~(matchByte ^ symbol); in LitEnc_EncodeMatched() 650 static UInt32 LitEnc_GetPriceMatched(const CLzmaProb *probs, UInt32 symbol, UInt32 matchByte, UInt3… in LitEnc_GetPriceMatched() argument 657 matchByte <<= 1; in LitEnc_GetPriceMatched() 658 price += GET_PRICEa(probs[offs + (matchByte & offs) + (symbol >> 8)], (symbol >> 7) & 1); in LitEnc_GetPriceMatched() 660 offs &= ~(matchByte ^ symbol); in LitEnc_GetPriceMatched() 937 Byte curByte, matchByte; in GetOptimum() local 1000 matchByte = *(data - (reps[0] + 1)); in GetOptimum() [all …]
|
D | LzmaDec.c | 179 unsigned matchByte = p->dic[(dicPos - rep0) + ((dicPos < rep0) ? dicBufSize : 0)]; in LzmaDec_DecodeReal() local 187 matchByte <<= 1; in LzmaDec_DecodeReal() 188 bit = (matchByte & offs); in LzmaDec_DecodeReal() 523 unsigned matchByte = p->dic[p->dicPos - p->reps[0] + in LzmaDec_TryDummy() local 531 matchByte <<= 1; in LzmaDec_TryDummy() 532 bit = (matchByte & offs); in LzmaDec_TryDummy()
|
/external/chromium_org/third_party/lzma_sdk/ |
D | LzmaEnc.c | 586 static void LitEnc_EncodeMatched(CRangeEnc *p, CLzmaProb *probs, UInt32 symbol, UInt32 matchByte) in LitEnc_EncodeMatched() argument 592 matchByte <<= 1; in LitEnc_EncodeMatched() 593 RangeEnc_EncodeBit(p, probs + (offs + (matchByte & offs) + (symbol >> 8)), (symbol >> 7) & 1); in LitEnc_EncodeMatched() 595 offs &= ~(matchByte ^ symbol); in LitEnc_EncodeMatched() 649 static UInt32 LitEnc_GetPriceMatched(const CLzmaProb *probs, UInt32 symbol, UInt32 matchByte, UInt3… in LitEnc_GetPriceMatched() argument 656 matchByte <<= 1; in LitEnc_GetPriceMatched() 657 price += GET_PRICEa(probs[offs + (matchByte & offs) + (symbol >> 8)], (symbol >> 7) & 1); in LitEnc_GetPriceMatched() 659 offs &= ~(matchByte ^ symbol); in LitEnc_GetPriceMatched() 936 Byte curByte, matchByte; in GetOptimum() local 999 matchByte = *(data - (reps[0] + 1)); in GetOptimum() [all …]
|
D | LzmaDec.c | 178 unsigned matchByte = p->dic[(dicPos - rep0) + ((dicPos < rep0) ? dicBufSize : 0)]; in LzmaDec_DecodeReal() local 186 matchByte <<= 1; in LzmaDec_DecodeReal() 187 bit = (matchByte & offs); in LzmaDec_DecodeReal() 522 unsigned matchByte = p->dic[p->dicPos - p->reps[0] + in LzmaDec_TryDummy() local 530 matchByte <<= 1; in LzmaDec_TryDummy() 531 bit = (matchByte & offs); in LzmaDec_TryDummy()
|
/external/chromium_org/third_party/brotli/src/ |
D | ots-lzma.patch | 1002 + unsigned matchByte = p->dic[(dicPos - rep0) + ((dicPos < rep0) ? dicBufSize : 0)]; 1010 + matchByte <<= 1; 1011 + bit = (matchByte & offs); 1346 + unsigned matchByte = p->dic[p->dicPos - p->reps[0] + 1354 + matchByte <<= 1; 1355 + bit = (matchByte & offs); 3491 +static void LitEnc_EncodeMatched(CRangeEnc *p, CLzmaProb *probs, UInt32 symbol, UInt32 matchByte) 3497 + matchByte <<= 1; 3498 + RangeEnc_EncodeBit(p, probs + (offs + (matchByte & offs) + (symbol >> 8)), (symbol >> 7) & 1); 3500 + offs &= ~(matchByte ^ symbol); [all …]
|