Lines Matching refs:cctxParams
273 ZSTD_CCtx_params cctxParams; in ZSTD_makeCCtxParamsFromCParams() local
275 ZSTD_CCtxParams_init(&cctxParams, ZSTD_CLEVEL_DEFAULT); in ZSTD_makeCCtxParamsFromCParams()
276 cctxParams.cParams = cParams; in ZSTD_makeCCtxParamsFromCParams()
279 … cctxParams.ldmParams.enableLdm = ZSTD_resolveEnableLdm(cctxParams.ldmParams.enableLdm, &cParams); in ZSTD_makeCCtxParamsFromCParams()
280 if (cctxParams.ldmParams.enableLdm == ZSTD_ps_enable) { in ZSTD_makeCCtxParamsFromCParams()
281 ZSTD_ldm_adjustParameters(&cctxParams.ldmParams, &cParams); in ZSTD_makeCCtxParamsFromCParams()
282 assert(cctxParams.ldmParams.hashLog >= cctxParams.ldmParams.bucketSizeLog); in ZSTD_makeCCtxParamsFromCParams()
283 assert(cctxParams.ldmParams.hashRateLog < 32); in ZSTD_makeCCtxParamsFromCParams()
285 …cctxParams.useBlockSplitter = ZSTD_resolveBlockSplitterMode(cctxParams.useBlockSplitter, &cParams); in ZSTD_makeCCtxParamsFromCParams()
286 …cctxParams.useRowMatchFinder = ZSTD_resolveRowMatchFinderMode(cctxParams.useRowMatchFinder, &cPara… in ZSTD_makeCCtxParamsFromCParams()
288 return cctxParams; in ZSTD_makeCCtxParamsFromCParams()
321 size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params* cctxParams, int compressionLevel) { in ZSTD_CCtxParams_init() argument
322 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init()
323 ZSTD_memset(cctxParams, 0, sizeof(*cctxParams)); in ZSTD_CCtxParams_init()
324 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init()
325 cctxParams->fParams.contentSizeFlag = 1; in ZSTD_CCtxParams_init()
335 static void ZSTD_CCtxParams_init_internal(ZSTD_CCtx_params* cctxParams, ZSTD_parameters const* para… in ZSTD_CCtxParams_init_internal() argument
338 ZSTD_memset(cctxParams, 0, sizeof(*cctxParams)); in ZSTD_CCtxParams_init_internal()
339 cctxParams->cParams = params->cParams; in ZSTD_CCtxParams_init_internal()
340 cctxParams->fParams = params->fParams; in ZSTD_CCtxParams_init_internal()
344 cctxParams->compressionLevel = compressionLevel; in ZSTD_CCtxParams_init_internal()
345 …cctxParams->useRowMatchFinder = ZSTD_resolveRowMatchFinderMode(cctxParams->useRowMatchFinder, &par… in ZSTD_CCtxParams_init_internal()
346 …cctxParams->useBlockSplitter = ZSTD_resolveBlockSplitterMode(cctxParams->useBlockSplitter, ¶ms… in ZSTD_CCtxParams_init_internal()
347 …cctxParams->ldmParams.enableLdm = ZSTD_resolveEnableLdm(cctxParams->ldmParams.enableLdm, ¶ms->… in ZSTD_CCtxParams_init_internal()
349 … cctxParams->useRowMatchFinder, cctxParams->useBlockSplitter, cctxParams->ldmParams.enableLdm); in ZSTD_CCtxParams_init_internal()
352 size_t ZSTD_CCtxParams_init_advanced(ZSTD_CCtx_params* cctxParams, ZSTD_parameters params) in ZSTD_CCtxParams_init_advanced() argument
354 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init_advanced()
356 ZSTD_CCtxParams_init_internal(cctxParams, ¶ms, ZSTD_NO_CLEVEL); in ZSTD_CCtxParams_init_advanced()
365 ZSTD_CCtx_params* cctxParams, const ZSTD_parameters* params) in ZSTD_CCtxParams_setZstdParams() argument
368 cctxParams->cParams = params->cParams; in ZSTD_CCtxParams_setZstdParams()
369 cctxParams->fParams = params->fParams; in ZSTD_CCtxParams_setZstdParams()
373 cctxParams->compressionLevel = ZSTD_NO_CLEVEL; in ZSTD_CCtxParams_setZstdParams()
2323 static int ZSTD_useTargetCBlockSize(const ZSTD_CCtx_params* cctxParams) in ZSTD_useTargetCBlockSize() argument
2325 DEBUGLOG(5, "ZSTD_useTargetCBlockSize (targetCBlockSize=%zu)", cctxParams->targetCBlockSize); in ZSTD_useTargetCBlockSize()
2326 return (cctxParams->targetCBlockSize != 0); in ZSTD_useTargetCBlockSize()
2334 static int ZSTD_blockSplitterEnabled(ZSTD_CCtx_params* cctxParams) in ZSTD_blockSplitterEnabled() argument
2336 DEBUGLOG(5, "ZSTD_blockSplitterEnabled (useBlockSplitter=%d)", cctxParams->useBlockSplitter); in ZSTD_blockSplitterEnabled()
2337 assert(cctxParams->useBlockSplitter != ZSTD_ps_auto); in ZSTD_blockSplitterEnabled()
2338 return (cctxParams->useBlockSplitter == ZSTD_ps_enable); in ZSTD_blockSplitterEnabled()
2486 const ZSTD_CCtx_params* cctxParams, in ZSTD_entropyCompressSeqStore_internal() argument
2491 const int longOffsets = cctxParams->cParams.windowLog > STREAM_ACCUMULATOR_MIN; in ZSTD_entropyCompressSeqStore_internal()
2492 ZSTD_strategy const strategy = cctxParams->cParams.strategy; in ZSTD_entropyCompressSeqStore_internal()
2523 cctxParams->cParams.strategy, in ZSTD_entropyCompressSeqStore_internal()
2524 ZSTD_literalsCompressionIsDisabled(cctxParams), in ZSTD_entropyCompressSeqStore_internal()
2604 const ZSTD_CCtx_params* cctxParams, in ZSTD_entropyCompressSeqStore() argument
2611 seqStorePtr, prevEntropy, nextEntropy, cctxParams, in ZSTD_entropyCompressSeqStore()
2623 { size_t const maxCSize = srcSize - ZSTD_minGain(srcSize, cctxParams->cParams.strategy); in ZSTD_entropyCompressSeqStore()
3085 const ZSTD_CCtx_params* cctxParams, in ZSTD_buildBlockEntropyStats_sequences() argument
3089 ZSTD_strategy const strategy = cctxParams->cParams.strategy; in ZSTD_buildBlockEntropyStats_sequences()
3123 const ZSTD_CCtx_params* cctxParams, in ZSTD_buildBlockEntropyStats() argument
3132 ZSTD_literalsCompressionIsDisabled(cctxParams), in ZSTD_buildBlockEntropyStats()
3138 cctxParams, in ZSTD_buildBlockEntropyStats()
4466 ZSTD_CCtx_params cctxParams; in ZSTD_compressBegin_advanced() local
4467 ZSTD_CCtxParams_init_internal(&cctxParams, ¶ms, ZSTD_NO_CLEVEL); in ZSTD_compressBegin_advanced()
4471 &cctxParams, pledgedSrcSize); in ZSTD_compressBegin_advanced()
4476 ZSTD_CCtx_params cctxParams; in ZSTD_compressBegin_usingDict() local
4479 …ZSTD_CCtxParams_init_internal(&cctxParams, ¶ms, (compressionLevel == 0) ? ZSTD_CLEVEL_DEFAULT … in ZSTD_compressBegin_usingDict()
4483 &cctxParams, ZSTD_CONTENTSIZE_UNKNOWN, ZSTDb_not_buffered); in ZSTD_compressBegin_usingDict()
4764 ZSTD_CCtx_params cctxParams; in ZSTD_createCDict_advanced() local
4765 ZSTD_memset(&cctxParams, 0, sizeof(cctxParams)); in ZSTD_createCDict_advanced()
4766 ZSTD_CCtxParams_init(&cctxParams, 0); in ZSTD_createCDict_advanced()
4767 cctxParams.cParams = cParams; in ZSTD_createCDict_advanced()
4768 cctxParams.customMem = customMem; in ZSTD_createCDict_advanced()
4772 &cctxParams, customMem); in ZSTD_createCDict_advanced()
4782 ZSTD_CCtx_params cctxParams = *originalCctxParams; in ZSTD_createCDict_advanced2() local
4789 if (cctxParams.enableDedicatedDictSearch) { in ZSTD_createCDict_advanced2()
4791 cctxParams.compressionLevel, dictSize); in ZSTD_createCDict_advanced2()
4792 ZSTD_overrideCParams(&cParams, &cctxParams.cParams); in ZSTD_createCDict_advanced2()
4795 &cctxParams, ZSTD_CONTENTSIZE_UNKNOWN, dictSize, ZSTD_cpm_createCDict); in ZSTD_createCDict_advanced2()
4800 cctxParams.enableDedicatedDictSearch = 0; in ZSTD_createCDict_advanced2()
4802 &cctxParams, ZSTD_CONTENTSIZE_UNKNOWN, dictSize, ZSTD_cpm_createCDict); in ZSTD_createCDict_advanced2()
4805 DEBUGLOG(3, "ZSTD_createCDict_advanced2: DDS: %u", cctxParams.enableDedicatedDictSearch); in ZSTD_createCDict_advanced2()
4806 cctxParams.cParams = cParams; in ZSTD_createCDict_advanced2()
4807 …cctxParams.useRowMatchFinder = ZSTD_resolveRowMatchFinderMode(cctxParams.useRowMatchFinder, &cPara… in ZSTD_createCDict_advanced2()
4810 dictLoadMethod, cctxParams.cParams, in ZSTD_createCDict_advanced2()
4811 cctxParams.useRowMatchFinder, cctxParams.enableDedicatedDictSearch, in ZSTD_createCDict_advanced2()
4819 cctxParams) )) { in ZSTD_createCDict_advanced2()
4944 ZSTD_CCtx_params cctxParams; in ZSTD_compressBegin_usingCDict_internal() local
4959 ZSTD_CCtxParams_init_internal(&cctxParams, ¶ms, cdict->compressionLevel); in ZSTD_compressBegin_usingCDict_internal()
4968 cctxParams.cParams.windowLog = MAX(cctxParams.cParams.windowLog, limitedSrcLog); in ZSTD_compressBegin_usingCDict_internal()
4973 &cctxParams, pledgedSrcSize, in ZSTD_compressBegin_usingCDict_internal()