Lines Matching refs:cctxParams
206 ZSTD_CCtx_params cctxParams; in ZSTD_makeCCtxParamsFromCParams() local
208 ZSTD_CCtxParams_init(&cctxParams, ZSTD_CLEVEL_DEFAULT); in ZSTD_makeCCtxParamsFromCParams()
209 cctxParams.cParams = cParams; in ZSTD_makeCCtxParamsFromCParams()
213 cctxParams.ldmParams.enableLdm = 1; in ZSTD_makeCCtxParamsFromCParams()
215 ZSTD_ldm_adjustParameters(&cctxParams.ldmParams, &cParams); in ZSTD_makeCCtxParamsFromCParams()
216 assert(cctxParams.ldmParams.hashLog >= cctxParams.ldmParams.bucketSizeLog); in ZSTD_makeCCtxParamsFromCParams()
217 assert(cctxParams.ldmParams.hashRateLog < 32); in ZSTD_makeCCtxParamsFromCParams()
221 return cctxParams; in ZSTD_makeCCtxParamsFromCParams()
254 size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params* cctxParams, int compressionLevel) { in ZSTD_CCtxParams_init() argument
255 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init()
256 ZSTD_memset(cctxParams, 0, sizeof(*cctxParams)); in ZSTD_CCtxParams_init()
257 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init()
258 cctxParams->fParams.contentSizeFlag = 1; in ZSTD_CCtxParams_init()
268 static void ZSTD_CCtxParams_init_internal(ZSTD_CCtx_params* cctxParams, ZSTD_parameters const* para… in ZSTD_CCtxParams_init_internal() argument
271 ZSTD_memset(cctxParams, 0, sizeof(*cctxParams)); in ZSTD_CCtxParams_init_internal()
272 cctxParams->cParams = params->cParams; in ZSTD_CCtxParams_init_internal()
273 cctxParams->fParams = params->fParams; in ZSTD_CCtxParams_init_internal()
277 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init_internal()
280 size_t ZSTD_CCtxParams_init_advanced(ZSTD_CCtx_params* cctxParams, ZSTD_parameters params) in ZSTD_CCtxParams_init_advanced() argument
282 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init_advanced()
284 ZSTD_CCtxParams_init_internal(cctxParams, ¶ms, ZSTD_NO_CLEVEL); in ZSTD_CCtxParams_init_advanced()
293 ZSTD_CCtx_params* cctxParams, const ZSTD_parameters* params) in ZSTD_CCtxParams_setZstdParams() argument
296 cctxParams->cParams = params->cParams; in ZSTD_CCtxParams_setZstdParams()
297 cctxParams->fParams = params->fParams; in ZSTD_CCtxParams_setZstdParams()
301 cctxParams->compressionLevel = ZSTD_NO_CLEVEL; in ZSTD_CCtxParams_setZstdParams()
2090 static int ZSTD_useTargetCBlockSize(const ZSTD_CCtx_params* cctxParams) in ZSTD_useTargetCBlockSize() argument
2092 DEBUGLOG(5, "ZSTD_useTargetCBlockSize (targetCBlockSize=%zu)", cctxParams->targetCBlockSize); in ZSTD_useTargetCBlockSize()
2093 return (cctxParams->targetCBlockSize != 0); in ZSTD_useTargetCBlockSize()
2102 const ZSTD_CCtx_params* cctxParams, in ZSTD_entropyCompressSequences_internal() argument
2107 const int longOffsets = cctxParams->cParams.windowLog > STREAM_ACCUMULATOR_MIN; in ZSTD_entropyCompressSequences_internal()
2108 ZSTD_strategy const strategy = cctxParams->cParams.strategy; in ZSTD_entropyCompressSequences_internal()
2137 cctxParams->cParams.strategy, in ZSTD_entropyCompressSequences_internal()
2138 ZSTD_disableLiteralsCompression(cctxParams), in ZSTD_entropyCompressSequences_internal()
2293 const ZSTD_CCtx_params* cctxParams, in ZSTD_entropyCompressSequences() argument
2300 seqStorePtr, prevEntropy, nextEntropy, cctxParams, in ZSTD_entropyCompressSequences()
2312 { size_t const maxCSize = srcSize - ZSTD_minGain(srcSize, cctxParams->cParams.strategy); in ZSTD_entropyCompressSequences()
3382 ZSTD_CCtx_params cctxParams; in ZSTD_compressBegin_advanced() local
3383 ZSTD_CCtxParams_init_internal(&cctxParams, ¶ms, ZSTD_NO_CLEVEL); in ZSTD_compressBegin_advanced()
3387 &cctxParams, pledgedSrcSize); in ZSTD_compressBegin_advanced()
3392 ZSTD_CCtx_params cctxParams; in ZSTD_compressBegin_usingDict() local
3395 …ZSTD_CCtxParams_init_internal(&cctxParams, ¶ms, (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT … in ZSTD_compressBegin_usingDict()
3399 &cctxParams, ZSTD_CONTENTSIZE_UNKNOWN, ZSTDb_not_buffered); in ZSTD_compressBegin_usingDict()
3488 ZSTD_CCtx_params cctxParams; in ZSTD_compress_advanced() local
3491 ZSTD_CCtxParams_init_internal(&cctxParams, ¶ms, ZSTD_NO_CLEVEL); in ZSTD_compress_advanced()
3496 &cctxParams); in ZSTD_compress_advanced()
3520 ZSTD_CCtx_params cctxParams; in ZSTD_compress_usingDict() local
3524 …ZSTD_CCtxParams_init_internal(&cctxParams, ¶ms, (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT:… in ZSTD_compress_usingDict()
3527 …ZSTD_compress_advanced_internal(cctx, dst, dstCapacity, src, srcSize, dict, dictSize, &cctxParams); in ZSTD_compress_usingDict()
3678 ZSTD_CCtx_params cctxParams; in ZSTD_createCDict_advanced() local
3679 ZSTD_memset(&cctxParams, 0, sizeof(cctxParams)); in ZSTD_createCDict_advanced()
3680 ZSTD_CCtxParams_init(&cctxParams, 0); in ZSTD_createCDict_advanced()
3681 cctxParams.cParams = cParams; in ZSTD_createCDict_advanced()
3682 cctxParams.customMem = customMem; in ZSTD_createCDict_advanced()
3686 &cctxParams, customMem); in ZSTD_createCDict_advanced()
3696 ZSTD_CCtx_params cctxParams = *originalCctxParams; in ZSTD_createCDict_advanced2() local
3703 if (cctxParams.enableDedicatedDictSearch) { in ZSTD_createCDict_advanced2()
3705 cctxParams.compressionLevel, dictSize); in ZSTD_createCDict_advanced2()
3706 ZSTD_overrideCParams(&cParams, &cctxParams.cParams); in ZSTD_createCDict_advanced2()
3709 &cctxParams, ZSTD_CONTENTSIZE_UNKNOWN, dictSize, ZSTD_cpm_createCDict); in ZSTD_createCDict_advanced2()
3714 cctxParams.enableDedicatedDictSearch = 0; in ZSTD_createCDict_advanced2()
3716 &cctxParams, ZSTD_CONTENTSIZE_UNKNOWN, dictSize, ZSTD_cpm_createCDict); in ZSTD_createCDict_advanced2()
3719 cctxParams.cParams = cParams; in ZSTD_createCDict_advanced2()
3722 dictLoadMethod, cctxParams.cParams, in ZSTD_createCDict_advanced2()
3728 cctxParams) )) { in ZSTD_createCDict_advanced2()
3849 ZSTD_CCtx_params cctxParams; in ZSTD_compressBegin_usingCDict_advanced() local
3864 ZSTD_CCtxParams_init_internal(&cctxParams, ¶ms, cdict->compressionLevel); in ZSTD_compressBegin_usingCDict_advanced()
3873 cctxParams.cParams.windowLog = MAX(cctxParams.cParams.windowLog, limitedSrcLog); in ZSTD_compressBegin_usingCDict_advanced()
3878 &cctxParams, pledgedSrcSize, in ZSTD_compressBegin_usingCDict_advanced()