• Home
  • Raw
  • Download

Lines Matching refs:params

69 	ZSTD_parameters params;  member
143 static ZSTD_parameters ZSTD_getParamsFromCCtx(const ZSTD_CCtx *cctx) { return cctx->params; } in ZSTD_getParamsFromCCtx()
217 static size_t ZSTD_continueCCtx(ZSTD_CCtx *cctx, ZSTD_parameters params, U64 frameContentSize) in ZSTD_continueCCtx() argument
220 cctx->params = params; in ZSTD_continueCCtx()
242 static size_t ZSTD_resetCCtx_advanced(ZSTD_CCtx *zc, ZSTD_parameters params, U64 frameContentSize, … in ZSTD_resetCCtx_advanced() argument
245 if (ZSTD_equivalentParams(params, zc->params)) { in ZSTD_resetCCtx_advanced()
248 return ZSTD_continueCCtx(zc, params, frameContentSize); in ZSTD_resetCCtx_advanced()
252 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_ABSOLUTEMAX, (size_t)1 << params.cParams.windowLog); in ZSTD_resetCCtx_advanced()
253 U32 const divider = (params.cParams.searchLength == 3) ? 3 : 4; in ZSTD_resetCCtx_advanced()
256 …size_t const chainSize = (params.cParams.strategy == ZSTD_fast) ? 0 : (1 << params.cParams.chainLo… in ZSTD_resetCCtx_advanced()
257 size_t const hSize = ((size_t)1) << params.cParams.hashLog; in ZSTD_resetCCtx_advanced()
258 …U32 const hashLog3 = (params.cParams.searchLength > 3) ? 0 : MIN(ZSTD_HASHLOG3_MAX, params.cParams… in ZSTD_resetCCtx_advanced()
268 …(((params.cParams.strategy == ZSTD_btopt) || (params.cParams.strategy == ZSTD_btopt2)) ? optSpace … in ZSTD_resetCCtx_advanced()
297 zc->params = params; in ZSTD_resetCCtx_advanced()
306 if ((params.cParams.strategy == ZSTD_btopt) || (params.cParams.strategy == ZSTD_btopt2)) { in ZSTD_resetCCtx_advanced()
355 ZSTD_parameters params = srcCCtx->params; in ZSTD_copyCCtx() local
356 params.fParams.contentSizeFlag = (pledgedSrcSize > 0); in ZSTD_copyCCtx()
357 ZSTD_resetCCtx_advanced(dstCCtx, params, pledgedSrcSize, ZSTDcrp_noMemset); in ZSTD_copyCCtx()
362 …size_t const chainSize = (srcCCtx->params.cParams.strategy == ZSTD_fast) ? 0 : (1 << srcCCtx->para… in ZSTD_copyCCtx()
363 size_t const hSize = ((size_t)1) << srcCCtx->params.cParams.hashLog; in ZSTD_copyCCtx()
413 U32 const hSize = 1 << zc->params.cParams.hashLog; in ZSTD_reduceIndex()
418 …U32 const chainSize = (zc->params.cParams.strategy == ZSTD_fast) ? 0 : (1 << zc->params.cParams.ch… in ZSTD_reduceIndex()
503 int const preferRepeat = zc->params.cParams.strategy < ZSTD_lazy ? srcSize <= 1024 : 0; in ZSTD_compressLiterals()
588 const int longOffsets = zc->params.cParams.windowLog > STREAM_ACCUMULATOR_MIN; in ZSTD_compressSequences_internal()
995 U32 const hBits = zc->params.cParams.hashLog; in ZSTD_fillHashTable()
1011 U32 const hBits = cctx->params.cParams.hashLog; in ZSTD_compressBlock_fast_generic()
1106 const U32 mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_fast()
1119 const U32 hBits = ctx->params.cParams.hashLog; in ZSTD_compressBlock_fast_extDict_generic()
1222 U32 const mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_fast_extDict()
1238 U32 const hBitsL = cctx->params.cParams.hashLog; in ZSTD_fillDoubleHashTable()
1240 U32 const hBitsS = cctx->params.cParams.chainLog; in ZSTD_fillDoubleHashTable()
1257 const U32 hBitsL = cctx->params.cParams.hashLog; in ZSTD_compressBlock_doubleFast_generic()
1259 const U32 hBitsS = cctx->params.cParams.chainLog; in ZSTD_compressBlock_doubleFast_generic()
1385 const U32 mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_doubleFast()
1398 U32 const hBitsL = ctx->params.cParams.hashLog; in ZSTD_compressBlock_doubleFast_extDict_generic()
1400 U32 const hBitsS = ctx->params.cParams.chainLog; in ZSTD_compressBlock_doubleFast_extDict_generic()
1545 U32 const mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_doubleFast_extDict()
1564 U32 const hashLog = zc->params.cParams.hashLog; in ZSTD_insertBt1()
1567 U32 const btLog = zc->params.cParams.chainLog - 1; in ZSTD_insertBt1()
1647 U32 const hashLog = zc->params.cParams.hashLog; in ZSTD_insertBtAndFindBestMatch()
1650 U32 const btLog = zc->params.cParams.chainLog - 1; in ZSTD_insertBtAndFindBestMatch()
1799 const U32 hashLog = zc->params.cParams.hashLog; in ZSTD_insertAndFindFirstIndex()
1801 const U32 chainMask = (1 << zc->params.cParams.chainLog) - 1; in ZSTD_insertAndFindFirstIndex()
1824 const U32 chainSize = (1 << zc->params.cParams.chainLog); in ZSTD_HcFindBestMatch_generic()
1907 U32 const maxSearches = 1 << ctx->params.cParams.searchLog; in ZSTD_compressBlock_lazy_generic()
1908 U32 const mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_lazy_generic()
2074 const U32 maxSearches = 1 << ctx->params.cParams.searchLog; in ZSTD_compressBlock_lazy_extDict_generic()
2075 const U32 mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_lazy_extDict_generic()
2335 …ZSTD_blockCompressor const blockCompressor = ZSTD_selectBlockCompressor(zc->params.cParams.strateg… in ZSTD_compressBlock_internal()
2362 U32 const maxDist = 1 << cctx->params.cParams.windowLog; in ZSTD_compress_generic()
2364 if (cctx->params.fParams.checksumFlag && srcSize) in ZSTD_compress_generic()
2378 …U32 const cycleMask = (1 << ZSTD_cycleLog(cctx->params.cParams.hashLog, cctx->params.cParams.strat… in ZSTD_compress_generic()
2380 U32 const newCurr = (curr & cycleMask) + (1 << cctx->params.cParams.windowLog); in ZSTD_compress_generic()
2431 static size_t ZSTD_writeFrameHeader(void *dst, size_t dstCapacity, ZSTD_parameters params, U64 pled… in ZSTD_writeFrameHeader() argument
2435 U32 const checksumFlag = params.fParams.checksumFlag > 0; in ZSTD_writeFrameHeader()
2436 U32 const windowSize = 1U << params.cParams.windowLog; in ZSTD_writeFrameHeader()
2437 U32 const singleSegment = params.fParams.contentSizeFlag && (windowSize >= pledgedSrcSize); in ZSTD_writeFrameHeader()
2438 BYTE const windowLogByte = (BYTE)((params.cParams.windowLog - ZSTD_WINDOWLOG_ABSOLUTEMIN) << 3); in ZSTD_writeFrameHeader()
2440params.fParams.contentSizeFlag ? (pledgedSrcSize >= 256) + (pledgedSrcSize >= 65536 + 256) + (pled… in ZSTD_writeFrameHeader()
2499 …fhSize = ZSTD_writeFrameHeader(dst, dstCapacity, cctx->params, cctx->frameContentSize, cctx->dictI… in ZSTD_compressContinue_internal()
2544 …Max(ZSTD_CCtx *cctx) { return MIN(ZSTD_BLOCKSIZE_ABSOLUTEMAX, 1 << cctx->params.cParams.windowLog)… in ZSTD_getBlockSizeMax()
2574 switch (zc->params.cParams.strategy) { in ZSTD_loadDictionaryContent()
2575 case ZSTD_fast: ZSTD_fillHashTable(zc, iend, zc->params.cParams.searchLength); break; in ZSTD_loadDictionaryContent()
2577 case ZSTD_dfast: ZSTD_fillDoubleHashTable(zc, iend, zc->params.cParams.searchLength); break; in ZSTD_loadDictionaryContent()
2583 ZSTD_insertAndFindFirstIndex(zc, iend - HASH_READ_SIZE, zc->params.cParams.searchLength); in ZSTD_loadDictionaryContent()
2590 …ZSTD_updateTree(zc, iend - HASH_READ_SIZE, iend, 1 << zc->params.cParams.searchLog, zc->params.cPa… in ZSTD_loadDictionaryContent()
2634 cctx->dictID = cctx->params.fParams.noDictIDFlag ? 0 : ZSTD_readLE32(dictPtr); in ZSTD_loadZstdDictionary()
2738 …rnal(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_parameters params, U64 pledgedSrcSiz… in ZSTD_compressBegin_internal() argument
2741 CHECK_F(ZSTD_resetCCtx_advanced(cctx, params, pledgedSrcSize, crp)); in ZSTD_compressBegin_internal()
2747 …nced(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long lon… in ZSTD_compressBegin_advanced() argument
2750 CHECK_F(ZSTD_checkCParams(params.cParams)); in ZSTD_compressBegin_advanced()
2751 return ZSTD_compressBegin_internal(cctx, dict, dictSize, params, pledgedSrcSize); in ZSTD_compressBegin_advanced()
2756 ZSTD_parameters const params = ZSTD_getParams(compressionLevel, 0, dictSize); in ZSTD_compressBegin_usingDict() local
2757 return ZSTD_compressBegin_internal(cctx, dict, dictSize, params, 0); in ZSTD_compressBegin_usingDict()
2776 fhSize = ZSTD_writeFrameHeader(dst, dstCapacity, cctx->params, 0, 0); in ZSTD_writeEpilogue()
2794 if (cctx->params.fParams.checksumFlag) { in ZSTD_writeEpilogue()
2819 ZSTD_parameters params) in ZSTD_compress_internal() argument
2821 CHECK_F(ZSTD_compressBegin_internal(cctx, dict, dictSize, params, srcSize)); in ZSTD_compress_internal()
2826 ZSTD_parameters params) in ZSTD_compress_usingDict() argument
2828 return ZSTD_compress_internal(ctx, dst, dstCapacity, src, srcSize, dict, dictSize, params); in ZSTD_compress_usingDict()
2831 …_CCtx *ctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, ZSTD_parameters params) in ZSTD_compressCCtx() argument
2833 return ZSTD_compress_internal(ctx, dst, dstCapacity, src, srcSize, NULL, 0, params); in ZSTD_compressCCtx()
2847 …void *dictBuffer, size_t dictSize, unsigned byReference, ZSTD_parameters params, ZSTD_customMem cu… in ZSTD_createCDict_advanced() argument
2878 …size_t const errorCode = ZSTD_compressBegin_advanced(cctx, cdict->dictContent, dictSize, params, 0… in ZSTD_createCDict_advanced()
2893 ZSTD_CDict *ZSTD_initCDict(const void *dict, size_t dictSize, ZSTD_parameters params, void *workspa… in ZSTD_initCDict() argument
2896 return ZSTD_createCDict_advanced(dict, dictSize, 1, params, stackMem); in ZSTD_initCDict()
2919 ZSTD_parameters params = cdict->refContext->params; in ZSTD_compressBegin_usingCDict() local
2920 params.fParams.contentSizeFlag = (pledgedSrcSize > 0); in ZSTD_compressBegin_usingCDict()
2921 CHECK_F(ZSTD_compressBegin_advanced(cctx, NULL, 0, params, pledgedSrcSize)); in ZSTD_compressBegin_usingCDict()
2934 if (cdict->refContext->params.fParams.contentSizeFlag == 1) { in ZSTD_compress_usingCDict()
2935 cctx->params.fParams.contentSizeFlag = 1; in ZSTD_compress_usingCDict()
2938 cctx->params.fParams.contentSizeFlag = 0; in ZSTD_compress_usingCDict()
2969 ZSTD_parameters params; member
3034 CHECK_F(ZSTD_compressBegin_advanced(zcs->cctx, NULL, 0, zcs->params, pledgedSrcSize)); in ZSTD_resetCStream_internal()
3050 zcs->params.fParams.contentSizeFlag = (pledgedSrcSize > 0); in ZSTD_resetCStream()
3055 …ed(ZSTD_CStream *zcs, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long lon… in ZSTD_initCStream_advanced() argument
3059 size_t const neededInBuffSize = (size_t)1 << params.cParams.windowLog; in ZSTD_initCStream_advanced()
3079 zcs->cdictLocal = ZSTD_createCDict_advanced(dict, dictSize, 0, params, zcs->customMem); in ZSTD_initCStream_advanced()
3086 zcs->checksum = params.fParams.checksumFlag > 0; in ZSTD_initCStream_advanced()
3087 zcs->params = params; in ZSTD_initCStream_advanced()
3092 ZSTD_CStream *ZSTD_initCStream(ZSTD_parameters params, unsigned long long pledgedSrcSize, void *wor… in ZSTD_initCStream() argument
3097 size_t const code = ZSTD_initCStream_advanced(zcs, NULL, 0, params, pledgedSrcSize); in ZSTD_initCStream()
3107 ZSTD_parameters const params = ZSTD_getParamsFromCDict(cdict); in ZSTD_initCStream_usingCDict() local
3108 ZSTD_CStream *const zcs = ZSTD_initCStream(params, pledgedSrcSize, workspace, workspaceSize); in ZSTD_initCStream_usingCDict()
3439 ZSTD_parameters params; in ZSTD_getParams() local
3441 memset(&params, 0, sizeof(params)); in ZSTD_getParams()
3442 params.cParams = cParams; in ZSTD_getParams()
3443 return params; in ZSTD_getParams()