/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/ |
D | DeflateCompressor.java | 33 private int compressionLevel = Deflater.DEFAULT_COMPRESSION; field in DeflateCompressor 95 return compressionLevel; in getCompressionLevel() 102 public void setCompressionLevel(int compressionLevel) { in setCompressionLevel() argument 103 if (compressionLevel < 0 || compressionLevel > 9) { in setCompressionLevel() 105 "compressionLevel must be in the range [0,9]: " + compressionLevel); in setCompressionLevel() 107 if (deflater != null && compressionLevel != this.compressionLevel) { in setCompressionLevel() 109 deflater.setLevel(compressionLevel); in setCompressionLevel() 111 this.compressionLevel = compressionLevel; in setCompressionLevel() 202 result = new Deflater(compressionLevel, nowrap); in createOrResetDeflater()
|
/external/lz4/lib/ |
D | lz4hc.h | 66 …t LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 79 …tateHC(void* state, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 98 LZ4LIB_API void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 158 uint32_t compressionLevel; member 175 unsigned int compressionLevel; member 205 …nstead") int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 206 …tedOutput (const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 209 …HC2_withStateHC (void* state, const char* source, char* dest, int inputSize, int compressionLevel); 210 …id* state, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 218 …2_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int compressionLevel); [all …]
|
D | lz4hc.c | 489 static int LZ4HC_getSearchNum(int compressionLevel) in LZ4HC_getSearchNum() argument 491 switch (compressionLevel) { in LZ4HC_getSearchNum() 504 int compressionLevel, in LZ4HC_compress_generic() argument 508 if (compressionLevel < 1) compressionLevel = LZ4HC_CLEVEL_DEFAULT; in LZ4HC_compress_generic() 509 if (compressionLevel > 9) { in LZ4HC_compress_generic() 510 switch (compressionLevel) { in LZ4HC_compress_generic() 512 …case 11: ctx->searchNum = LZ4HC_getSearchNum(compressionLevel); return LZ4HC_compress_optimal(ctx,… in LZ4HC_compress_generic() 514 …case 12: ctx->searchNum = LZ4HC_getSearchNum(compressionLevel); return LZ4HC_compress_optimal(ctx,… in LZ4HC_compress_generic() 517 …_compress_hashChain(ctx, source, dest, inputSize, maxOutputSize, 1 << (compressionLevel-1), limit); in LZ4HC_compress_generic() 523 …tateHC (void* state, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel) in LZ4_compress_HC_extStateHC() argument [all …]
|
D | lz4frame.c | 332 if (prefs.compressionLevel < LZ4HC_CLEVEL_MIN) { in LZ4F_compressFrame() 359 if (prefs.compressionLevel >= LZ4HC_CLEVEL_MIN) /* no allocation done with lz4 fast */ in LZ4F_compressFrame() 427 …{ U32 const tableID = (cctxPtr->prefs.compressionLevel < LZ4HC_CLEVEL_MIN) ? 1 : 2; /* 0:nothin… in LZ4F_compressBegin() 430 if (cctxPtr->prefs.compressionLevel < LZ4HC_CLEVEL_MIN) in LZ4F_compressBegin() 455 if (cctxPtr->prefs.compressionLevel < LZ4HC_CLEVEL_MIN) in LZ4F_compressBegin() 458 LZ4_resetStreamHC((LZ4_streamHC_t*)(cctxPtr->lz4CtxPtr), cctxPtr->prefs.compressionLevel); in LZ4F_compressBegin() 546 if (cctxPtr->prefs.compressionLevel < LZ4HC_CLEVEL_MIN) in LZ4F_localSaveDict() 571 …ress = LZ4F_selectCompression(cctxPtr->prefs.frameInfo.blockMode, cctxPtr->prefs.compressionLevel); in LZ4F_compressUpdate() 594 …(dstPtr, cctxPtr->tmpIn, blockSize, compress, cctxPtr->lz4CtxPtr, cctxPtr->prefs.compressionLevel); in LZ4F_compressUpdate() 604 …essBlock(dstPtr, srcPtr, blockSize, compress, cctxPtr->lz4CtxPtr, cctxPtr->prefs.compressionLevel); in LZ4F_compressUpdate() [all …]
|
D | lz4frame.h | 152 …int compressionLevel; /* 0 == default (fast mode); values above 16 count as 16; values … member
|
/external/skia/src/pdf/ |
D | SkDeflate.cpp | 66 int compressionLevel, in SkDeflateWStream() argument 78 SkASSERT(compressionLevel <= 9 && compressionLevel >= -1); in SkDeflateWStream() 79 SkDEBUGCODE(int r =) deflateInit2(&fImpl->fZStream, compressionLevel, in SkDeflateWStream()
|
D | SkDeflate.h | 34 int compressionLevel = -1,
|
/external/lz4/tests/ |
D | fuzzer.c | 306 int const compressionLevel = FUZ_rand(&randState) % (LZ4HC_CLEVEL_MAX+1); in FUZ_test() local 353 …= LZ4_compress_HC(block, compressedBuffer, blockSize, (int)compressedBufferSize, compressionLevel); in FUZ_test() 359 …ateHC(stateLZ4HC, block, compressedBuffer, blockSize, (int)compressedBufferSize, compressionLevel); in FUZ_test() 470 … ret = LZ4_compress_HC(block, compressedBuffer, blockSize, HCcompressedSize, compressionLevel); in FUZ_test() 475 …_HC_extStateHC(stateLZ4HC, block, compressedBuffer, blockSize, HCcompressedSize, compressionLevel); in FUZ_test() 495 …4_compress_HC(block, compressedBuffer, blockSize, HCcompressedSize-missingBytes, compressionLevel); in FUZ_test() 596 LZ4_resetStreamHC (&LZ4dictHC, compressionLevel); in FUZ_test() 659 static void FUZ_unitTests(int compressionLevel) in FUZ_unitTests() argument 754 LZ4_resetStreamHC(&sHC, compressionLevel); in FUZ_unitTests() 765 LZ4_resetStreamHC(&sHC, compressionLevel); in FUZ_unitTests() [all …]
|
D | frametest.c | 613 prefs.compressionLevel = FUZ_rand(&randState) % 5; in fuzzerTests()
|
/external/caliper/examples/src/main/java/examples/ |
D | CompressionSizeBenchmark.java | 40 private String compressionLevel; field in CompressionSizeBenchmark 70 compressor.setLevel(compressionLevelMap.get(compressionLevel)); in compress()
|
/external/lz4/programs/ |
D | lz4io.c | 437 …ename_extRess(cRess_t ress, const char* srcFileName, const char* dstFileName, int compressionLevel) in LZ4IO_compressFilename_extRess() argument 461 prefs.compressionLevel = compressionLevel; in LZ4IO_compressFilename_extRess() 552 int LZ4IO_compressFilename(const char* srcFileName, const char* dstFileName, int compressionLevel) in LZ4IO_compressFilename() argument 557 …ssueWithSrcFile = LZ4IO_compressFilename_extRess(ress, srcFileName, dstFileName, compressionLevel); in LZ4IO_compressFilename() 573 …pleFilenames(const char** inFileNamesTable, int ifntSize, const char* suffix, int compressionLevel) in LZ4IO_compressMultipleFilenames() argument 592 …_files += LZ4IO_compressFilename_extRess(ress, inFileNamesTable[i], dstFileName, compressionLevel); in LZ4IO_compressMultipleFilenames()
|