Lines Matching refs:compressionLevel

85     int compressionLevel; /* 0 indicates that advanced API was used to select CDict params */  member
331 size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params* cctxParams, int compressionLevel) { in ZSTD_CCtxParams_init() argument
334 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init()
345 …ms_init_internal(ZSTD_CCtx_params* cctxParams, ZSTD_parameters const* params, int compressionLevel) in ZSTD_CCtxParams_init_internal() argument
354 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init_internal()
383 cctxParams->compressionLevel = ZSTD_NO_CLEVEL; in ZSTD_CCtxParams_setZstdParams()
715 CCtxParams->compressionLevel = ZSTD_CLEVEL_DEFAULT; /* 0 == default */ in ZSTD_CCtxParams_setParameter()
717 CCtxParams->compressionLevel = value; in ZSTD_CCtxParams_setParameter()
718 if (CCtxParams->compressionLevel >= 0) return (size_t)CCtxParams->compressionLevel; in ZSTD_CCtxParams_setParameter()
938 *value = CCtxParams->compressionLevel; in ZSTD_CCtxParams_getParameter()
1088 int const compressionLevel,
1385 static ZSTD_compressionParameters ZSTD_getCParams_internal(int compressionLevel, unsigned long long…
1386 static ZSTD_parameters ZSTD_getParams_internal(int compressionLevel, unsigned long long srcSizeHint…
1408 cParams = ZSTD_getCParams_internal(CCtxParams->compressionLevel, srcSizeHint, dictSize, mode); in ZSTD_getCParamsFromCCtxParams()
1535 static size_t ZSTD_estimateCCtxSize_internal(int compressionLevel) in ZSTD_estimateCCtxSize_internal() argument
1542 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, srcSizeTiers… in ZSTD_estimateCCtxSize_internal()
1548 size_t ZSTD_estimateCCtxSize(int compressionLevel) in ZSTD_estimateCCtxSize() argument
1552 for (level=MIN(compressionLevel, 1); level<=compressionLevel; level++) { in ZSTD_estimateCCtxSize()
1597 static size_t ZSTD_estimateCStreamSize_internal(int compressionLevel) in ZSTD_estimateCStreamSize_internal() argument
1599 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENT… in ZSTD_estimateCStreamSize_internal()
1603 size_t ZSTD_estimateCStreamSize(int compressionLevel) in ZSTD_estimateCStreamSize() argument
1607 for (level=MIN(compressionLevel, 1); level<=compressionLevel; level++) { in ZSTD_estimateCStreamSize()
4510 || cdict->compressionLevel == 0) in ZSTD_compressBegin_internal()
4568 …D_compressBegin_usingDict(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, int compressionLevel) in ZSTD_compressBegin_usingDict() argument
4572 …ZSTD_parameters const params = ZSTD_getParams_internal(compressionLevel, ZSTD_CONTENTSIZE_UNKNOWN,… in ZSTD_compressBegin_usingDict()
4573 …xParams_init_internal(&cctxParams, &params, (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : compre… in ZSTD_compressBegin_usingDict()
4580 size_t ZSTD_compressBegin(ZSTD_CCtx* cctx, int compressionLevel) in ZSTD_compressBegin() argument
4582 return ZSTD_compressBegin_usingDict(cctx, NULL, 0, compressionLevel); in ZSTD_compressBegin()
4713 int compressionLevel) in ZSTD_compress_usingDict() argument
4716 …ZSTD_parameters const params = ZSTD_getParams_internal(compressionLevel, srcSize, dict ? dictSize … in ZSTD_compress_usingDict()
4718 …t_internal(&cctx->simpleApiParams, &params, (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT: compres… in ZSTD_compress_usingDict()
4727 int compressionLevel) in ZSTD_compressCCtx() argument
4731 return ZSTD_compress_usingDict(cctx, dst, dstCapacity, src, srcSize, NULL, 0, compressionLevel); in ZSTD_compressCCtx()
4736 int compressionLevel) in ZSTD_compress() argument
4742 result = ZSTD_compressCCtx(cctx, dst, dstCapacity, src, srcSize, compressionLevel); in ZSTD_compress()
4747 result = ZSTD_compressCCtx(&ctxBody, dst, dstCapacity, src, srcSize, compressionLevel); in ZSTD_compress()
4773 size_t ZSTD_estimateCDictSize(size_t dictSize, int compressionLevel) in ZSTD_estimateCDictSize() argument
4775 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENT… in ZSTD_estimateCDictSize()
4826 { params.compressionLevel = ZSTD_CLEVEL_DEFAULT; in ZSTD_initCDict_internal()
4871 cdict->compressionLevel = ZSTD_NO_CLEVEL; /* signals advanced API usage */ in ZSTD_createCDict_advanced_internal()
4910 cctxParams.compressionLevel, dictSize); in ZSTD_createCDict_advanced2()
4944 ZSTD_CDict* ZSTD_createCDict(const void* dict, size_t dictSize, int compressionLevel) in ZSTD_createCDict() argument
4946 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENTSIZE_U… in ZSTD_createCDict()
4951 cdict->compressionLevel = (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : compressionLevel; in ZSTD_createCDict()
4955 ZSTD_CDict* ZSTD_createCDict_byReference(const void* dict, size_t dictSize, int compressionLevel) in ZSTD_createCDict_byReference() argument
4957 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENTSIZE_U… in ZSTD_createCDict_byReference()
4962 cdict->compressionLevel = (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : compressionLevel; in ZSTD_createCDict_byReference()
5071 || cdict->compressionLevel == 0 ) ? in ZSTD_compressBegin_usingCDict_internal()
5073 : ZSTD_getCParams(cdict->compressionLevel, in ZSTD_compressBegin_usingCDict_internal()
5076 ZSTD_CCtxParams_init_internal(&cctxParams, &params, cdict->compressionLevel); in ZSTD_compressBegin_usingCDict_internal()
5282 …D_initCStream_usingDict(ZSTD_CStream* zcs, const void* dict, size_t dictSize, int compressionLevel) in ZSTD_initCStream_usingDict() argument
5286 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream_usingDict()
5291 size_t ZSTD_initCStream_srcSize(ZSTD_CStream* zcs, int compressionLevel, unsigned long long pss) in ZSTD_initCStream_srcSize() argument
5301 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream_srcSize()
5306 size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel) in ZSTD_initCStream() argument
5311 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream()
5562 params.compressionLevel = cctx->cdict->compressionLevel; in ZSTD_CCtx_init_compressStream2()
6190 static ZSTD_compressionParameters ZSTD_dedicatedDictSearch_getCParams(int const compressionLevel, s… in ZSTD_dedicatedDictSearch_getCParams() argument
6192 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, 0, dictSize, ZSTD_… in ZSTD_dedicatedDictSearch_getCParams()
6272 static ZSTD_compressionParameters ZSTD_getCParams_internal(int compressionLevel, unsigned long long… in ZSTD_getCParams_internal() argument
6277 DEBUGLOG(5, "ZSTD_getCParams_internal (cLevel=%i)", compressionLevel); in ZSTD_getCParams_internal()
6280 if (compressionLevel == 0) row = ZSTD_CLEVEL_DEFAULT; /* 0 == default */ in ZSTD_getCParams_internal()
6281 else if (compressionLevel < 0) row = 0; /* entry 0 is baseline for fast mode */ in ZSTD_getCParams_internal()
6282 else if (compressionLevel > ZSTD_MAX_CLEVEL) row = ZSTD_MAX_CLEVEL; in ZSTD_getCParams_internal()
6283 else row = compressionLevel; in ZSTD_getCParams_internal()
6288 if (compressionLevel < 0) { in ZSTD_getCParams_internal()
6289 int const clampedCompressionLevel = MAX(ZSTD_minCLevel(), compressionLevel); in ZSTD_getCParams_internal()
6300 ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, unsigned long long srcSizeHint, si… in ZSTD_getCParams() argument
6303 return ZSTD_getCParams_internal(compressionLevel, srcSizeHint, dictSize, ZSTD_cpm_unknown); in ZSTD_getCParams()
6310 static ZSTD_parameters ZSTD_getParams_internal(int compressionLevel, unsigned long long srcSizeHint… in ZSTD_getParams_internal() argument
6312 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, srcSizeHint,… in ZSTD_getParams_internal()
6313 DEBUGLOG(5, "ZSTD_getParams (cLevel=%i)", compressionLevel); in ZSTD_getParams_internal()
6324 ZSTD_parameters ZSTD_getParams(int compressionLevel, unsigned long long srcSizeHint, size_t dictSiz… in ZSTD_getParams() argument
6326 return ZSTD_getParams_internal(compressionLevel, srcSizeHint, dictSize, ZSTD_cpm_unknown); in ZSTD_getParams()