Lines Matching refs:compressionLevel

82     int compressionLevel; /* 0 indicates that advanced API was used to select CDict params */  member
321 size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params* cctxParams, int compressionLevel) { in ZSTD_CCtxParams_init() argument
324 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init()
335 …ms_init_internal(ZSTD_CCtx_params* cctxParams, ZSTD_parameters const* params, int compressionLevel) in ZSTD_CCtxParams_init_internal() argument
344 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init_internal()
373 cctxParams->compressionLevel = ZSTD_NO_CLEVEL; in ZSTD_CCtxParams_setZstdParams()
692 CCtxParams->compressionLevel = ZSTD_CLEVEL_DEFAULT; /* 0 == default */ in ZSTD_CCtxParams_setParameter()
694 CCtxParams->compressionLevel = value; in ZSTD_CCtxParams_setParameter()
695 if (CCtxParams->compressionLevel >= 0) return (size_t)CCtxParams->compressionLevel; in ZSTD_CCtxParams_setParameter()
887 *value = CCtxParams->compressionLevel; in ZSTD_CCtxParams_getParameter()
1019 int const compressionLevel,
1316 static ZSTD_compressionParameters ZSTD_getCParams_internal(int compressionLevel, unsigned long long…
1317 static ZSTD_parameters ZSTD_getParams_internal(int compressionLevel, unsigned long long srcSizeHint…
1339 cParams = ZSTD_getCParams_internal(CCtxParams->compressionLevel, srcSizeHint, dictSize, mode); in ZSTD_getCParamsFromCCtxParams()
1466 static size_t ZSTD_estimateCCtxSize_internal(int compressionLevel) in ZSTD_estimateCCtxSize_internal() argument
1473 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, srcSizeTiers… in ZSTD_estimateCCtxSize_internal()
1479 size_t ZSTD_estimateCCtxSize(int compressionLevel) in ZSTD_estimateCCtxSize() argument
1483 for (level=MIN(compressionLevel, 1); level<=compressionLevel; level++) { in ZSTD_estimateCCtxSize()
1528 static size_t ZSTD_estimateCStreamSize_internal(int compressionLevel) in ZSTD_estimateCStreamSize_internal() argument
1530 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENT… in ZSTD_estimateCStreamSize_internal()
1534 size_t ZSTD_estimateCStreamSize(int compressionLevel) in ZSTD_estimateCStreamSize() argument
1538 for (level=MIN(compressionLevel, 1); level<=compressionLevel; level++) { in ZSTD_estimateCStreamSize()
4416 || cdict->compressionLevel == 0) in ZSTD_compressBegin_internal()
4474 …D_compressBegin_usingDict(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, int compressionLevel) in ZSTD_compressBegin_usingDict() argument
4478 …ZSTD_parameters const params = ZSTD_getParams_internal(compressionLevel, ZSTD_CONTENTSIZE_UNKNOWN,… in ZSTD_compressBegin_usingDict()
4479 …xParams_init_internal(&cctxParams, &params, (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : compre… in ZSTD_compressBegin_usingDict()
4486 size_t ZSTD_compressBegin(ZSTD_CCtx* cctx, int compressionLevel) in ZSTD_compressBegin() argument
4488 return ZSTD_compressBegin_usingDict(cctx, NULL, 0, compressionLevel); in ZSTD_compressBegin()
4601 int compressionLevel) in ZSTD_compress_usingDict() argument
4604 …ZSTD_parameters const params = ZSTD_getParams_internal(compressionLevel, srcSize, dict ? dictSize … in ZSTD_compress_usingDict()
4606 …t_internal(&cctx->simpleApiParams, &params, (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT: compres… in ZSTD_compress_usingDict()
4615 int compressionLevel) in ZSTD_compressCCtx() argument
4619 return ZSTD_compress_usingDict(cctx, dst, dstCapacity, src, srcSize, NULL, 0, compressionLevel); in ZSTD_compressCCtx()
4624 int compressionLevel) in ZSTD_compress() argument
4629 result = ZSTD_compressCCtx(cctx, dst, dstCapacity, src, srcSize, compressionLevel); in ZSTD_compress()
4654 size_t ZSTD_estimateCDictSize(size_t dictSize, int compressionLevel) in ZSTD_estimateCDictSize() argument
4656 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENT… in ZSTD_estimateCDictSize()
4707 { params.compressionLevel = ZSTD_CLEVEL_DEFAULT; in ZSTD_initCDict_internal()
4752 cdict->compressionLevel = ZSTD_NO_CLEVEL; /* signals advanced API usage */ in ZSTD_createCDict_advanced_internal()
4791 cctxParams.compressionLevel, dictSize); in ZSTD_createCDict_advanced2()
4827 ZSTD_CDict* ZSTD_createCDict(const void* dict, size_t dictSize, int compressionLevel) in ZSTD_createCDict() argument
4829 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENTSIZE_U… in ZSTD_createCDict()
4834 cdict->compressionLevel = (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : compressionLevel; in ZSTD_createCDict()
4838 ZSTD_CDict* ZSTD_createCDict_byReference(const void* dict, size_t dictSize, int compressionLevel) in ZSTD_createCDict_byReference() argument
4840 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENTSIZE_U… in ZSTD_createCDict_byReference()
4845 cdict->compressionLevel = (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT : compressionLevel; in ZSTD_createCDict_byReference()
4954 || cdict->compressionLevel == 0 ) ? in ZSTD_compressBegin_usingCDict_internal()
4956 : ZSTD_getCParams(cdict->compressionLevel, in ZSTD_compressBegin_usingCDict_internal()
4959 ZSTD_CCtxParams_init_internal(&cctxParams, &params, cdict->compressionLevel); in ZSTD_compressBegin_usingCDict_internal()
5165 …D_initCStream_usingDict(ZSTD_CStream* zcs, const void* dict, size_t dictSize, int compressionLevel) in ZSTD_initCStream_usingDict() argument
5169 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream_usingDict()
5174 size_t ZSTD_initCStream_srcSize(ZSTD_CStream* zcs, int compressionLevel, unsigned long long pss) in ZSTD_initCStream_srcSize() argument
5184 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream_srcSize()
5189 size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel) in ZSTD_initCStream() argument
5194 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream()
5439 params.compressionLevel = cctx->cdict->compressionLevel; in ZSTD_CCtx_init_compressStream2()
5992 static ZSTD_compressionParameters ZSTD_dedicatedDictSearch_getCParams(int const compressionLevel, s… in ZSTD_dedicatedDictSearch_getCParams() argument
5994 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, 0, dictSize, ZSTD_… in ZSTD_dedicatedDictSearch_getCParams()
6074 static ZSTD_compressionParameters ZSTD_getCParams_internal(int compressionLevel, unsigned long long… in ZSTD_getCParams_internal() argument
6079 DEBUGLOG(5, "ZSTD_getCParams_internal (cLevel=%i)", compressionLevel); in ZSTD_getCParams_internal()
6082 if (compressionLevel == 0) row = ZSTD_CLEVEL_DEFAULT; /* 0 == default */ in ZSTD_getCParams_internal()
6083 else if (compressionLevel < 0) row = 0; /* entry 0 is baseline for fast mode */ in ZSTD_getCParams_internal()
6084 else if (compressionLevel > ZSTD_MAX_CLEVEL) row = ZSTD_MAX_CLEVEL; in ZSTD_getCParams_internal()
6085 else row = compressionLevel; in ZSTD_getCParams_internal()
6090 if (compressionLevel < 0) { in ZSTD_getCParams_internal()
6091 int const clampedCompressionLevel = MAX(ZSTD_minCLevel(), compressionLevel); in ZSTD_getCParams_internal()
6102 ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, unsigned long long srcSizeHint, si… in ZSTD_getCParams() argument
6105 return ZSTD_getCParams_internal(compressionLevel, srcSizeHint, dictSize, ZSTD_cpm_unknown); in ZSTD_getCParams()
6112 static ZSTD_parameters ZSTD_getParams_internal(int compressionLevel, unsigned long long srcSizeHint… in ZSTD_getParams_internal() argument
6114 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, srcSizeHint,… in ZSTD_getParams_internal()
6115 DEBUGLOG(5, "ZSTD_getParams (cLevel=%i)", compressionLevel); in ZSTD_getParams_internal()
6126 ZSTD_parameters ZSTD_getParams(int compressionLevel, unsigned long long srcSizeHint, size_t dictSiz… in ZSTD_getParams() argument
6128 return ZSTD_getParams_internal(compressionLevel, srcSizeHint, dictSize, ZSTD_cpm_unknown); in ZSTD_getParams()