Lines Matching refs:compressionLevel
3203 int compressionLevel);
3295 int compressionLevel);
3805 ZSTDLIB_API size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel);
3881 int compressionLevel);
3913 int compressionLevel);
4378 ZSTDLIB_API size_t ZSTD_estimateCCtxSize(int compressionLevel);
4396 ZSTDLIB_API size_t ZSTD_estimateCStreamSize(int compressionLevel);
4407 ZSTDLIB_API size_t ZSTD_estimateCDictSize(size_t dictSize, int compressionLevel);
4490 …CDict* ZSTD_createCDict_byReference(const void* dictBuffer, size_t dictSize, int compressionLevel);
4495 ZSTDLIB_API ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, unsigned long long est…
4500 ZSTDLIB_API ZSTD_parameters ZSTD_getParams(int compressionLevel, unsigned long long estimatedSrcSiz…
4643 ZSTDLIB_API size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params* cctxParams, int compressionLevel);
4813 int compressionLevel,
4831 int compressionLevel);
5010 ZSTDLIB_API size_t ZSTD_compressBegin(ZSTD_CCtx* cctx, int compressionLevel);
5011 …_compressBegin_usingDict(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, int compressionLevel);
9816 int compressionLevel);
9822 ZSTDMT_API size_t ZSTDMT_initCStream(ZSTDMT_CCtx* mtctx, int compressionLevel);
10120 int compressionLevel; member
13145 int compressionLevel; /* 0 indicates that advanced API was used to select CDict params */ member
13282 …cctxParams.compressionLevel = ZSTD_CLEVEL_DEFAULT; /* should not matter, as all cParams are presu… in ZSTD_makeCCtxParamsFromCParams()
13297 params->compressionLevel = ZSTD_CLEVEL_DEFAULT; in ZSTD_createCCtxParams_advanced()
13319 size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params* cctxParams, int compressionLevel) { in ZSTD_CCtxParams_init() argument
13322 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init()
13335 …cctxParams->compressionLevel = ZSTD_CLEVEL_DEFAULT; /* should not matter, as all cParams are pre… in ZSTD_CCtxParams_init_advanced()
13348 …ret.compressionLevel = ZSTD_CLEVEL_DEFAULT; /* should not matter, as all cParams are presumed pr… in ZSTD_assignParamsToCCtxParams()
13629 CCtxParams->compressionLevel = value; in ZSTD_CCtxParams_setParameter()
13631 if (CCtxParams->compressionLevel >= 0) return (size_t)CCtxParams->compressionLevel; in ZSTD_CCtxParams_setParameter()
13812 *value = CCtxParams->compressionLevel; in ZSTD_CCtxParams_getParameter()
14158 static ZSTD_compressionParameters ZSTD_getCParams_internal(int compressionLevel, unsigned long long…
14159 static ZSTD_parameters ZSTD_getParams_internal(int compressionLevel, unsigned long long srcSizeHint…
14168 cParams = ZSTD_getCParams_internal(CCtxParams->compressionLevel, srcSizeHint, dictSize); in ZSTD_getCParamsFromCCtxParams()
14257 static size_t ZSTD_estimateCCtxSize_internal(int compressionLevel) in ZSTD_estimateCCtxSize_internal() argument
14259 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENT… in ZSTD_estimateCCtxSize_internal()
14263 size_t ZSTD_estimateCCtxSize(int compressionLevel) in ZSTD_estimateCCtxSize() argument
14267 for (level=MIN(compressionLevel, 1); level<=compressionLevel; level++) { in ZSTD_estimateCCtxSize()
14296 static size_t ZSTD_estimateCStreamSize_internal(int compressionLevel) in ZSTD_estimateCStreamSize_internal() argument
14298 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENT… in ZSTD_estimateCStreamSize_internal()
14302 size_t ZSTD_estimateCStreamSize(int compressionLevel) in ZSTD_estimateCStreamSize() argument
14306 for (level=MIN(compressionLevel, 1); level<=compressionLevel; level++) { in ZSTD_estimateCStreamSize()
16182 || cdict->compressionLevel == 0) in ZSTD_compressBegin_internal()
16238 …D_compressBegin_usingDict(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, int compressionLevel) in ZSTD_compressBegin_usingDict() argument
16240 …ZSTD_parameters const params = ZSTD_getParams_internal(compressionLevel, ZSTD_CONTENTSIZE_UNKNOWN,… in ZSTD_compressBegin_usingDict()
16248 size_t ZSTD_compressBegin(ZSTD_CCtx* cctx, int compressionLevel) in ZSTD_compressBegin() argument
16250 return ZSTD_compressBegin_usingDict(cctx, NULL, 0, compressionLevel); in ZSTD_compressBegin()
16372 int compressionLevel) in ZSTD_compress_usingDict() argument
16374 …ZSTD_parameters const params = ZSTD_getParams_internal(compressionLevel, srcSize, dict ? dictSize … in ZSTD_compress_usingDict()
16384 int compressionLevel) in ZSTD_compressCCtx() argument
16388 return ZSTD_compress_usingDict(cctx, dst, dstCapacity, src, srcSize, NULL, 0, compressionLevel); in ZSTD_compressCCtx()
16393 int compressionLevel) in ZSTD_compress() argument
16398 result = ZSTD_compressCCtx(&ctxBody, dst, dstCapacity, src, srcSize, compressionLevel); in ZSTD_compress()
16420 size_t ZSTD_estimateCDictSize(size_t dictSize, int compressionLevel) in ZSTD_estimateCDictSize() argument
16422 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENT… in ZSTD_estimateCDictSize()
16472 params.compressionLevel = ZSTD_CLEVEL_DEFAULT; in ZSTD_initCDict_internal()
16517 cdict->compressionLevel = 0; /* signals advanced API usage */ in ZSTD_createCDict_advanced()
16531 ZSTD_CDict* ZSTD_createCDict(const void* dict, size_t dictSize, int compressionLevel) in ZSTD_createCDict() argument
16533 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENTSIZE_U… in ZSTD_createCDict()
16538 cdict->compressionLevel = compressionLevel == 0 ? ZSTD_CLEVEL_DEFAULT : compressionLevel; in ZSTD_createCDict()
16542 ZSTD_CDict* ZSTD_createCDict_byReference(const void* dict, size_t dictSize, int compressionLevel) in ZSTD_createCDict_byReference() argument
16544 …ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENTSIZE_U… in ZSTD_createCDict_byReference()
16632 || cdict->compressionLevel == 0 ) in ZSTD_compressBegin_usingCDict_advanced()
16635 : ZSTD_getCParams(cdict->compressionLevel, in ZSTD_compressBegin_usingCDict_advanced()
16841 …D_initCStream_usingDict(ZSTD_CStream* zcs, const void* dict, size_t dictSize, int compressionLevel) in ZSTD_initCStream_usingDict() argument
16845 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream_usingDict()
16850 size_t ZSTD_initCStream_srcSize(ZSTD_CStream* zcs, int compressionLevel, unsigned long long pss) in ZSTD_initCStream_srcSize() argument
16860 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream_srcSize()
16865 size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel) in ZSTD_initCStream() argument
16870 FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); in ZSTD_initCStream()
17314 static ZSTD_compressionParameters ZSTD_getCParams_internal(int compressionLevel, unsigned long long… in ZSTD_getCParams_internal() argument
17320 int row = compressionLevel; in ZSTD_getCParams_internal()
17321 DEBUGLOG(5, "ZSTD_getCParams_internal (cLevel=%i)", compressionLevel); in ZSTD_getCParams_internal()
17322 if (compressionLevel == 0) row = ZSTD_CLEVEL_DEFAULT; /* 0 == default */ in ZSTD_getCParams_internal()
17323 if (compressionLevel < 0) row = 0; /* entry 0 is baseline for fast mode */ in ZSTD_getCParams_internal()
17324 if (compressionLevel > ZSTD_MAX_CLEVEL) row = ZSTD_MAX_CLEVEL; in ZSTD_getCParams_internal()
17326 …if (compressionLevel < 0) cp.targetLength = (unsigned)(-compressionLevel); /* acceleration facto… in ZSTD_getCParams_internal()
17335 ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, unsigned long long srcSizeHint, si… in ZSTD_getCParams() argument
17338 return ZSTD_getCParams_internal(compressionLevel, srcSizeHint, dictSize); in ZSTD_getCParams()
17345 static ZSTD_parameters ZSTD_getParams_internal(int compressionLevel, unsigned long long srcSizeHint… in ZSTD_getParams_internal() argument
17347 …ZSTD_compressionParameters const cParams = ZSTD_getCParams_internal(compressionLevel, srcSizeHint,… in ZSTD_getParams_internal()
17348 DEBUGLOG(5, "ZSTD_getParams (cLevel=%i)", compressionLevel); in ZSTD_getParams_internal()
17359 ZSTD_parameters ZSTD_getParams(int compressionLevel, unsigned long long srcSizeHint, size_t dictSiz… in ZSTD_getParams() argument
17361 return ZSTD_getParams_internal(compressionLevel, srcSizeHint, dictSize); in ZSTD_getParams()