Lines Matching refs:compressionLevel
88 int compressionLevel; /* 0 indicates that advanced API was used to select CDict params */ member
318 … cctxParams.compressionLevel); in ZSTD_makeCCtxParamsFromCParams()
353 size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params* cctxParams, int compressionLevel) { in ZSTD_CCtxParams_init() argument
356 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init()
370 int compressionLevel) in ZSTD_CCtxParams_init_internal() argument
379 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init_internal()
385 …codes = ZSTD_resolveExternalRepcodeSearch(cctxParams->searchForExternalRepcodes, compressionLevel); in ZSTD_CCtxParams_init_internal()
411 cctxParams->compressionLevel = ZSTD_NO_CLEVEL; in ZSTD_CCtxParams_setZstdParams()
766 CCtxParams->compressionLevel = ZSTD_CLEVEL_DEFAULT; /* 0 == default */ in ZSTD_CCtxParams_setParameter()
768 CCtxParams->compressionLevel = value; in ZSTD_CCtxParams_setParameter()
769 if (CCtxParams->compressionLevel >= 0) return (size_t)CCtxParams->compressionLevel; in ZSTD_CCtxParams_setParameter()
991 *value = CCtxParams->compressionLevel; in ZSTD_CCtxParams_getParameter()
1176 int const compressionLevel,
1557 static ZSTD_compressionParameters ZSTD_getCParams_internal(int compressionLevel, unsigned long long…
1558 static ZSTD_parameters ZSTD_getParams_internal(int compressionLevel, unsigned long long srcSizeHint…
1581 cParams = ZSTD_getCParams_internal(CCtxParams->compressionLevel, srcSizeHint, dictSize, mode); in ZSTD_getCParamsFromCCtxParams()
1722 static size_t ZSTD_estimateCCtxSize_internal(int compressionLevel) in ZSTD_estimateCCtxSize_internal() argument
1729 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, srcSizeTiers… in ZSTD_estimateCCtxSize_internal()
1735 size_t ZSTD_estimateCCtxSize(int compressionLevel) in ZSTD_estimateCCtxSize() argument
1739 for (level=MIN(compressionLevel, 1); level<=compressionLevel; level++) { in ZSTD_estimateCCtxSize()
1784 static size_t ZSTD_estimateCStreamSize_internal(int compressionLevel) in ZSTD_estimateCStreamSize_internal() argument
1786 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENT… in ZSTD_estimateCStreamSize_internal()
1790 size_t ZSTD_estimateCStreamSize(int compressionLevel) in ZSTD_estimateCStreamSize() argument
1794 for (level=MIN(compressionLevel, 1); level<=compressionLevel; level++) { in ZSTD_estimateCStreamSize()
3279 zc->appliedParams.compressionLevel, in ZSTD_buildSeqStore()
5170 || cdict->compressionLevel == 0) in ZSTD_compressBegin_internal()
5229 …egin_usingDict_deprecated(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, int compressionLevel) in ZSTD_compressBegin_usingDict_deprecated() argument
5232 …{ ZSTD_parameters const params = ZSTD_getParams_internal(compressionLevel, ZSTD_CONTENTSIZE_UNKN… in ZSTD_compressBegin_usingDict_deprecated()
5233 …xParams_init_internal(&cctxParams, ¶ms, (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : compre… in ZSTD_compressBegin_usingDict_deprecated()
5241 …D_compressBegin_usingDict(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, int compressionLevel) in ZSTD_compressBegin_usingDict() argument
5243 return ZSTD_compressBegin_usingDict_deprecated(cctx, dict, dictSize, compressionLevel); in ZSTD_compressBegin_usingDict()
5246 size_t ZSTD_compressBegin(ZSTD_CCtx* cctx, int compressionLevel) in ZSTD_compressBegin() argument
5248 return ZSTD_compressBegin_usingDict_deprecated(cctx, NULL, 0, compressionLevel); in ZSTD_compressBegin()
5369 int compressionLevel) in ZSTD_compress_usingDict() argument
5372 …ZSTD_parameters const params = ZSTD_getParams_internal(compressionLevel, srcSize, dict ? dictSize … in ZSTD_compress_usingDict()
5374 …t_internal(&cctx->simpleApiParams, ¶ms, (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT: compres… in ZSTD_compress_usingDict()
5383 int compressionLevel) in ZSTD_compressCCtx() argument
5387 return ZSTD_compress_usingDict(cctx, dst, dstCapacity, src, srcSize, NULL, 0, compressionLevel); in ZSTD_compressCCtx()
5392 int compressionLevel) in ZSTD_compress() argument
5397 result = ZSTD_compressCCtx(cctx, dst, dstCapacity, src, srcSize, compressionLevel); in ZSTD_compress()
5422 size_t ZSTD_estimateCDictSize(size_t dictSize, int compressionLevel) in ZSTD_estimateCDictSize() argument
5424 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENT… in ZSTD_estimateCDictSize()
5475 { params.compressionLevel = ZSTD_CLEVEL_DEFAULT; in ZSTD_initCDict_internal()
5522 cdict->compressionLevel = ZSTD_NO_CLEVEL; /* signals advanced API usage */ in ZSTD_createCDict_advanced_internal()
5562 cctxParams.compressionLevel, dictSize); in ZSTD_createCDict_advanced2()
5596 ZSTD_CDict* ZSTD_createCDict(const void* dict, size_t dictSize, int compressionLevel) in ZSTD_createCDict() argument
5598 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENTSIZE_U… in ZSTD_createCDict()
5603 cdict->compressionLevel = (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : compressionLevel; in ZSTD_createCDict()
5607 ZSTD_CDict* ZSTD_createCDict_byReference(const void* dict, size_t dictSize, int compressionLevel) in ZSTD_createCDict_byReference() argument
5609 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENTSIZE_U… in ZSTD_createCDict_byReference()
5614 cdict->compressionLevel = (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : compressionLevel; in ZSTD_createCDict_byReference()
5679 cdict->compressionLevel = ZSTD_NO_CLEVEL; in ZSTD_initStaticCDict()
5723 || cdict->compressionLevel == 0 ) ? in ZSTD_compressBegin_usingCDict_internal()
5725 : ZSTD_getCParams(cdict->compressionLevel, in ZSTD_compressBegin_usingCDict_internal()
5728 ZSTD_CCtxParams_init_internal(&cctxParams, ¶ms, cdict->compressionLevel); in ZSTD_compressBegin_usingCDict_internal()
5939 …D_initCStream_usingDict(ZSTD_CStream* zcs, const void* dict, size_t dictSize, int compressionLevel) in ZSTD_initCStream_usingDict() argument
5943 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream_usingDict()
5948 size_t ZSTD_initCStream_srcSize(ZSTD_CStream* zcs, int compressionLevel, unsigned long long pss) in ZSTD_initCStream_srcSize() argument
5958 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream_srcSize()
5963 size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel) in ZSTD_initCStream() argument
5968 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream()
6243 params.compressionLevel = cctx->cdict->compressionLevel; in ZSTD_CCtx_init_compressStream2()
6262 …des = ZSTD_resolveExternalRepcodeSearch(params.searchForExternalRepcodes, params.compressionLevel); in ZSTD_CCtx_init_compressStream2()
7468 static ZSTD_compressionParameters ZSTD_dedicatedDictSearch_getCParams(int const compressionLevel, s… in ZSTD_dedicatedDictSearch_getCParams() argument
7470 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, 0, dictSize, ZSTD_… in ZSTD_dedicatedDictSearch_getCParams()
7550 static ZSTD_compressionParameters ZSTD_getCParams_internal(int compressionLevel, unsigned long long… in ZSTD_getCParams_internal() argument
7555 DEBUGLOG(5, "ZSTD_getCParams_internal (cLevel=%i)", compressionLevel); in ZSTD_getCParams_internal()
7558 if (compressionLevel == 0) row = ZSTD_CLEVEL_DEFAULT; /* 0 == default */ in ZSTD_getCParams_internal()
7559 else if (compressionLevel < 0) row = 0; /* entry 0 is baseline for fast mode */ in ZSTD_getCParams_internal()
7560 else if (compressionLevel > ZSTD_MAX_CLEVEL) row = ZSTD_MAX_CLEVEL; in ZSTD_getCParams_internal()
7561 else row = compressionLevel; in ZSTD_getCParams_internal()
7566 if (compressionLevel < 0) { in ZSTD_getCParams_internal()
7567 int const clampedCompressionLevel = MAX(ZSTD_minCLevel(), compressionLevel); in ZSTD_getCParams_internal()
7578 ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, unsigned long long srcSizeHint, si… in ZSTD_getCParams() argument
7581 return ZSTD_getCParams_internal(compressionLevel, srcSizeHint, dictSize, ZSTD_cpm_unknown); in ZSTD_getCParams()
7589 ZSTD_getParams_internal(int compressionLevel, unsigned long long srcSizeHint, size_t dictSize, ZSTD… in ZSTD_getParams_internal() argument
7592 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, srcSizeHint,… in ZSTD_getParams_internal()
7593 DEBUGLOG(5, "ZSTD_getParams (cLevel=%i)", compressionLevel); in ZSTD_getParams_internal()
7604 ZSTD_parameters ZSTD_getParams(int compressionLevel, unsigned long long srcSizeHint, size_t dictSiz… in ZSTD_getParams() argument
7607 return ZSTD_getParams_internal(compressionLevel, srcSizeHint, dictSize, ZSTD_cpm_unknown); in ZSTD_getParams()