Home
last modified time | relevance | path

Searched refs:unpackSize (Results 1 – 25 of 30) sorted by relevance

12

/external/lzma/C/
DLzma2Dec.c90 p->unpackSize = 0; in Lzma2Dec_Init()
119 p->unpackSize = (UInt32)(b & 0x1F) << 16; in Lzma2Dec_UpdateState()
124 p->unpackSize |= (UInt32)b << 8; in Lzma2Dec_UpdateState()
128 p->unpackSize |= (UInt32)b; in Lzma2Dec_UpdateState()
129 p->unpackSize++; in Lzma2Dec_UpdateState()
130 PRF(printf(" %7u", (unsigned)p->unpackSize)); in Lzma2Dec_UpdateState()
219 if (outCur >= p->unpackSize) in Lzma2Dec_DecodeToDic()
221 outCur = (SizeT)p->unpackSize; in Lzma2Dec_DecodeToDic()
248 p->unpackSize -= (UInt32)inCur; in Lzma2Dec_DecodeToDic()
249 p->state = (p->unpackSize == 0) ? LZMA2_STATE_CONTROL : LZMA2_STATE_DATA_CONT; in Lzma2Dec_DecodeToDic()
[all …]
DLzma86Dec.c12 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize) in Lzma86_GetUnpackSize() argument
17 *unpackSize = 0; in Lzma86_GetUnpackSize()
19 *unpackSize += ((UInt64)src[LZMA86_SIZE_OFFSET + i]) << (8 * i); in Lzma86_GetUnpackSize()
DLzma2Enc.c119 Byte *dest, size_t *destLen, UInt32 desiredPackSize, UInt32 *unpackSize);
134 UInt32 unpackSize = LZMA2_UNPACK_SIZE_MAX; in Lzma2EncInt_EncodeSubblock() local
146 outBuf + lzHeaderSize, &packSize, LZMA2_PACK_SIZE_MAX, &unpackSize); in Lzma2EncInt_EncodeSubblock()
148 PRF(printf("\npackSize = %7d unpackSize = %7d ", packSize, unpackSize)); in Lzma2EncInt_EncodeSubblock()
150 if (unpackSize == 0) in Lzma2EncInt_EncodeSubblock()
154 useCopyBlock = (packSize + 2 >= unpackSize || packSize > (1 << 16)); in Lzma2EncInt_EncodeSubblock()
168 while (unpackSize > 0) in Lzma2EncInt_EncodeSubblock()
170 UInt32 u = (unpackSize < LZMA2_COPY_CHUNK_SIZE) ? unpackSize : LZMA2_COPY_CHUNK_SIZE; in Lzma2EncInt_EncodeSubblock()
176 memcpy(outBuf + destPos, LzmaEnc_GetCurBuf(p->enc) - unpackSize, u); in Lzma2EncInt_EncodeSubblock()
177 unpackSize -= u; in Lzma2EncInt_EncodeSubblock()
[all …]
DXzEnc.c33 #define XZ_GET_MAX_BLOCK_PACK_SIZE(unpackSize) ((unpackSize) + ((unpackSize) >> 10) + 16 + 64) argument
35 …Z_GET_ESTIMATED_BLOCK_TOTAL_PACK_SIZE(unpackSize) (XZ_BLOCK_HEADER_SIZE_MAX + XZ_GET_MAX_BLOCK_PAC… argument
78 if (XzBlock_HasUnpackSize(p)) pos += Xz_WriteVarInt(header + pos, p->unpackSize); in XzBlock_WriteHeader()
152 static SRes XzEncIndex_PreAlloc(CXzEncIndex *p, UInt64 numBlocks, UInt64 unpackSize, UInt64 totalSi… in XzEncIndex_PreAlloc() argument
158 pos2 += Xz_WriteVarInt(buf + pos2, unpackSize); in XzEncIndex_PreAlloc()
174 static SRes XzEncIndex_AddIndexRecord(CXzEncIndex *p, UInt64 unpackSize, UInt64 totalSize, ISzAlloc… in XzEncIndex_AddIndexRecord() argument
178 pos += Xz_WriteVarInt(buf + pos, unpackSize); in XzEncIndex_AddIndexRecord()
698 UInt64 unpackSize; member
855 blockSizes->unpackSize = checkInStream.processed; in Xz_CompressBlock()
878 block.unpackSize = blockSizes->unpackSize; in Xz_CompressBlock()
[all …]
DLzma2Dec.h21 UInt32 unpackSize; member
93 #define Lzma2Dec_GetUnpackExtra(p) ((p)->isExtraMode ? (p)->unpackSize : 0);
D7zDec.c399 UInt64 unpackSize = unpackSizes[ci]; in SzFolder_Decode2() local
404 outSizeCur = (SizeT)unpackSize; in SzFolder_Decode2()
405 if (outSizeCur != unpackSize) in SzFolder_Decode2()
415 if (unpackSize > outSize) /* check it */ in SzFolder_Decode2()
417 tempBuf3 = outBufCur = outBuffer + (outSize - (size_t)unpackSize); in SzFolder_Decode2()
418 tempSize3 = outSizeCur = (SizeT)unpackSize; in SzFolder_Decode2()
DXzDec.c827 p->unpackSize = (UInt64)(Int64)-1; in XzBlock_Parse()
829 READ_VARINT_AND_CHECK(header, pos, headerSize, &p->unpackSize); in XzBlock_Parse()
969 static void XzUnpacker_UpdateIndex(CXzUnpacker *p, UInt64 packSize, UInt64 unpackSize) in XzUnpacker_UpdateIndex() argument
973 num += Xz_WriteVarInt(temp + num, unpackSize); in XzUnpacker_UpdateIndex()
1013 if (rem == 0 && p->block.unpackSize == p->unpackSize) in XzUnpacker_Code()
1017 if (p->block.unpackSize != (UInt64)(Int64)-1) in XzUnpacker_Code()
1019 UInt64 rem = p->block.unpackSize - p->unpackSize; in XzUnpacker_Code()
1053 p->unpackSize += destLen2; in XzUnpacker_Code()
1070 XzUnpacker_UpdateIndex(p, XzUnpacker_GetPackSizeForIndex(p), p->unpackSize); in XzUnpacker_Code()
1077 || (p->block.unpackSize != (UInt64)(Int64)-1 && p->block.unpackSize != p->unpackSize)) in XzUnpacker_Code()
[all …]
DXz.h45 UInt64 unpackSize; member
108 UInt64 unpackSize; member
227 UInt64 unpackSize; member
DLzma86.h87 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize);
D7zArcIn.c997 UInt64 unpackSize = SzAr_GetFolderUnpackSize(p, fo); in SzReadAndDecodePackedStreams() local
998 if ((size_t)unpackSize != unpackSize) in SzReadAndDecodePackedStreams()
1000 if (!Buf_Create(tempBuf, (size_t)unpackSize, allocTemp)) in SzReadAndDecodePackedStreams()
1670 size_t unpackSize = (size_t)unpackSizeSpec; in SzArEx_Extract() local
1672 if (unpackSize != unpackSizeSpec) in SzArEx_Extract()
1680 *outBufferSize = unpackSize; in SzArEx_Extract()
1681 if (unpackSize != 0) in SzArEx_Extract()
1683 *tempBuf = (Byte *)ISzAlloc_Alloc(allocMain, unpackSize); in SzArEx_Extract()
1691 inStream, p->dataPos, *tempBuf, unpackSize, allocTemp); in SzArEx_Extract()
DXzIn.c60 ADD_SIZE_CHECK(size, p->blocks[i].unpackSize); in Xz_GetUnpackSize()
113 READ_VARINT_AND_CHECK(buf, pos, size, &block->unpackSize); in Xz_ReadIndex2()
/external/lzma/C/Util/Lzma/
DLzmaUtil.c57 UInt64 unpackSize) in Decode2() argument
59 int thereIsSize = (unpackSize != (UInt64)(Int64)-1); in Decode2()
78 if (thereIsSize && outProcessed > unpackSize) in Decode2()
80 outProcessed = (SizeT)unpackSize; in Decode2()
88 unpackSize -= outProcessed; in Decode2()
96 if (res != SZ_OK || (thereIsSize && unpackSize == 0)) in Decode2()
112 UInt64 unpackSize; in Decode() local
125 unpackSize = 0; in Decode()
127 unpackSize += (UInt64)header[LZMA_PROPS_SIZE + i] << (i * 8); in Decode()
131 res = Decode2(&state, outStream, inStream, unpackSize); in Decode()
/external/lzma/CPP/7zip/Bundles/LzmaSpec/
DLzmaSpec.cpp354 int Decode(bool unpackSizeDefined, UInt64 unpackSize);
467 int CLzmaDecoder::Decode(bool unpackSizeDefined, UInt64 unpackSize) in Decode() argument
479 if (unpackSizeDefined && unpackSize == 0 && !markerIsMandatory) in Decode()
487 if (unpackSizeDefined && unpackSize == 0) in Decode()
491 unpackSize--; in Decode()
499 if (unpackSizeDefined && unpackSize == 0) in Decode()
509 unpackSize--; in Decode()
548 if (unpackSizeDefined && unpackSize == 0) in Decode()
555 if (unpackSizeDefined && unpackSize < len) in Decode()
557 len = (unsigned)unpackSize; in Decode()
[all …]
/external/lzma/CPP/7zip/Archive/Common/
DCoderMixer2.h208 void SetCoderInfo(const UInt64 *unpackSize, const UInt64 * const *packSizes, bool finish);
283 …virtual void SetCoderInfo(unsigned coderIndex, const UInt64 *unpackSize, const UInt64 * const *pac…
349 …virtual void SetCoderInfo(unsigned coderIndex, const UInt64 *unpackSize, const UInt64 * const *pac… in SetCoderInfo() argument
350 { _coders[coderIndex].SetCoderInfo(unpackSize, packSizes, finish); } in SetCoderInfo()
431 …virtual void SetCoderInfo(unsigned coderIndex, const UInt64 *unpackSize, const UInt64 * const *pac… in SetCoderInfo() argument
432 { _coders[coderIndex].SetCoderInfo(unpackSize, packSizes, finish); } in SetCoderInfo()
DCoderMixer2.cpp211 void CCoder::SetCoderInfo(const UInt64 *unpackSize, const UInt64 * const *packSizes, bool finish) in SetCoderInfo() argument
215 if (unpackSize) in SetCoderInfo()
217 UnpackSize = *unpackSize; in SetCoderInfo()
/external/lzma/CPP/7zip/Archive/
DLzmaHandler.cpp318 UInt64 unpackSize = GetUi64(p + 1 + 4); in IsArc_Lzma() local
319 if (unpackSize != (UInt64)(Int64)-1) in IsArc_Lzma()
324 if (unpackSize != 0) in IsArc_Lzma()
330 if (unpackSize != (UInt64)(Int64)-1) in IsArc_Lzma()
512 UInt64 unpackSize = 0; in Extract() local
520 lps->OutSize = unpackSize; in Extract()
547 unpackSize = outStreamSpec->GetSize(); in Extract()
573 _unpackSize = unpackSize; in Extract()
DXzHandler.cpp577 if (bs.unpackSize != 0) in Open2()
589 unpackPos += bs.unpackSize; in Open2()
590 if (_maxBlocksSize < bs.unpackSize) in Open2()
591 _maxBlocksSize = bs.unpackSize; in Open2()
753 size_t unpackSize, Byte *dest in DecodeBlock() argument
771 XzUnpacker_SetOutBuf(&xzu.p, dest, unpackSize); in DecodeBlock()
796 SizeT outLen = unpackSize - outPos; in DecodeBlock()
827 if (packRem != 0 || !blockFinished || unpackSize != outPos) in DecodeBlock()
863 const UInt64 unpackSize = _handlerSpec->_blocks[bi + 1].UnpackPos - block.UnpackPos; in Read() local
864 if (_cache.Size() < unpackSize) in Read()
[all …]
/external/lzma/CPP/7zip/Archive/7z/
D7zDecode.cpp225 const UInt64 *unpackSize in Decode() argument
260 if (unpackSize) in Decode()
262 if (*unpackSize > folderUnpackSize) in Decode()
264 fullUnpack = (*unpackSize == folderUnpackSize); in Decode()
471 (unpackSize && i == bindInfo.UnpackCoder) ? in Decode()
472 unpackSize : in Decode()
D7zEncode.cpp300 UInt64 &unpackSize, in Encode() argument
388 NWindows::NCOM::CPropVariant prop = (UInt64)unpackSize; in Encode()
469 unpackSize = 0; in Encode()
478 unpackSize = streamSize; in Encode()
D7zDecode.h51 const UInt64 *unpackSize // if (!unpackSize), then full folder is required
D7zEncode.h84 UInt64 &unpackSize,
D7zIn.cpp1094 size_t unpackSize = (size_t)unpackSize64; in ReadAndDecodePackedStreams() local
1095 if (unpackSize != unpackSize64) in ReadAndDecodePackedStreams()
1097 data.Alloc(unpackSize); in ReadAndDecodePackedStreams()
1101 outStreamSpec->Init(data, unpackSize); in ReadAndDecodePackedStreams()
1131 if (CrcCalc(data, unpackSize) != folders.FolderCRCs.Vals[i]) in ReadAndDecodePackedStreams()
/external/lzma/CPP/7zip/Bundles/LzmaCon/
DLzmaAlone.cpp748 UInt64 unpackSize = 0; in main2() local
750 unpackSize |= ((UInt64)header[kPropertiesSize + i]) << (8 * i); in main2()
752 bool unpackSizeDefined = (unpackSize != (UInt64)(Int64)-1); in main2()
754 …HRESULT res = decoder->Code(inStream, outStream, NULL, unpackSizeDefined ? &unpackSize : NULL, pro… in main2()
768 if (unpackSizeDefined && unpackSize != decoderSpec->GetOutputProcessedSize()) in main2()
/external/lzma/DOC/
Dlzma-specification.txt862 unpackSize contains any value
872 unpackSize contains unpack size
880 unpackSize contains unpack size
902 The reference implementation of LZMA decoder uses "unpackSize" variable
904 "unpackSize" value after each decoded LITERAL or MATCH.
909 if (unpackSizeDefined && unpackSize == 0 && !markerIsMandatory)
997 if (unpackSizeDefined && unpackSize == 0)
1004 Then the decoder must update the "state" value and "unpackSize" value;
1007 unpackSize--;
1050 if (unpackSizeDefined && unpackSize == 0)
[all …]
/external/lzma/CPP/7zip/UI/FileManager/
DProgressDialog2.cpp845 const UInt64 unpackSize = CompressingMode ? inSize : outSize; in UpdateStatInfo() local
847 if (IS_UNDEFINED_VAL(unpackSize) && in UpdateStatInfo()
855 ShowSize(IDT_PROGRESS_PROCESSED_VAL, unpackSize, _processed_Prev); in UpdateStatInfo()
859 IS_DEFINED_VAL(unpackSize) && in UpdateStatInfo()
860 unpackSize != 0) in UpdateStatInfo()
863 UInt64 ratio = packSize * 100 / unpackSize; in UpdateStatInfo()

12