Home
last modified time | relevance | path

Searched refs:dictSize (Results 1 – 25 of 33) sorted by relevance

12

/external/lzma/Java/Tukaani/src/org/tukaani/xz/
DLZMAInputStream.java87 public static int getMemoryUsage(int dictSize, byte propsByte) in getMemoryUsage() argument
89 if (dictSize < 0 || dictSize > DICT_SIZE_MAX) in getMemoryUsage()
101 return getMemoryUsage(dictSize, lc, lp); in getMemoryUsage()
120 public static int getMemoryUsage(int dictSize, int lc, int lp) { in getMemoryUsage() argument
131 return 10 + getDictSize(dictSize) / 1024 in getMemoryUsage()
135 private static int getDictSize(int dictSize) { in getDictSize() argument
136 if (dictSize < 0 || dictSize > DICT_SIZE_MAX) in getDictSize()
150 if (dictSize < 4096) in getDictSize()
151 dictSize = 4096; in getDictSize()
155 return (dictSize + 15) & ~15; in getDictSize()
[all …]
DLZMA2Options.java132 private int dictSize; field in LZMA2Options
171 public LZMA2Options(int dictSize, int lc, int lp, int pb, int mode, in LZMA2Options() argument
174 setDictSize(dictSize); in LZMA2Options()
207 dictSize = presetToDictSize[preset]; in setPreset()
237 public void setDictSize(int dictSize) throws UnsupportedOptionsException { in setDictSize() argument
238 if (dictSize < DICT_SIZE_MIN) in setDictSize()
241 + dictSize + " B"); in setDictSize()
243 if (dictSize > DICT_SIZE_MAX) in setDictSize()
246 + (DICT_SIZE_MAX >> 20) + " MiB: " + dictSize + " B"); in setDictSize()
248 this.dictSize = dictSize; in setDictSize()
[all …]
DLZMA2InputStream.java74 public static int getMemoryUsage(int dictSize) { in getMemoryUsage() argument
78 return 40 + COMPRESSED_SIZE_MAX / 1024 + getDictSize(dictSize) / 1024; in getMemoryUsage()
81 private static int getDictSize(int dictSize) { in getDictSize() argument
82 if (dictSize < DICT_SIZE_MIN || dictSize > DICT_SIZE_MAX) in getDictSize()
84 "Unsupported dictionary size " + dictSize); in getDictSize()
90 return (dictSize + 15) & ~15; in getDictSize()
116 public LZMA2InputStream(InputStream in, int dictSize) { in LZMA2InputStream() argument
117 this(in, dictSize, null); in LZMA2InputStream()
138 public LZMA2InputStream(InputStream in, int dictSize, byte[] presetDict) { in LZMA2InputStream() argument
145 this.lz = new LZDecoder(getDictSize(dictSize), presetDict); in LZMA2InputStream()
DLZMA2OutputStream.java40 private static int getExtraSizeBefore(int dictSize) { in getExtraSizeBefore() argument
41 return COMPRESSED_SIZE_MAX > dictSize in getExtraSizeBefore()
42 ? COMPRESSED_SIZE_MAX - dictSize : 0; in getExtraSizeBefore()
47 int dictSize = options.getDictSize(); in getMemoryUsage() local
48 int extraSizeBefore = getExtraSizeBefore(dictSize); in getMemoryUsage()
50 dictSize, extraSizeBefore, in getMemoryUsage()
62 int dictSize = options.getDictSize(); in LZMA2OutputStream() local
63 int extraSizeBefore = getExtraSizeBefore(dictSize); in LZMA2OutputStream()
67 dictSize, extraSizeBefore, options.getNiceLen(), in LZMA2OutputStream()
74 lz.setPresetDict(dictSize, presetDict); in LZMA2OutputStream()
DLZMA2Decoder.java15 private int dictSize; field in LZMA2Decoder
24 dictSize = 2 | (props[0] & 1); in LZMA2Decoder()
25 dictSize <<= (props[0] >>> 1) + 11; in LZMA2Decoder()
29 return LZMA2InputStream.getMemoryUsage(dictSize); in getMemoryUsage()
33 return new LZMA2InputStream(in, dictSize); in getInputStream()
/external/lz4/lib/
Dlz4.c441 U32 dictSize; member
514 const BYTE* const lowRefLimit = ip - dictPtr->dictSize; in LZ4_compress_generic()
516 const BYTE* const dictEnd = dictionary + dictPtr->dictSize; in LZ4_compress_generic()
540 lowLimit = (const BYTE*)source - dictPtr->dictSize; in LZ4_compress_generic()
780 int LZ4_loadDict (LZ4_stream_t* LZ4_dict, const char* dictionary, int dictSize) in LZ4_loadDict() argument
784 const BYTE* const dictEnd = p + dictSize; in LZ4_loadDict()
789 if (dictSize < MINMATCH) in LZ4_loadDict()
792 dict->dictSize = 0; in LZ4_loadDict()
799 dict->dictSize = (U32)(dictEnd - p); in LZ4_loadDict()
800 dict->currentOffset += dict->dictSize; in LZ4_loadDict()
[all …]
Dlz4hc.c601 int LZ4_loadDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, const char* dictionary, int dictSize) in LZ4_loadDictHC() argument
604 if (dictSize > 64 KB) in LZ4_loadDictHC()
606 dictionary += dictSize - 64 KB; in LZ4_loadDictHC()
607 dictSize = 64 KB; in LZ4_loadDictHC()
610 if (dictSize >= 4) LZ4HC_Insert (ctxPtr, (const BYTE*)dictionary +(dictSize-3)); in LZ4_loadDictHC()
611 ctxPtr->end = (const BYTE*)dictionary + dictSize; in LZ4_loadDictHC()
612 return dictSize; in LZ4_loadDictHC()
642 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) - ctxPtr->dictLimit; in LZ4_compressHC_continue_generic() local
643 if (dictSize > 64 KB) dictSize = 64 KB; in LZ4_compressHC_continue_generic()
645 … LZ4_loadDictHC((LZ4_streamHC_t*)ctxPtr, (const char*)(ctxPtr->end) - dictSize, (int)dictSize); in LZ4_compressHC_continue_generic()
[all …]
Dlz4frame.c143 size_t dictSize; member
797 dctxPtr->dictSize = 0; in LZ4F_decodeHeader()
847 …urce, char* dest, int compressedSize, int maxDecompressedSize, const char* dictStart, int dictSize) in LZ4F_decompress_safe() argument
850 (void)dictSize; in LZ4F_decompress_safe()
858 if (dctxPtr->dictSize==0) in LZ4F_updateDict()
861 if (dctxPtr->dict + dctxPtr->dictSize == dstPtr) /* dictionary continuity */ in LZ4F_updateDict()
863 dctxPtr->dictSize += dstSize; in LZ4F_updateDict()
870 dctxPtr->dictSize = dstPtr - dstPtr0 + dstSize; in LZ4F_updateDict()
877 dctxPtr->dictSize += dstSize; in LZ4F_updateDict()
885 …memcpy(dctxPtr->tmpOutBuffer, dctxPtr->dict + dctxPtr->dictSize - dctxPtr->tmpOutStart- savedDictS… in LZ4F_updateDict()
[all …]
Dlz4.h208 int LZ4_loadDict (LZ4_stream_t* LZ4_streamPtr, const char* dictionary, int dictSize);
233 int LZ4_saveDict (LZ4_stream_t* LZ4_streamPtr, char* safeBuffer, int dictSize);
262 int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize
282 …rce, char* dest, int compressedSize, int maxDecompressedSize, const char* dictStart, int dictSize);
283 …_usingDict (const char* source, char* dest, int originalSize, const char* dictStart, int dictSize);
/external/lzma/Java/Tukaani/src/org/tukaani/xz/lz/
DLZEncoder.java58 int dictSize, int extraSizeBefore, int extraSizeAfter, in getBufSize() argument
60 int keepSizeBefore = extraSizeBefore + dictSize; in getBufSize()
62 int reserveSize = Math.min(dictSize / 2 + (256 << 10), 512 << 20); in getBufSize()
71 int dictSize, int extraSizeBefore, int extraSizeAfter, in getMemoryUsage() argument
74 int m = getBufSize(dictSize, extraSizeBefore, extraSizeAfter, in getMemoryUsage()
79 m += HC4.getMemoryUsage(dictSize); in getMemoryUsage()
83 m += BT4.getMemoryUsage(dictSize); in getMemoryUsage()
118 int dictSize, int extraSizeBefore, int extraSizeAfter, in getInstance() argument
122 return new HC4(dictSize, extraSizeBefore, extraSizeAfter, in getInstance()
126 return new BT4(dictSize, extraSizeBefore, extraSizeAfter, in getInstance()
[all …]
DHash234.java30 static int getHash4Size(int dictSize) { in getHash4Size() argument
31 int h = dictSize - 1; in getHash4Size()
44 static int getMemoryUsage(int dictSize) { in getMemoryUsage() argument
46 return (HASH_2_SIZE + HASH_3_SIZE + getHash4Size(dictSize)) in getMemoryUsage()
50 Hash234(int dictSize) { in Hash234() argument
51 hash4Table = new int[getHash4Size(dictSize)]; in Hash234()
DHC4.java26 static int getMemoryUsage(int dictSize) { in getMemoryUsage() argument
27 return Hash234.getMemoryUsage(dictSize) + dictSize / (1024 / 4) + 10; in getMemoryUsage()
34 HC4(int dictSize, int beforeSizeMin, int readAheadMax, in HC4() argument
36 super(dictSize, beforeSizeMin, readAheadMax, niceLen, matchLenMax); in HC4()
38 hash = new Hash234(dictSize); in HC4()
41 cyclicSize = dictSize + 1; in HC4()
DBT4.java23 static int getMemoryUsage(int dictSize) { in getMemoryUsage() argument
24 return Hash234.getMemoryUsage(dictSize) + dictSize / (1024 / 8) + 10; in getMemoryUsage()
27 BT4(int dictSize, int beforeSizeMin, int readAheadMax, in BT4() argument
29 super(dictSize, beforeSizeMin, readAheadMax, niceLen, matchLenMax); in BT4()
31 cyclicSize = dictSize + 1; in BT4()
34 hash = new Hash234(dictSize); in BT4()
DLZDecoder.java26 public LZDecoder(int dictSize, byte[] presetDict) { in LZDecoder() argument
27 buf = new byte[dictSize]; in LZDecoder()
30 pos = Math.min(presetDict.length, dictSize); in LZDecoder()
/external/lz4/programs/
Dfuzzer.c317 int dictSize, blockSize, blockStart; in FUZ_test() local
324 dictSize = FUZ_rand(&randState) % FUZ_MAX_DICT_SIZE; in FUZ_test()
325 if (dictSize > blockStart) dictSize = blockStart; in FUZ_test()
327 dict = block - dictSize; in FUZ_test()
328 LZ4_loadDict(&LZ4dict, dict, dictSize); in FUZ_test()
330 LZ4_loadDict(&LZ4dict, dict, dictSize); in FUZ_test()
332 LZ4_loadDict(&LZ4dict, dict, dictSize); in FUZ_test()
343 int dictSize, blockSize, blockStart, compressedSize, HCcompressedSize; in FUZ_test() local
353 dictSize = FUZ_rand(&randState) % FUZ_MAX_DICT_SIZE; in FUZ_test()
354 if (dictSize > blockStart) dictSize = blockStart; in FUZ_test()
[all …]
/external/lzma/Java/Tukaani/src/org/tukaani/xz/lzma/
DLZMAEncoderFast.java23 static int getMemoryUsage(int dictSize, int extraSizeBefore, int mf) { in getMemoryUsage() argument
25 dictSize, Math.max(extraSizeBefore, EXTRA_SIZE_BEFORE), in getMemoryUsage()
30 int dictSize, int extraSizeBefore, in LZMAEncoderFast() argument
32 super(rc, LZEncoder.getInstance(dictSize, in LZMAEncoderFast()
38 lc, lp, pb, dictSize, niceLen); in LZMAEncoderFast()
DLZMAEncoder.java68 public static int getMemoryUsage(int mode, int dictSize, in getMemoryUsage() argument
75 dictSize, extraSizeBefore, mf); in getMemoryUsage()
80 dictSize, extraSizeBefore, mf); in getMemoryUsage()
92 int dictSize, int extraSizeBefore, in getInstance() argument
97 dictSize, extraSizeBefore, in getInstance()
102 dictSize, extraSizeBefore, in getInstance()
167 int lc, int lp, int pb, int dictSize, int niceLen) { in LZMAEncoder() argument
177 distSlotPricesSize = getDistSlot(dictSize - 1) + 1; in LZMAEncoder()
DLZMAEncoderNormal.java34 static int getMemoryUsage(int dictSize, int extraSizeBefore, int mf) { in getMemoryUsage() argument
35 return LZEncoder.getMemoryUsage(dictSize, in getMemoryUsage()
42 int dictSize, int extraSizeBefore, in LZMAEncoderNormal() argument
44 super(rc, LZEncoder.getInstance(dictSize, in LZMAEncoderNormal()
50 lc, lp, pb, dictSize, niceLen); in LZMAEncoderNormal()
/external/lzma/C/
DLzmaLib.c18 unsigned dictSize, /* use (1 << N) or (3 << N). 4 KB < dictSize <= 128 MB */ in LzmaCompress() argument
29 props.dictSize = dictSize; in LzmaCompress()
DLzma86Enc.c18 int level, UInt32 dictSize, int filterMode) in Lzma86_Encode() argument
28 props.dictSize = dictSize; in Lzma86_Encode()
DLzmaEnc.c50 p->dictSize = p->mc = 0; in LzmaEncProps_Init()
61 …if (p->dictSize == 0) p->dictSize = (level <= 5 ? (1 << (level * 2 + 14)) : (level == 6 ? (1 << 25… in LzmaEncProps_Normalize()
62 if (p->dictSize > p->reduceSize) in LzmaEncProps_Normalize()
67 if ((UInt32)p->reduceSize <= ((UInt32)2 << i)) { p->dictSize = ((UInt32)2 << i); break; } in LzmaEncProps_Normalize()
68 if ((UInt32)p->reduceSize <= ((UInt32)3 << i)) { p->dictSize = ((UInt32)3 << i); break; } in LzmaEncProps_Normalize()
92 return props.dictSize; in LzmaEncProps_GetDictSize()
343 UInt32 dictSize; member
409 props.dictSize > ((UInt32)1 << kDicLogSizeMaxCompress) || props.dictSize > ((UInt32)1 << 30)) in LzmaEnc_SetProps()
411 p->dictSize = props.dictSize; in LzmaEnc_SetProps()
1935 p->matchFinderBase.bigHash = (p->dictSize > kBigHashDicLimit); in LzmaEnc_Alloc()
[all …]
DLzma2Enc.c226 UInt32 dictSize = p->lzmaProps.dictSize; in Lzma2EncProps_Normalize() local
227 UInt64 blockSize = (UInt64)dictSize << 2; in Lzma2EncProps_Normalize()
232 if (blockSize < dictSize) blockSize = dictSize; in Lzma2EncProps_Normalize()
DLzmaLib.h99 unsigned dictSize, /* default = (1 << 24) */
/external/lzma/CPP/7zip/Bundles/LzmaSpec/
DLzmaSpec.cpp78 void Create(UInt32 dictSize) in Create() argument
80 Buf = new Byte[dictSize]; in Create()
82 Size = dictSize; in Create()
325 UInt32 dictSize; member in CLzmaDecoder
340 dictSize = dictSizeInProperties; in DecodeProperties()
341 if (dictSize < LZMA_DIC_MIN) in DecodeProperties()
342 dictSize = LZMA_DIC_MIN; in DecodeProperties()
350 OutWindow.Create(dictSize); in Create()
548 if (rep0 >= dictSize || !OutWindow.CheckDistance(rep0)) in Decode()
636 printf("\nDictionary Size for decoding = %u", lzmaDecoder.dictSize); in main2()
/external/lzma/CPP/7zip/Compress/
DLzmaEncoder.cpp99 …case NCoderPropID::kDefaultProp: if (v > 31) return E_INVALIDARG; ep.dictSize = (UInt32)1 << (unsi… in SetLzmaProp()
104 SET_PROP_32(kDictionarySize, dictSize) in SetLzmaProp()

12