/external/xz-java/src/org/tukaani/xz/ |
LZMA2Decoder.java | 15 private int dictSize; 24 dictSize = 2 | (props[0] & 1); 25 dictSize <<= (props[0] >>> 1) + 11; 29 return LZMA2InputStream.getMemoryUsage(dictSize); 33 return new LZMA2InputStream(in, dictSize, null, arrayCache);
|
LZMA2Options.java | 132 private int dictSize; 171 public LZMA2Options(int dictSize, int lc, int lp, int pb, int mode, 174 setDictSize(dictSize); 207 dictSize = presetToDictSize[preset]; 235 * <code>dictSize</code> is not supported 237 public void setDictSize(int dictSize) throws UnsupportedOptionsException { 238 if (dictSize < DICT_SIZE_MIN) 241 + dictSize + " B"); 243 if (dictSize > DICT_SIZE_MAX) 246 + (DICT_SIZE_MAX >> 20) + " MiB: " + dictSize + " B") [all...] |
LZMA2OutputStream.java | 42 private static int getExtraSizeBefore(int dictSize) { 43 return COMPRESSED_SIZE_MAX > dictSize 44 ? COMPRESSED_SIZE_MAX - dictSize : 0; 49 int dictSize = options.getDictSize(); 50 int extraSizeBefore = getExtraSizeBefore(dictSize); 52 dictSize, extraSizeBefore, 66 int dictSize = options.getDictSize(); 67 int extraSizeBefore = getExtraSizeBefore(dictSize); 71 dictSize, extraSizeBefore, options.getNiceLen(), 79 lz.setPresetDict(dictSize, presetDict) [all...] |
LZMAInputStream.java | 71 * @param dictSize LZMA dictionary size as bytes, should be 81 * if <code>dictSize</code> is outside 88 public static int getMemoryUsage(int dictSize, byte propsByte) 90 if (dictSize < 0 || dictSize > DICT_SIZE_MAX) 102 return getMemoryUsage(dictSize, lc, lp); 109 * @param dictSize LZMA dictionary size as bytes, must be 121 public static int getMemoryUsage(int dictSize, int lc, int lp) { 132 return 10 + getDictSize(dictSize) / 1024 136 private static int getDictSize(int dictSize) { [all...] |
LZMAOutputStream.java | 64 int dictSize = options.getDictSize(); 68 dictSize, 0, options.getNiceLen(), 81 lz.setPresetDict(dictSize, presetDict); 93 out.write(dictSize & 0xFF); 94 dictSize >>>= 8;
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/ |
LzmaEnc.h | 16 UInt32 dictSize; /* (1 << 12) <= dictSize <= (1 << 27) for 32-bit version
17 (1 << 12) <= dictSize <= (1 << 30) for 64-bit version
|
LzmaDec.c | 1053 UInt32 dictSize = propNew.dicSize;
1055 if (dictSize >= ((UInt32)1 << 30)) mask = ((UInt32)1 << 22) - 1;
1056 else if (dictSize >= ((UInt32)1 << 22)) mask = ((UInt32)1 << 20) - 1;;
1057 dicBufSize = ((SizeT)dictSize + mask) & ~mask;
1058 if (dicBufSize < dictSize)
1059 dicBufSize = dictSize;
|
/external/lzma/C/ |
LzmaEnc.h | 16 UInt32 dictSize; /* (1 << 12) <= dictSize <= (1 << 27) for 32-bit version
17 (1 << 12) <= dictSize <= (3 << 29) for 64-bit version
|
Lzma2Enc.c | 316 const UInt32 dictSize = p->lzmaProps.dictSize;
317 UInt64 blockSize = (UInt64)dictSize << 2;
320 if (blockSize < dictSize) blockSize = dictSize;
|
LzmaDec.c | 1138 UInt32 dictSize = propNew.dicSize;
1140 if (dictSize >= ((UInt32)1 << 30)) mask = ((UInt32)1 << 22) - 1;
1141 else if (dictSize >= ((UInt32)1 << 22)) mask = ((UInt32)1 << 20) - 1;;
1142 dicBufSize = ((SizeT)dictSize + mask) & ~mask;
1143 if (dicBufSize < dictSize)
1144 dicBufSize = dictSize;
[all...] |
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/ |
LZMA2Decoder.java | 55 final int dictSize = getDictSize(opts); 56 final int lead = Integer.numberOfLeadingZeros(dictSize); 57 final int secondBit = (dictSize >>> (30 - lead)) - 2;
|
LZMADecoder.java | 39 final int dictSize = getDictionarySize(coder); 40 if (dictSize > LZMAInputStream.DICT_SIZE_MAX) { 43 return new LZMAInputStream(in, uncompressedLength, propsByte, dictSize); 58 int dictSize = options.getDictSize(); 61 ByteUtils.toLittleEndian(o, dictSize, 1, 4);
|
/external/lzma/CPP/7zip/Compress/ |
Lzma2Decoder.cpp | 61 static UInt64 Get_ExpectedBlockSize_From_Dict(UInt32 dictSize)
65 UInt64 blockSize = (UInt64)dictSize << 2;
68 if (blockSize < dictSize) blockSize = dictSize;
113 UInt32 dictSize = LZMA2_DIC_SIZE_FROM_PROP_FULL(_prop);
114 UInt64 expectedBlockSize64 = Get_ExpectedBlockSize_From_Dict(dictSize);
|
/external/lz4/examples/ |
dictionaryRandomAccess.c | 56 void test_compress(FILE* outFp, FILE* inpFp, void *dict, int dictSize) 81 LZ4_loadDict(lz4Stream, dict, dictSize); 105 void test_decompress(FILE* outFp, FILE* inpFp, void *dict, int dictSize, int offset, int length) 156 LZ4_setStreamDecode(lz4StreamDecode, dict, dictSize); 207 int dictSize; 231 dictSize = (int)read_bin(dictFp, dict, DICTIONARY_BYTES); 241 test_compress(outFp, inpFp, dict, dictSize);
|
/external/lz4/lib/ |
lz4.h | 279 LZ4LIB_API int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 336 LZ4LIB_API int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 387 LZ4LIB_API int LZ4_decompress_safe_usingDict (const char* src, char* dst, int srcSize, int dstCapcity, const char* dictStart, int dictSize); 388 LZ4LIB_API int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 504 uint32_t dictSize; 524 unsigned int dictSize;
|
lz4.c | 466 * - withPrefix64k : Table entries up to ctx->dictSize before the current blob 468 * content (of length ctx->dictSize), which is available 473 * ctx->dictSize. 476 * ctx->dictCtx. ctx->dictionary, ctx->dictSize, and table 480 * ->dictSize describe the location and size of the preceding 506 int LZ4_decompress_safe_forceExtDict(const char* in, char* out, int inSize, int outSize, const void* dict, size_t dictSize); 644 cctx->dictSize = 0; 671 const U32 dictSize = 672 dictDirective == usingDictCtx ? dictCtx->dictSize : cctx->dictSize; [all...] |
lz4frame.c | 471 LZ4F_CDict* LZ4F_createCDict(const void* dictBuffer, size_t dictSize) 477 if (dictSize > 64 KB) { 478 dictStart += dictSize - 64 KB; 479 dictSize = 64 KB; 481 cdict->dictContent = ALLOC(dictSize); 488 memcpy(cdict->dictContent, dictStart, dictSize); 489 LZ4_loadDict (cdict->fastCtx, (const char*)cdict->dictContent, (int)dictSize); 491 LZ4_loadDictHC(cdict->HCCtx, (const char*)cdict->dictContent, (int)dictSize); [all...] |
lz4hc.c | [all...] |
/external/lzma/CPP/7zip/Common/ |
MethodProps.h | 174 UInt32 dictSize = Get_Lzma_DicSize();
175 UInt64 blockSize = (UInt64)dictSize << 2;
178 if (blockSize < dictSize) blockSize = dictSize;
|
/external/brotli/research/ |
durchschlag.cc | 489 TextIdx dictSize = calculateDictionarySize(ranges); 491 if (dictSize > targetSize - blockLen) { 591 TextIdx dictSize = calculateDictionarySize(ranges); 592 if (dictSize > targetSize - blockLen) {
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/ |
LzmaDec.c | 1055 UInt32 dictSize = propNew.dicSize;
1057 if (dictSize >= ((UInt32)1 << 30)) mask = ((UInt32)1 << 22) - 1;
1058 else if (dictSize >= ((UInt32)1 << 22)) mask = ((UInt32)1 << 20) - 1;;
1059 dicBufSize = ((SizeT)dictSize + mask) & ~mask;
1060 if (dicBufSize < dictSize)
1061 dicBufSize = dictSize;
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/ |
LzmaDec.c | 1055 UInt32 dictSize = propNew.dicSize;
1057 if (dictSize >= ((UInt32)1 << 30)) mask = ((UInt32)1 << 22) - 1;
1058 else if (dictSize >= ((UInt32)1 << 22)) mask = ((UInt32)1 << 20) - 1;;
1059 dicBufSize = ((SizeT)dictSize + mask) & ~mask;
1060 if (dicBufSize < dictSize)
1061 dicBufSize = dictSize;
|
/external/lz4/tests/ |
frametest.c | 517 { size_t const dictSize = 63 KB; 518 size_t const dstCapacity = LZ4F_compressFrameBound(dictSize, NULL); 520 LZ4F_CDict* const cdict = LZ4F_createCDict(CNBuffer, dictSize); 527 CNBuffer, dictSize, 536 CNBuffer, dictSize, 539 (unsigned)dictSize, (unsigned)cSizeWithDict); 541 crcOrig = XXH64(CNBuffer, dictSize, 0); 551 CNBuffer, dictSize, 554 if (decodedSize != dictSize) goto _output_error; 568 CNBuffer, dictSize, [all...] |
fuzzer.c | 366 int const dictSize = MIN(dictSizeRand, blockStart - 1); 369 const char* dict = block - dictSize; 642 FUZ_DISPLAYTEST("test LZ4_compress_fast_continue() with dictionary of size %i", dictSize); 645 LZ4_compress_fast_continue (&LZ4_stream, dict, compressedBuffer, dictSize, (int)compressedBufferSize, 1); /* Just to fill hash tables */ 652 memcpy(decodedBuffer, dict, dictSize); 653 ret = LZ4_decompress_fast_usingDict(compressedBuffer, decodedBuffer+dictSize, blockSize, decodedBuffer, dictSize); 655 { U32 const crcCheck = XXH32(decodedBuffer+dictSize, blockSize, 0); 657 FUZ_CHECKTEST(crcCheck!=crcOrig, "LZ4_decompress_fast_usingDict corrupted decoded data (dict %i)", dictSize); 661 ret = LZ4_decompress_safe_usingDict(compressedBuffer, decodedBuffer+dictSize, blockContinueCompressedSize, blockSize, decodedBuffer, dictSize) [all...] |
/external/lzma/CPP/7zip/Bundles/LzmaSpec/ |
LzmaSpec.cpp | 78 void Create(UInt32 dictSize)
80 Buf = new Byte[dictSize];
82 Size = dictSize;
325 UInt32 dictSize;
340 dictSize = dictSizeInProperties;
341 if (dictSize < LZMA_DIC_MIN)
342 dictSize = LZMA_DIC_MIN;
350 OutWindow.Create(dictSize);
550 if (rep0 >= dictSize || !OutWindow.CheckDistance(rep0))
638 printf("\nDictionary Size for decoding = %u", lzmaDecoder.dictSize);
[all...] |