HomeSort by: relevance | last modified time | path
    Searched refs:cctxParams (Results 1 - 13 of 13) sorted by relevancy

  /src/external/bsd/zstd/dist/examples/
streaming_memory_usage.c 69 ZSTD_CCtx_params* const cctxParams = ZSTD_createCCtxParams();
70 CHECK(cctxParams != NULL, "ZSTD_createCCtxParams() failed!");
73 CHECK_ZSTD( ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_compressionLevel, compressionLevel) );
78 CHECK_ZSTD( ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_windowLog, wLog) );
86 CHECK_ZSTD( ZSTD_CCtx_setParametersUsingCCtxParams(cctx, cctxParams) );
117 size_t const cstreamEstimatedSize = ZSTD_estimateCStreamSize_usingCCtxParams(cctxParams);
133 ZSTD_freeCCtxParams(cctxParams);
  /src/external/bsd/zstd/dist/lib/compress/
zstdmt_compress.h 100 void ZSTDMT_updateCParams_whileCompressing(ZSTDMT_CCtx* mtctx, const ZSTD_CCtx_params* cctxParams);
zstd_compress.c 313 ZSTD_CCtx_params cctxParams;
315 ZSTD_CCtxParams_init(&cctxParams, ZSTD_CLEVEL_DEFAULT);
316 cctxParams.cParams = cParams;
319 cctxParams.ldmParams.enableLdm = ZSTD_resolveEnableLdm(cctxParams.ldmParams.enableLdm, &cParams);
320 if (cctxParams.ldmParams.enableLdm == ZSTD_ps_enable) {
321 ZSTD_ldm_adjustParameters(&cctxParams.ldmParams, &cParams);
322 assert(cctxParams.ldmParams.hashLog >= cctxParams.ldmParams.bucketSizeLog);
323 assert(cctxParams.ldmParams.hashRateLog < 32)
    [all...]
zstd_compress_superblock.c 167 const ZSTD_CCtx_params* cctxParams,
171 const int longOffsets = cctxParams->cParams.windowLog > STREAM_ACCUMULATOR_MIN;
268 const ZSTD_CCtx_params* cctxParams,
292 cctxParams,
483 const ZSTD_CCtx_params* cctxParams,
506 size_t const targetCBlockSize = MAX(minTarget, cctxParams->targetCBlockSize);
554 cctxParams,
598 cctxParams,
zstd_compress_internal.h 125 const ZSTD_CCtx_params* cctxParams,
599 MEM_STATIC int ZSTD_literalsCompressionIsDisabled(const ZSTD_CCtx_params* cctxParams)
601 switch (cctxParams->literalCompressionMode) {
610 return (cctxParams->cParams.strategy == ZSTD_fast) && (cctxParams->cParams.targetLength > 0);
1418 const ZSTD_CCtx_params* CCtxParams, U64 srcSizeHint, size_t dictSize, ZSTD_cParamMode_e mode);
zstdmt_compress.c 1080 void ZSTDMT_updateCParams_whileCompressing(ZSTDMT_CCtx* mtctx, const ZSTD_CCtx_params* cctxParams)
1083 int const compressionLevel = cctxParams->compressionLevel;
1087 { ZSTD_compressionParameters cParams = ZSTD_getCParamsFromCCtxParams(cctxParams, ZSTD_CONTENTSIZE_UNKNOWN, 0, ZSTD_cpm_noAttachDict);
  /src/external/bsd/zstd/dist/tests/
roundTripCrash.c 86 ZSTD_CCtx_params* const cctxParams = ZSTD_createCCtxParams();
96 CHECK_Z( ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_compressionLevel, cLevel) );
97 CHECK_Z( ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_nbWorkers, 2) );
98 CHECK_Z( ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_overlapLog, 5) );
102 CHECK_Z( ZSTD_CCtx_setParametersUsingCCtxParams(cctx, cctxParams) );
106 ZSTD_freeCCtxParams(cctxParams);
233 if (!strcmp(argv[argNb], "--cctxParams")) {
zstreamtest.c 355 DISPLAYLEVEL(3, "test%3i : estimate CStream size using CCtxParams : ", testNb++);
2773 /** If useOpaqueAPI, sets param in cctxParams.
2775 static size_t setCCtxParameter(ZSTD_CCtx* zc, ZSTD_CCtx_params* cctxParams,
2780 return ZSTD_CCtxParams_setParameter(cctxParams, param, value);
2813 ZSTD_CCtx_params* cctxParams = ZSTD_createCCtxParams();
2901 CHECK_Z (setCCtxParameter(zc, cctxParams, ZSTD_c_compressionLevel, compressionLevel, opaqueAPI) );
2941 CHECK_Z( setCCtxParameter(zc, cctxParams, ZSTD_c_windowLog, cParams.windowLog, opaqueAPI) );
2947 CHECK_Z( setCCtxParameter(zc, cctxParams, ZSTD_c_hashLog, cParams.hashLog, opaqueAPI) );
2951 CHECK_Z( setCCtxParameter(zc, cctxParams, ZSTD_c_chainLog, cParams.chainLog, opaqueAPI) );
2953 if (FUZ_rand(&lseed) & 1) CHECK_Z( setCCtxParameter(zc, cctxParams, ZSTD_c_searchLog, cParams.searchLog, opaqueAPI) )
    [all...]
fuzzer.c 3093 ZSTD_CCtx_params* cctxParams = ZSTD_createCCtxParams();
3097 CHECK_Z(ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_strategy, ZSTD_fast));
3099 CHECK_Z(ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_windowLog, 25));
3100 CHECK_Z(ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_hashLog, 25));
3101 CHECK_Z(ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_chainLog, 25));
3103 CHECK_Z(ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_srcSizeHint, 1u << 25));
3104 cdict = ZSTD_createCDict_advanced2(dictBuffer, dictSize, ZSTD_dlm_byRef, ZSTD_dct_auto, cctxParams, customMem);
3114 ZSTD_freeCCtxParams(cctxParams);
3120 ZSTD_CCtx_params* cctxParams = ZSTD_createCCtxParams();
3124 CHECK_Z(ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_strategy, ZSTD_dfast))
    [all...]
  /src/external/bsd/zstd/dist/contrib/largeNbDicts/
largeNbDicts.c 452 static cdict_collection_t createCDictCollection(const void* dictBuffer, size_t dictSize, size_t nbCDict, ZSTD_dictContentType_e dictContentType, ZSTD_CCtx_params* cctxParams)
457 cdicts[dictNb] = ZSTD_createCDict_advanced2(dictBuffer, dictSize, DICT_LOAD_METHOD, dictContentType, cctxParams, ZSTD_defaultCMem);
580 compressInstructions createCompressInstructions(cdict_collection_t dictionaries, ZSTD_CCtx_params* cctxParams)
585 if (cctxParams)
586 ZSTD_CCtx_setParametersUsingCCtxParams(ci.cctx, cctxParams);
686 ZSTD_CCtx_params *cctxParams,
690 if (benchCompression) assert(cctxParams);
702 createCompressInstructions(cdictionaries, cctxParams);
768 ZSTD_CCtxParams_getParameter(cctxParams, ZSTD_c_compressionLevel,
770 ZSTD_CCtxParams_getParameter(cctxParams, ZSTD_c_forceAttachDict
    [all...]
  /src/external/bsd/zstd/dist/zlibWrapper/examples/
zwrapbench.c 267 ZSTD_CCtx_params* cctxParams = ZSTD_createCCtxParams();
269 if (!cctxParams) EXM_THROW(1, "ZSTD_createCCtxParams() allocation failure");
274 initErr |= ZSTD_isError(ZSTD_CCtxParams_init_advanced(cctxParams, zparams));
275 initErr |= ZSTD_isError(ZSTD_CCtx_setParametersUsingCCtxParams(zbc, cctxParams));
279 ZSTD_freeCCtxParams(cctxParams);
  /src/external/bsd/zstd/dist/zlibWrapper/
zstd_zlibwrapper.c 210 ZSTD_CCtx_params* cctxParams = ZSTD_createCCtxParams();
211 if (!cctxParams) return Z_STREAM_ERROR;
216 initErr |= ZSTD_isError(ZSTD_CCtxParams_init_advanced(cctxParams, params));
217 initErr |= ZSTD_isError(ZSTD_CCtx_setParametersUsingCCtxParams(zwc->zbc, cctxParams));
221 ZSTD_freeCCtxParams(cctxParams);
  /src/external/bsd/zstd/dist/lib/
zstd.h 1835 const ZSTD_CCtx_params* cctxParams,
2004 * CDict creation, and it must be set in a CCtxParams set passed into that
2033 * highly recommended that you simply set a compression level in the CCtxParams
2284 * Initializes the compression parameters of cctxParams according to
2287 ZSTDLIB_STATIC_API size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params* cctxParams, int compressionLevel);
2290 * Initializes the compression and frame parameters of cctxParams according to
2293 ZSTDLIB_STATIC_API size_t ZSTD_CCtxParams_init_advanced(ZSTD_CCtx_params* cctxParams, ZSTD_parameters params);

Completed in 80 milliseconds