Home
last modified time | relevance | path

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

/external/lzma/CS/7zip/Compress/LZMA/
DLzmaDecoder.cs125 uint GetState(uint pos, byte prevByte) in GetState() argument
126 { return ((pos & m_PosMask) << m_NumPrevBits) + (uint)(prevByte >> (8 - m_NumPrevBits)); } in GetState()
128 public byte DecodeNormal(RangeCoder.Decoder rangeDecoder, uint pos, byte prevByte) in DecodeNormal() argument
129 { return m_Coders[GetState(pos, prevByte)].DecodeNormal(rangeDecoder); } in DecodeNormal()
131 …public byte DecodeWithMatchByte(RangeCoder.Decoder rangeDecoder, uint pos, byte prevByte, byte mat… in DecodeWithMatchByte() argument
132 { return m_Coders[GetState(pos, prevByte)].DecodeWithMatchByte(rangeDecoder, matchByte); } in DecodeWithMatchByte()
259 byte prevByte = m_OutWindow.GetByte(0); in Code()
262 (uint)nowPos64, prevByte, m_OutWindow.GetByte(rep0)); in Code()
264 b = m_LiteralDecoder.DecodeNormal(m_RangeDecoder, (uint)nowPos64, prevByte); in Code()
DLzmaEncoder.cs163 public Encoder2 GetSubCoder(UInt32 pos, Byte prevByte) in GetSubCoder() argument
164 …{ return m_Coders[((pos & m_PosMask) << m_NumPrevBits) + (uint)(prevByte >> (8 - m_NumPrevBits))];… in GetSubCoder()
/external/lzma/Java/SevenZip/Compression/LZMA/
DDecoder.java117 Decoder2 GetDecoder(int pos, byte prevByte) in GetDecoder() argument
119 …return m_Coders[((pos & m_PosMask) << m_NumPrevBits) + ((prevByte & 0xFF) >>> (8 - m_NumPrevBits))… in GetDecoder()
212 byte prevByte = 0; in Code()
218 LiteralDecoder.Decoder2 decoder2 = m_LiteralDecoder.GetDecoder((int)nowPos64, prevByte); in Code()
220 prevByte = decoder2.DecodeWithMatchByte(m_RangeDecoder, m_OutWindow.GetByte(rep0)); in Code()
222 prevByte = decoder2.DecodeNormal(m_RangeDecoder); in Code()
223 m_OutWindow.PutByte(prevByte); in Code()
304 prevByte = m_OutWindow.GetByte(0); in Code()
DEncoder.java163 public Encoder2 GetSubCoder(int pos, byte prevByte) in GetSubCoder() argument
164 …{ return m_Coders[((pos & m_PosMask) << m_NumPrevBits) + ((prevByte & 0xFF) >>> (8 - m_NumPrevBits… in GetSubCoder()
/external/lzma/C/
DBcj2Enc.c34 p->prevByte = 0; in Bcj2Enc_Init()
131 if (p->prevByte == 0x0F && (src[0] & 0xF0) == 0x80) in Bcj2Enc_Encode_2()
159 p->prevByte = src[-1]; in Bcj2Enc_Encode_2()
167 Byte context = (Byte)(num == 0 ? p->prevByte : src[-1]); in Bcj2Enc_Encode_2()
198 p->prevByte = b; in Bcj2Enc_Encode_2()
211 p->prevByte = src[3]; in Bcj2Enc_Encode_2()
DBcj2.h104 Byte prevByte; member
DLzmaEnc.c1114 #define LIT_PROBS(pos, prevByte) \ argument
1115 (p->litProbs + (UInt32)3 * (((((pos) << 8) + (prevByte)) & p->lpMask) << p->lc))
/external/xz-java/src/org/tukaani/xz/lzma/
DLZMAEncoderNormal.java180 int prevByte = lz.getByte(1); in getNextSymbol() local
182 prevByte, pos, state); in getNextSymbol()
469 int prevByte = lz.getByte(len, 1);
470 price += literalEncoder.getPrice(curByte, matchByte, prevByte,
544 int prevByte = lz.getByte(len, 1);
547 prevByte, pos + len,
DLZMACoder.java101 final int getSubcoderIndex(int prevByte, int pos) { in getSubcoderIndex() argument
102 int low = prevByte >> (8 - lc); in getSubcoderIndex()
DLZMAEncoder.java567 int prevByte, int pos, State state) { in getPrice() argument
571 int i = getSubcoderIndex(prevByte, pos); in getPrice()
/external/lzma/CPP/7zip/Bundles/LzmaSpec/
DLzmaSpec.cpp374 unsigned prevByte = 0; in DecodeLiteral() local
376 prevByte = OutWindow.GetByte(1); in DecodeLiteral()
379 unsigned litState = ((OutWindow.TotalPos & ((1 << lp) - 1)) << lc) + (prevByte >> (8 - lc)); in DecodeLiteral()
/external/lzma/DOC/
Dlzma-specification.txt607 unsigned prevByte = 0;
609 prevByte = OutWindow.GetByte(1);
612 unsigned litState = ((OutWindow.TotalPos & ((1 << lp) - 1)) << lc) + (prevByte >> (8 - lc));