Home
last modified time | relevance | path

Searched refs:rangeDecoder (Results 1 – 5 of 5) sorted by relevance

/external/lzma/CS/7zip/Compress/RangeCoder/
DRangeCoderBit.cs89 public uint Decode(RangeCoder.Decoder rangeDecoder) in Decode()
91 uint newBound = (uint)(rangeDecoder.Range >> kNumBitModelTotalBits) * (uint)Prob; in Decode()
92 if (rangeDecoder.Code < newBound) in Decode()
94 rangeDecoder.Range = newBound; in Decode()
96 if (rangeDecoder.Range < Decoder.kTopValue) in Decode()
98 rangeDecoder.Code = (rangeDecoder.Code << 8) | (byte)rangeDecoder.Stream.ReadByte(); in Decode()
99 rangeDecoder.Range <<= 8; in Decode()
105 rangeDecoder.Range -= newBound; in Decode()
106 rangeDecoder.Code -= newBound; in Decode()
108 if (rangeDecoder.Range < Decoder.kTopValue) in Decode()
[all …]
DRangeCoderBitTree.cs120 public uint Decode(RangeCoder.Decoder rangeDecoder) in Decode()
124 m = (m << 1) + Models[m].Decode(rangeDecoder); in Decode()
128 public uint ReverseDecode(RangeCoder.Decoder rangeDecoder) in ReverseDecode()
134 uint bit = Models[m].Decode(rangeDecoder); in ReverseDecode()
143 RangeCoder.Decoder rangeDecoder, int NumBitLevels) in ReverseDecode()
149 uint bit = Models[startIndex + m].Decode(rangeDecoder); in ReverseDecode()
/external/lzma/Java/SevenZip/Compression/RangeCoder/
DBitTreeDecoder.java19 public int Decode(Decoder rangeDecoder) throws java.io.IOException in Decode() argument
23 m = (m << 1) + rangeDecoder.DecodeBit(Models, m); in Decode()
27 public int ReverseDecode(Decoder rangeDecoder) throws java.io.IOException in ReverseDecode() argument
33 int bit = rangeDecoder.DecodeBit(Models, m); in ReverseDecode()
42 Decoder rangeDecoder, int NumBitLevels) throws java.io.IOException in ReverseDecode() argument
48 int bit = rangeDecoder.DecodeBit(Models, startIndex + m); in ReverseDecode()
/external/lzma/CS/7zip/Compress/LZMA/
DLzmaDecoder.cs42 public uint Decode(RangeCoder.Decoder rangeDecoder, uint posState) in Decode() argument
44 if (m_Choice.Decode(rangeDecoder) == 0) in Decode()
45 return m_LowCoder[posState].Decode(rangeDecoder); in Decode()
49 if (m_Choice2.Decode(rangeDecoder) == 0) in Decode()
50 symbol += m_MidCoder[posState].Decode(rangeDecoder); in Decode()
54 symbol += m_HighCoder.Decode(rangeDecoder); in Decode()
69 public byte DecodeNormal(RangeCoder.Decoder rangeDecoder) in DecodeNormal()
73 symbol = (symbol << 1) | m_Decoders[symbol].Decode(rangeDecoder); in DecodeNormal()
78 public byte DecodeWithMatchByte(RangeCoder.Decoder rangeDecoder, byte matchByte) in DecodeWithMatchByte()
85 uint bit = m_Decoders[((1 + matchBit) << 8) + symbol].Decode(rangeDecoder); in DecodeWithMatchByte()
[all …]
/external/lzma/Java/SevenZip/Compression/LZMA/
DDecoder.java38 …public int Decode(SevenZip.Compression.RangeCoder.Decoder rangeDecoder, int posState) throws IOExc… in Decode() argument
40 if (rangeDecoder.DecodeBit(m_Choice, 0) == 0) in Decode()
41 return m_LowCoder[posState].Decode(rangeDecoder); in Decode()
43 if (rangeDecoder.DecodeBit(m_Choice, 1) == 0) in Decode()
44 symbol += m_MidCoder[posState].Decode(rangeDecoder); in Decode()
46 symbol += Base.kNumMidLenSymbols + m_HighCoder.Decode(rangeDecoder); in Decode()
62 public byte DecodeNormal(SevenZip.Compression.RangeCoder.Decoder rangeDecoder) throws IOException in DecodeNormal() argument
66 symbol = (symbol << 1) | rangeDecoder.DecodeBit(m_Decoders, symbol); in DecodeNormal()
71 …public byte DecodeWithMatchByte(SevenZip.Compression.RangeCoder.Decoder rangeDecoder, byte matchBy… in DecodeWithMatchByte() argument
78 int bit = rangeDecoder.DecodeBit(m_Decoders, ((1 + matchBit) << 8) + symbol); in DecodeWithMatchByte()
[all …]