Home
last modified time | relevance | path

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

/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);
Dlz4hc.h132 int LZ4_loadDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, const char* dictionary, int dictSize);
/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 …]
Dfullbench.c373 …e_forceExtDict(const char* in, char* out, int inSize, int outSize, const char* dict, int dictSize);
/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()
DLzma2Enc.c225 UInt32 dictSize = p->lzmaProps.dictSize; in Lzma2EncProps_Normalize() local
226 UInt64 blockSize = (UInt64)dictSize << 2; in Lzma2EncProps_Normalize()
231 if (blockSize < dictSize) blockSize = dictSize; in Lzma2EncProps_Normalize()
DLzmaEnc.c48 p->dictSize = p->mc = 0; in LzmaEncProps_Init()
58 …if (p->dictSize == 0) p->dictSize = (level <= 5 ? (1 << (level * 2 + 14)) : (level == 6 ? (1 << 25… in LzmaEncProps_Normalize()
80 return props.dictSize; in LzmaEncProps_GetDictSize()
331 UInt32 dictSize; member
398 props.dictSize > ((UInt32)1 << kDicLogSizeMaxCompress) || props.dictSize > ((UInt32)1 << 30)) in LzmaEnc_SetProps()
400 p->dictSize = props.dictSize; in LzmaEnc_SetProps()
1924 p->matchFinderBase.bigHash = (p->dictSize > kBigHashDicLimit); in LzmaEnc_Alloc()
1926 if (beforeSize + p->dictSize < keepWindowSize) in LzmaEnc_Alloc()
1927 beforeSize = keepWindowSize - p->dictSize; in LzmaEnc_Alloc()
1932 …RINOK(MatchFinderMt_Create(&p->matchFinderMt, p->dictSize, beforeSize, p->numFastBytes, LZMA_MATCH… in LzmaEnc_Alloc()
[all …]
DLzmaLib.h101 unsigned dictSize, /* default = (1 << 24) */
DLzma86.h72 int level, UInt32 dictSize, int filterMode);
DLzmaEnc.h18 UInt32 dictSize; /* (1 << 12) <= dictSize <= (1 << 27) for 32-bit version member
/external/lzma/CPP/7zip/Compress/
DLzmaEncoder.cpp92 case NCoderPropID::kDictionarySize: ep.dictSize = v; break; in SetLzmaProp()
/external/lzma/
Dlzma.txt452 - (dictSize * 11.5 + 6 MB) + state_size