Home
last modified time | relevance | path

Searched refs:compressionLevel (Results 1 – 25 of 46) sorted by relevance

12

/external/lz4/lib/
Dlz4hc.h66 …t LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel);
80 …teHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel);
94 int compressionLevel);
155 LZ4LIB_API void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); /* v1.…
215 short compressionLevel; member
235 short compressionLevel; member
283 …LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel);
284 …itedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel);
287 …HC (void* state, const char* source, char* dest, int inputSize, int compressionLevel);
288 …id* state, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel);
[all …]
Dlz4hc.c856 ctx->compressionLevel = (short)cLevel; in LZ4HC_compress_generic_dictCtx()
896 …Reset (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel) in LZ4_compress_HC_extStateHC_fastReset() argument
905 LZ4_resetStreamHC_fast((LZ4_streamHC_t*)state, compressionLevel); in LZ4_compress_HC_extStateHC_fastReset()
908 …return LZ4HC_compress_generic (ctx, src, dst, &srcSize, dstCapacity, compressionLevel, limitedOutp… in LZ4_compress_HC_extStateHC_fastReset()
910 …return LZ4HC_compress_generic (ctx, src, dst, &srcSize, dstCapacity, compressionLevel, notLimited); in LZ4_compress_HC_extStateHC_fastReset()
913 …ateHC (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel) in LZ4_compress_HC_extStateHC() argument
917 …turn LZ4_compress_HC_extStateHC_fastReset(state, src, dst, srcSize, dstCapacity, compressionLevel); in LZ4_compress_HC_extStateHC()
920 int LZ4_compress_HC(const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel) in LZ4_compress_HC() argument
928 …nst cSize = LZ4_compress_HC_extStateHC(statePtr, src, dst, srcSize, dstCapacity, compressionLevel); in LZ4_compress_HC()
992 void LZ4_resetStreamHC (LZ4_streamHC_t* LZ4_streamHCPtr, int compressionLevel) in LZ4_resetStreamHC() argument
[all …]
Dlz4frame.c448 preferencesPtr->compressionLevel < LZ4HC_CLEVEL_MIN) in LZ4F_compressFrame()
465 preferencesPtr->compressionLevel >= LZ4HC_CLEVEL_MIN) in LZ4F_compressFrame()
616 { U16 const ctxTypeID = (cctxPtr->prefs.compressionLevel < LZ4HC_CLEVEL_MIN) ? 1 : 2; in LZ4F_compressBegin_usingCDict()
619 if (cctxPtr->prefs.compressionLevel < LZ4HC_CLEVEL_MIN) { in LZ4F_compressBegin_usingCDict()
631 if (cctxPtr->prefs.compressionLevel < LZ4HC_CLEVEL_MIN) { in LZ4F_compressBegin_usingCDict()
635 … LZ4_setCompressionLevel((LZ4_streamHC_t *) cctxPtr->lz4CtxPtr, cctxPtr->prefs.compressionLevel); in LZ4F_compressBegin_usingCDict()
665 … LZ4F_initStream(cctxPtr->lz4CtxPtr, cdict, cctxPtr->prefs.compressionLevel, LZ4F_blockLinked); in LZ4F_compressBegin_usingCDict()
667 if (preferencesPtr->compressionLevel >= LZ4HC_CLEVEL_MIN) { in LZ4F_compressBegin_usingCDict()
809 if (cctxPtr->prefs.compressionLevel < LZ4HC_CLEVEL_MIN) in LZ4F_localSaveDict()
835 …ress = LZ4F_selectCompression(cctxPtr->prefs.frameInfo.blockMode, cctxPtr->prefs.compressionLevel); in LZ4F_compressUpdate()
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/deflate/
DDeflateParameters.java31 private int compressionLevel = Deflater.DEFAULT_COMPRESSION; field in DeflateParameters
60 return compressionLevel; in getCompressionLevel()
72 public void setCompressionLevel(final int compressionLevel) { in setCompressionLevel() argument
73 if (compressionLevel < -1 || compressionLevel > 9) { in setCompressionLevel()
74 … throw new IllegalArgumentException("Invalid Deflate compression level: " + compressionLevel); in setCompressionLevel()
76 this.compressionLevel = compressionLevel; in setCompressionLevel()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/gzip/
DGzipParameters.java31 private int compressionLevel = Deflater.DEFAULT_COMPRESSION; field in GzipParameters
38 return compressionLevel; in getCompressionLevel()
50 public void setCompressionLevel(final int compressionLevel) { in setCompressionLevel() argument
51 if (compressionLevel < -1 || compressionLevel > 9) { in setCompressionLevel()
52 … throw new IllegalArgumentException("Invalid gzip compression level: " + compressionLevel); in setCompressionLevel()
54 this.compressionLevel = compressionLevel; in setCompressionLevel()
DGzipCompressorOutputStream.java100 final int compressionLevel = parameters.getCompressionLevel(); in writeHeader() local
101 if (compressionLevel == Deflater.BEST_COMPRESSION) { in writeHeader()
103 } else if (compressionLevel == Deflater.BEST_SPEED) { in writeHeader()
/external/zstd/examples/
Dstreaming_memory_usage.c58 int compressionLevel; in main() local
59 for (compressionLevel = 1; compressionLevel <= MAX_TESTED_LEVEL; compressionLevel++) { in main()
73 … CHECK_ZSTD( ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_compressionLevel, compressionLevel) ); in main()
127 compressionLevel, in main()
/external/zstd/contrib/pzstd/
DOptions.h26 unsigned compressionLevel; member
43 Options(unsigned numThreads, unsigned maxWindowLog, unsigned compressionLevel, in Options()
48 compressionLevel(compressionLevel), decompress(decompress), in Options()
56 ZSTD_parameters params = ZSTD_getParams(compressionLevel, 0, 0); in determineParameters()
DOptions.cpp104 compressionLevel(kDefaultCompressionLevel), decompress(false), in Options()
195 compressionLevel = parseUnsigned(&options); in parse()
382 if (compressionLevel > maxCLevel || compressionLevel == 0) { in parse()
383 std::fprintf(stderr, "Invalid compression level %u.\n", compressionLevel); in parse()
/external/zstd/programs/
Dfileio.c1023 int compressionLevel, U64* readsize) in FIO_compressGzFrame() argument
1028 if (compressionLevel > Z_BEST_COMPRESSION) in FIO_compressGzFrame()
1029 compressionLevel = Z_BEST_COMPRESSION; in FIO_compressGzFrame()
1035 { int const ret = deflateInit2(&strm, compressionLevel, Z_DEFLATED, in FIO_compressGzFrame()
1106 int compressionLevel, U64* readsize, int plain_lzma) in FIO_compressLzmaFrame() argument
1113 if (compressionLevel < 0) compressionLevel = 0; in FIO_compressLzmaFrame()
1114 if (compressionLevel > 9) compressionLevel = 9; in FIO_compressLzmaFrame()
1118 if (lzma_lzma_preset(&opt_lzma, compressionLevel)) in FIO_compressLzmaFrame()
1124 ret = lzma_easy_encoder(&strm, compressionLevel, LZMA_CHECK_CRC64); /* XZ */ in FIO_compressLzmaFrame()
1185 int compressionLevel, int checksumFlag, in FIO_compressLz4Frame() argument
[all …]
Dfileio.h120 const char* dictFileName, int compressionLevel,
142 const char* dictFileName, int compressionLevel,
/external/zstd/lib/deprecated/
Dzbuff_compress.c80 …FF_compressInitDictionary(ZBUFF_CCtx* zbc, const void* dict, size_t dictSize, int compressionLevel) in ZBUFF_compressInitDictionary() argument
82 return ZSTD_initCStream_usingDict(zbc, dict, dictSize, compressionLevel); in ZBUFF_compressInitDictionary()
85 size_t ZBUFF_compressInit(ZBUFF_CCtx* zbc, int compressionLevel) in ZBUFF_compressInit() argument
87 return ZSTD_initCStream(zbc, compressionLevel); in ZBUFF_compressInit()
Dzbuff.h75 …use ZSTD_initCStream") size_t ZBUFF_compressInit(ZBUFF_CCtx* cctx, int compressionLevel);
76 …_compressInitDictionary(ZBUFF_CCtx* cctx, const void* dict, size_t dictSize, int compressionLevel);
/external/zstd/contrib/pzstd/test/
DRoundTripTest.cpp55 std::uniform_int_distribution<unsigned> compressionLevel{1, 10}; in generateOptions() local
58 options.compressionLevel = compressionLevel(gen); in generateOptions()
78 std::fprintf(stderr, "level: %u\n", options.compressionLevel); in main()
DPzstdTest.cpp54 options.compressionLevel = level; in TEST()
89 options.compressionLevel = level; in TEST()
125 options.compressionLevel = 1; in TEST()
147 options.compressionLevel = 1; in TEST()
/external/zstd/lib/
Dzstd.h123 int compressionLevel);
215 int compressionLevel);
744 ZSTDLIB_API size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel);
820 int compressionLevel);
852 int compressionLevel);
1402 ZSTDLIB_API size_t ZSTD_estimateCCtxSize(int compressionLevel);
1420 ZSTDLIB_API size_t ZSTD_estimateCStreamSize(int compressionLevel);
1431 ZSTDLIB_API size_t ZSTD_estimateCDictSize(size_t dictSize, int compressionLevel);
1541 …CDict* ZSTD_createCDict_byReference(const void* dictBuffer, size_t dictSize, int compressionLevel);
1552 ZSTDLIB_API ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, unsigned long long est…
[all …]
/external/skqp/src/pdf/
DSkDeflate.cpp67 int compressionLevel, in SkDeflateWStream() argument
79 SkASSERT(compressionLevel <= 9 && compressionLevel >= -1); in SkDeflateWStream()
80 SkDEBUGCODE(int r =) deflateInit2(&fImpl->fZStream, compressionLevel, in SkDeflateWStream()
DSkDeflate.h34 int compressionLevel = -1,
/external/skia/src/pdf/
DSkDeflate.cpp68 int compressionLevel, in SkDeflateWStream() argument
80 SkASSERT(compressionLevel <= 9 && compressionLevel >= -1); in SkDeflateWStream()
81 SkDEBUGCODE(int r =) deflateInit2(&fImpl->fZStream, compressionLevel, in SkDeflateWStream()
/external/zstd/lib/compress/
Dzstd_compress.c74 int compressionLevel; /* 0 indicates that advanced API was used to select CDict params */ member
264 size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params* cctxParams, int compressionLevel) { in ZSTD_CCtxParams_init() argument
267 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init()
280 …cctxParams->compressionLevel = ZSTD_CLEVEL_DEFAULT; /* should not matter, as all cParams are pre… in ZSTD_CCtxParams_init_advanced()
293 …ret.compressionLevel = ZSTD_CLEVEL_DEFAULT; /* should not matter, as all cParams are presumed pr… in ZSTD_assignParamsToCCtxParams()
605 CCtxParams->compressionLevel = ZSTD_CLEVEL_DEFAULT; /* 0 == default */ in ZSTD_CCtxParams_setParameter()
607 CCtxParams->compressionLevel = value; in ZSTD_CCtxParams_setParameter()
608 if (CCtxParams->compressionLevel >= 0) return (size_t)CCtxParams->compressionLevel; in ZSTD_CCtxParams_setParameter()
813 *value = CCtxParams->compressionLevel; in ZSTD_CCtxParams_getParameter()
954 int const compressionLevel,
[all …]
/external/lz4/tests/
Dfuzzer.c380 int const compressionLevel = FUZ_rand(&randState) % (LZ4HC_CLEVEL_MAX+1); in FUZ_test() local
434 …e = LZ4_compress_HC_destSize(ctx, block, compressedBuffer, &srcSize, targetSize, compressionLevel); in FUZ_test()
436 compressionLevel, cSize, targetSize, srcSize, blockSize); in FUZ_test()
461 …= LZ4_compress_HC(block, compressedBuffer, blockSize, (int)compressedBufferSize, compressionLevel); in FUZ_test()
466 …ateHC(stateLZ4HC, block, compressedBuffer, blockSize, (int)compressedBufferSize, compressionLevel); in FUZ_test()
472 …Reset(stateLZ4HC, block, compressedBuffer, blockSize, (int)compressedBufferSize, compressionLevel); in FUZ_test()
644 … ret = LZ4_compress_HC(block, compressedBuffer, blockSize, HCcompressedSize, compressionLevel); in FUZ_test()
649 …_HC_extStateHC(stateLZ4HC, block, compressedBuffer, blockSize, HCcompressedSize, compressionLevel); in FUZ_test()
670 …4_compress_HC(block, compressedBuffer, blockSize, HCcompressedSize-missingBytes, compressionLevel); in FUZ_test()
875 LZ4_setCompressionLevel (LZ4dictHC, compressionLevel); in FUZ_test()
[all …]
/external/caliper/examples/src/main/java/examples/
DCompressionSizeBenchmark.java40 private String compressionLevel; field in CompressionSizeBenchmark
70 compressor.setLevel(compressionLevelMap.get(compressionLevel)); in compress()
/external/zstd/lib/dictBuilder/
Dzdict.c708 int compressionLevel, in ZDICT_analyzeEntropy() argument
743 if (compressionLevel==0) compressionLevel = ZSTD_CLEVEL_DEFAULT; in ZDICT_analyzeEntropy()
744 params = ZSTD_getParams(compressionLevel, averageSampleSize, dictBufferSize); in ZDICT_analyzeEntropy()
895 …int const compressionLevel = (params.compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : params.compres… in ZDICT_finalizeDictionary() local
917 compressionLevel, in ZDICT_finalizeDictionary()
941 …int const compressionLevel = (params.compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : params.compres… in ZDICT_addEntropyTablesFromBuffer_advanced() local
949 compressionLevel, in ZDICT_addEntropyTablesFromBuffer_advanced()
1117 params.zParams.compressionLevel = ZSTD_CLEVEL_DEFAULT; in ZDICT_trainFromBuffer()
/external/zstd/contrib/seekable_format/examples/
Dparallel_compression.c103 int compressionLevel; member
113 … size_t ret = ZSTD_compress(job->dst, job->dstSize, job->src, job->srcSize, job->compressionLevel); in compressFrame()
154 jobs[i].compressionLevel = cLevel; in compressFile_orDie()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DScatterZipOutputStream.java153 …public static ScatterZipOutputStream fileBased(final File file, final int compressionLevel) throws… in fileBased() argument
156 final StreamCompressor sc = StreamCompressor.create(compressionLevel, bs); //NOSONAR in fileBased()

12