Home
last modified time | relevance | path

Searched refs:posSlot (Results 1 – 8 of 8) sorted by relevance

/external/lzma/Java/SevenZip/Compression/LZMA/
DEncoder.java1046 int posSlot = (1 << Base.kNumPosSlotBits) - 1; in WriteEndMarker() local
1048 _posSlotEncoder[lenToPosState].Encode(_rangeEncoder, posSlot); in WriteEndMarker()
1174 int posSlot = GetPosSlot(pos); in CodeOneBlock() local
1176 _posSlotEncoder[lenToPosState].Encode(_rangeEncoder, posSlot); in CodeOneBlock()
1178 if (posSlot >= Base.kStartPosModelIndex) in CodeOneBlock()
1180 int footerBits = (int)((posSlot >> 1) - 1); in CodeOneBlock()
1181 int baseVal = ((2 | (posSlot & 1)) << footerBits); in CodeOneBlock()
1184 if (posSlot < Base.kEndPosModelIndex) in CodeOneBlock()
1186 baseVal - posSlot - 1, _rangeEncoder, footerBits, posReduced); in CodeOneBlock()
1318 int posSlot = GetPosSlot(i); in FillDistancesPrices() local
[all …]
DDecoder.java273 int posSlot = m_PosSlotDecoder[Base.GetLenToPosState(len)].Decode(m_RangeDecoder); in Code() local
274 if (posSlot >= Base.kStartPosModelIndex) in Code()
276 int numDirectBits = (posSlot >> 1) - 1; in Code()
277 rep0 = ((2 | (posSlot & 1)) << numDirectBits); in Code()
278 if (posSlot < Base.kEndPosModelIndex) in Code()
280 rep0 - posSlot - 1, m_RangeDecoder, numDirectBits); in Code()
295 rep0 = posSlot; in Code()
/external/lzma/CS/7zip/Compress/LZMA/
DLzmaDecoder.cs315 uint posSlot = m_PosSlotDecoder[Base.GetLenToPosState(len)].Decode(m_RangeDecoder); in Code()
316 if (posSlot >= Base.kStartPosModelIndex) in Code()
318 int numDirectBits = (int)((posSlot >> 1) - 1); in Code()
319 rep0 = ((2 | (posSlot & 1)) << numDirectBits); in Code()
320 if (posSlot < Base.kEndPosModelIndex) in Code()
322 rep0 - posSlot - 1, m_RangeDecoder, numDirectBits); in Code()
331 rep0 = posSlot; in Code()
DLzmaEncoder.cs1046 UInt32 posSlot = (1 << Base.kNumPosSlotBits) - 1; in WriteEndMarker()
1048 _posSlotEncoder[lenToPosState].Encode(_rangeEncoder, posSlot); in WriteEndMarker()
1176 UInt32 posSlot = GetPosSlot(pos); in CodeOneBlock()
1178 _posSlotEncoder[lenToPosState].Encode(_rangeEncoder, posSlot); in CodeOneBlock()
1180 if (posSlot >= Base.kStartPosModelIndex) in CodeOneBlock()
1182 int footerBits = (int)((posSlot >> 1) - 1); in CodeOneBlock()
1183 UInt32 baseVal = ((2 | (posSlot & 1)) << footerBits); in CodeOneBlock()
1186 if (posSlot < Base.kEndPosModelIndex) in CodeOneBlock()
1188 baseVal - posSlot - 1, _rangeEncoder, footerBits, posReduced); in CodeOneBlock()
1318 UInt32 posSlot = GetPosSlot(i); in FillDistancesPrices()
[all …]
/external/lzma/CPP/7zip/Bundles/LzmaSpec/
DLzmaSpec.cpp419 unsigned posSlot = PosSlotDecoder[lenState].Decode(&RangeDec); in DecodeDistance() local
420 if (posSlot < 4) in DecodeDistance()
421 return posSlot; in DecodeDistance()
423 unsigned numDirectBits = (unsigned)((posSlot >> 1) - 1); in DecodeDistance()
424 UInt32 dist = ((2 | (posSlot & 1)) << numDirectBits); in DecodeDistance()
425 if (posSlot < kEndPosModelIndex) in DecodeDistance()
426 dist += BitTreeReverseDecode(PosDecoders + dist - posSlot, numDirectBits, &RangeDec); in DecodeDistance()
/external/lzma/DOC/
Dlzma-specification.txt764 At first stage the distance decoder decodes 6-bit "posSlot" value with bit
766 "posSlot" values.
768 unsigned posSlot = PosSlotDecoder[lenState].Decode(&RangeDec);
772 posSlot (decimal) /
800 "Reverse" scheme. It uses separated binary tree for each posSlot from 4 to 13.
804 is used for all posSlot values.
806 If (posSlot < 4), the "dist" value is equal to posSlot value.
808 If (posSlot >= 4), the decoder uses "posSlot" value to calculate the value of
811 If (4 <= posSlot < kEndPosModelIndex), the decoder uses bit tree decoders.
812 (one separated bit tree decoder per one posSlot value) and "Reverse" scheme.
[all …]
/external/lzma/C/
DLzmaDec.c452 unsigned posSlot = (unsigned)distance; in LZMA_DECODE_REAL() local
455 if (posSlot < kEndPosModelIndex) in LZMA_DECODE_REAL()
806 unsigned posSlot; in LzmaDec_TryDummy() local
810 TREE_DECODE_CHECK(prob, 1 << kNumPosSlotBits, posSlot); in LzmaDec_TryDummy()
811 if (posSlot >= kStartPosModelIndex) in LzmaDec_TryDummy()
813 unsigned numDirectBits = ((posSlot >> 1) - 1); in LzmaDec_TryDummy()
817 if (posSlot < kEndPosModelIndex) in LzmaDec_TryDummy()
819 prob = probs + SpecPos + ((2 | (posSlot & 1)) << numDirectBits); in LzmaDec_TryDummy()
DLzmaEnc.c1741 unsigned offs, posSlot, len; in GetOptimum() local
1755 GetPosSlot2(dist, posSlot); in GetOptimum()
1767 price += p->posSlotPrices[lenNorm][posSlot] + p->alignPrices[dist & kAlignMask]; in GetOptimum()
1846 GetPosSlot2(dist, posSlot); in GetOptimum()
2118 unsigned posSlot = GetPosSlot1(i); in FillDistancesPrices() local
2119 unsigned footerBits = (posSlot >> 1) - 1; in FillDistancesPrices()
2120 unsigned base = ((2 | (posSlot & 1)) << footerBits); in FillDistancesPrices()
2419 unsigned posSlot; in LzmaEnc_CodeOneBlock() local
2434 GetPosSlot(dist, posSlot); in LzmaEnc_CodeOneBlock()
2437 UInt32 sym = (UInt32)posSlot + (1 << kNumPosSlotBits); in LzmaEnc_CodeOneBlock()
[all …]