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/
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 …]
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()
/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/C/
DLzmaEnc.c1463 UInt32 offs, curBack, posSlot; in GetOptimum() local
1472 GetPosSlot2(curBack, posSlot); in GetOptimum()
1482 … curAndLenPrice += p->posSlotPrices[lenToPosState][posSlot] + p->alignPrices[curBack & kAlignMask]; in GetOptimum()
1545 GetPosSlot2(curBack, posSlot); in GetOptimum()
1713 UInt32 posSlot = GetPosSlot1(i); in FillDistancesPrices() local
1714 UInt32 footerBits = ((posSlot >> 1) - 1); in FillDistancesPrices()
1715 UInt32 base = ((2 | (posSlot & 1)) << footerBits); in FillDistancesPrices()
1716 …tempPrices[i] = RcTree_ReverseGetPrice(p->posEncoders + base - posSlot - 1, footerBits, i - base, … in FillDistancesPrices()
1721 UInt32 posSlot; in FillDistancesPrices() local
1724 for (posSlot = 0; posSlot < p->distTableSize; posSlot++) in FillDistancesPrices()
[all …]
DLzmaDec.c373 unsigned posSlot = (unsigned)distance; in LzmaDec_DecodeReal() local
376 if (posSlot < kEndPosModelIndex) in LzmaDec_DecodeReal()
379 prob = probs + SpecPos + distance - posSlot - 1; in LzmaDec_DecodeReal()
723 unsigned posSlot; in LzmaDec_TryDummy() local
727 TREE_DECODE_CHECK(prob, 1 << kNumPosSlotBits, posSlot); in LzmaDec_TryDummy()
728 if (posSlot >= kStartPosModelIndex) in LzmaDec_TryDummy()
730 unsigned numDirectBits = ((posSlot >> 1) - 1); in LzmaDec_TryDummy()
734 if (posSlot < kEndPosModelIndex) in LzmaDec_TryDummy()
736 prob = probs + SpecPos + ((2 | (posSlot & 1)) << numDirectBits) - posSlot - 1; in LzmaDec_TryDummy()
/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 …]