Lines Matching full:zc
2026 static size_t ZSTD_resetCCtx_internal(ZSTD_CCtx* zc, in ZSTD_resetCCtx_internal() argument
2033 ZSTD_cwksp* const ws = &zc->workspace; in ZSTD_resetCCtx_internal()
2038 zc->isFirstBlock = 1; in ZSTD_resetCCtx_internal()
2043 zc->appliedParams = *params; in ZSTD_resetCCtx_internal()
2044 params = &zc->appliedParams; in ZSTD_resetCCtx_internal()
2052 ZSTD_ldm_adjustParameters(&zc->appliedParams.ldmParams, ¶ms->cParams); in ZSTD_resetCCtx_internal()
2068 int const indexTooClose = ZSTD_indexTooCloseToMax(zc->blockState.matchState.window); in ZSTD_resetCCtx_internal()
2071 (indexTooClose || dictTooBig || !zc->initialized) ? ZSTDirp_reset : ZSTDirp_continue; in ZSTD_resetCCtx_internal()
2075 … ¶ms->cParams, ¶ms->ldmParams, zc->staticSize != 0, params->useRowMatchFinder, in ZSTD_resetCCtx_internal()
2080 if (!zc->staticSize) ZSTD_cwksp_bump_oversized_duration(ws, 0); in ZSTD_resetCCtx_internal()
2094 RETURN_ERROR_IF(zc->staticSize, memory_allocation, "static cctx : no resize"); in ZSTD_resetCCtx_internal()
2098 ZSTD_cwksp_free(ws, zc->customMem); in ZSTD_resetCCtx_internal()
2099 FORWARD_IF_ERROR(ZSTD_cwksp_create(ws, neededSpace, zc->customMem), ""); in ZSTD_resetCCtx_internal()
2106 …zc->blockState.prevCBlock = (ZSTD_compressedBlockState_t*) ZSTD_cwksp_reserve_object(ws, sizeof(ZS… in ZSTD_resetCCtx_internal()
2107 …RETURN_ERROR_IF(zc->blockState.prevCBlock == NULL, memory_allocation, "couldn't allocate prevCBloc… in ZSTD_resetCCtx_internal()
2108 …zc->blockState.nextCBlock = (ZSTD_compressedBlockState_t*) ZSTD_cwksp_reserve_object(ws, sizeof(ZS… in ZSTD_resetCCtx_internal()
2109 …RETURN_ERROR_IF(zc->blockState.nextCBlock == NULL, memory_allocation, "couldn't allocate nextCBloc… in ZSTD_resetCCtx_internal()
2110 zc->tmpWorkspace = ZSTD_cwksp_reserve_object(ws, TMP_WORKSPACE_SIZE); in ZSTD_resetCCtx_internal()
2111 … RETURN_ERROR_IF(zc->tmpWorkspace == NULL, memory_allocation, "couldn't allocate tmpWorkspace"); in ZSTD_resetCCtx_internal()
2112 zc->tmpWkspSize = TMP_WORKSPACE_SIZE; in ZSTD_resetCCtx_internal()
2118 zc->blockState.matchState.cParams = params->cParams; in ZSTD_resetCCtx_internal()
2119 … zc->blockState.matchState.prefetchCDictTables = params->prefetchCDictTables == ZSTD_ps_enable; in ZSTD_resetCCtx_internal()
2120 zc->pledgedSrcSizePlusOne = pledgedSrcSize+1; in ZSTD_resetCCtx_internal()
2121 zc->consumedSrcSize = 0; in ZSTD_resetCCtx_internal()
2122 zc->producedCSize = 0; in ZSTD_resetCCtx_internal()
2124 zc->appliedParams.fParams.contentSizeFlag = 0; in ZSTD_resetCCtx_internal()
2126 (unsigned)pledgedSrcSize, zc->appliedParams.fParams.contentSizeFlag); in ZSTD_resetCCtx_internal()
2127 zc->blockSizeMax = blockSize; in ZSTD_resetCCtx_internal()
2129 xxh64_reset(&zc->xxhState, 0); in ZSTD_resetCCtx_internal()
2130 zc->stage = ZSTDcs_init; in ZSTD_resetCCtx_internal()
2131 zc->dictID = 0; in ZSTD_resetCCtx_internal()
2132 zc->dictContentSize = 0; in ZSTD_resetCCtx_internal()
2134 ZSTD_reset_compressedBlockState(zc->blockState.prevCBlock); in ZSTD_resetCCtx_internal()
2137 &zc->blockState.matchState, in ZSTD_resetCCtx_internal()
2145 …zc->seqStore.sequencesStart = (SeqDef*)ZSTD_cwksp_reserve_aligned64(ws, maxNbSeq * sizeof(SeqDef)); in ZSTD_resetCCtx_internal()
2151 …zc->ldmState.hashTable = (ldmEntry_t*)ZSTD_cwksp_reserve_aligned64(ws, ldmHSize * sizeof(ldmEntry_… in ZSTD_resetCCtx_internal()
2152 ZSTD_memset(zc->ldmState.hashTable, 0, ldmHSize * sizeof(ldmEntry_t)); in ZSTD_resetCCtx_internal()
2153 … zc->ldmSequences = (rawSeq*)ZSTD_cwksp_reserve_aligned64(ws, maxNbLdmSeq * sizeof(rawSeq)); in ZSTD_resetCCtx_internal()
2154 zc->maxNbLdmSequences = maxNbLdmSeq; in ZSTD_resetCCtx_internal()
2156 ZSTD_window_init(&zc->ldmState.window); in ZSTD_resetCCtx_internal()
2157 zc->ldmState.loadedDictEnd = 0; in ZSTD_resetCCtx_internal()
2163 zc->extSeqBufCapacity = maxNbExternalSeq; in ZSTD_resetCCtx_internal()
2164 zc->extSeqBuf = in ZSTD_resetCCtx_internal()
2173 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()
2174 zc->seqStore.maxNbLit = blockSize; in ZSTD_resetCCtx_internal()
2176 zc->bufferedPolicy = zbuff; in ZSTD_resetCCtx_internal()
2177 zc->inBuffSize = buffInSize; in ZSTD_resetCCtx_internal()
2178 zc->inBuff = (char*)ZSTD_cwksp_reserve_buffer(ws, buffInSize); in ZSTD_resetCCtx_internal()
2179 zc->outBuffSize = buffOutSize; in ZSTD_resetCCtx_internal()
2180 zc->outBuff = (char*)ZSTD_cwksp_reserve_buffer(ws, buffOutSize); in ZSTD_resetCCtx_internal()
2188 zc->ldmState.bucketOffsets = ZSTD_cwksp_reserve_buffer(ws, numBuckets); in ZSTD_resetCCtx_internal()
2189 ZSTD_memset(zc->ldmState.bucketOffsets, 0, numBuckets); in ZSTD_resetCCtx_internal()
2193 ZSTD_referenceExternalSequences(zc, NULL, 0); in ZSTD_resetCCtx_internal()
2194 zc->seqStore.maxNbSeq = maxNbSeq; in ZSTD_resetCCtx_internal()
2195 zc->seqStore.llCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
2196 zc->seqStore.mlCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
2197 zc->seqStore.ofCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
2202 zc->initialized = 1; in ZSTD_resetCCtx_internal()
3178 static size_t ZSTD_buildSeqStore(ZSTD_CCtx* zc, const void* src, size_t srcSize) in ZSTD_buildSeqStore() argument
3180 ZSTD_MatchState_t* const ms = &zc->blockState.matchState; in ZSTD_buildSeqStore()
3184 ZSTD_assertEqualCParams(zc->appliedParams.cParams, ms->cParams); in ZSTD_buildSeqStore()
3188 if (zc->appliedParams.cParams.strategy >= ZSTD_btopt) { in ZSTD_buildSeqStore()
3189 ZSTD_ldm_skipRawSeqStoreBytes(&zc->externSeqStore, srcSize); in ZSTD_buildSeqStore()
3191 … ZSTD_ldm_skipSequences(&zc->externSeqStore, srcSize, zc->appliedParams.cParams.minMatch); in ZSTD_buildSeqStore()
3195 ZSTD_resetSeqStore(&(zc->seqStore)); in ZSTD_buildSeqStore()
3197 ms->opt.symbolCosts = &zc->blockState.prevCBlock->entropy; in ZSTD_buildSeqStore()
3199 ms->opt.literalCompressionMode = zc->appliedParams.literalCompressionMode; in ZSTD_buildSeqStore()
3219 zc->blockState.nextCBlock->rep[i] = zc->blockState.prevCBlock->rep[i]; in ZSTD_buildSeqStore()
3221 if (zc->externSeqStore.pos < zc->externSeqStore.size) { in ZSTD_buildSeqStore()
3222 assert(zc->appliedParams.ldmParams.enableLdm == ZSTD_ps_disable); in ZSTD_buildSeqStore()
3227 ZSTD_hasExtSeqProd(&zc->appliedParams), in ZSTD_buildSeqStore()
3234 ZSTD_ldm_blockCompress(&zc->externSeqStore, in ZSTD_buildSeqStore()
3235 ms, &zc->seqStore, in ZSTD_buildSeqStore()
3236 zc->blockState.nextCBlock->rep, in ZSTD_buildSeqStore()
3237 zc->appliedParams.useRowMatchFinder, in ZSTD_buildSeqStore()
3239 assert(zc->externSeqStore.pos <= zc->externSeqStore.size); in ZSTD_buildSeqStore()
3240 } else if (zc->appliedParams.ldmParams.enableLdm == ZSTD_ps_enable) { in ZSTD_buildSeqStore()
3246 ZSTD_hasExtSeqProd(&zc->appliedParams), in ZSTD_buildSeqStore()
3251 ldmSeqStore.seq = zc->ldmSequences; in ZSTD_buildSeqStore()
3252 ldmSeqStore.capacity = zc->maxNbLdmSequences; in ZSTD_buildSeqStore()
3254 FORWARD_IF_ERROR(ZSTD_ldm_generateSequences(&zc->ldmState, &ldmSeqStore, in ZSTD_buildSeqStore()
3255 &zc->appliedParams.ldmParams, in ZSTD_buildSeqStore()
3260 ms, &zc->seqStore, in ZSTD_buildSeqStore()
3261 zc->blockState.nextCBlock->rep, in ZSTD_buildSeqStore()
3262 zc->appliedParams.useRowMatchFinder, in ZSTD_buildSeqStore()
3265 } else if (ZSTD_hasExtSeqProd(&zc->appliedParams)) { in ZSTD_buildSeqStore()
3267 zc->extSeqBufCapacity >= ZSTD_sequenceBound(srcSize) in ZSTD_buildSeqStore()
3269 assert(zc->appliedParams.extSeqProdFunc != NULL); in ZSTD_buildSeqStore()
3271 { U32 const windowSize = (U32)1 << zc->appliedParams.cParams.windowLog; in ZSTD_buildSeqStore()
3273 size_t const nbExternalSeqs = (zc->appliedParams.extSeqProdFunc)( in ZSTD_buildSeqStore()
3274 zc->appliedParams.extSeqProdState, in ZSTD_buildSeqStore()
3275 zc->extSeqBuf, in ZSTD_buildSeqStore()
3276 zc->extSeqBufCapacity, in ZSTD_buildSeqStore()
3279 zc->appliedParams.compressionLevel, in ZSTD_buildSeqStore()
3284 zc->extSeqBuf, in ZSTD_buildSeqStore()
3286 zc->extSeqBufCapacity, in ZSTD_buildSeqStore()
3293 … size_t const seqLenSum = ZSTD_fastSequenceLengthSum(zc->extSeqBuf, nbPostProcessedSeqs); in ZSTD_buildSeqStore()
3297 zc, &seqPos, in ZSTD_buildSeqStore()
3298 zc->extSeqBuf, nbPostProcessedSeqs, in ZSTD_buildSeqStore()
3300 zc->appliedParams.searchForExternalRepcodes in ZSTD_buildSeqStore()
3310 if (!zc->appliedParams.enableMatchFinderFallback) { in ZSTD_buildSeqStore()
3317 zc->appliedParams.cParams.strategy, in ZSTD_buildSeqStore()
3318 zc->appliedParams.useRowMatchFinder, in ZSTD_buildSeqStore()
3326 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore()
3330 zc->appliedParams.cParams.strategy, in ZSTD_buildSeqStore()
3331 zc->appliedParams.useRowMatchFinder, in ZSTD_buildSeqStore()
3334 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore()
3337 ZSTD_storeLastLiterals(&zc->seqStore, lastLiterals, lastLLSize); in ZSTD_buildSeqStore()
3339 ZSTD_validateSeqStore(&zc->seqStore, &zc->appliedParams.cParams); in ZSTD_buildSeqStore()
3434 size_t ZSTD_generateSequences(ZSTD_CCtx* zc, ZSTD_Sequence* outSeqs, in ZSTD_generateSequences() argument
3442 … FORWARD_IF_ERROR(ZSTD_CCtx_getParameter(zc, ZSTD_c_targetCBlockSize, &targetCBlockSize), ""); in ZSTD_generateSequences()
3447 FORWARD_IF_ERROR(ZSTD_CCtx_getParameter(zc, ZSTD_c_nbWorkers, &nbWorkers), ""); in ZSTD_generateSequences()
3458 zc->seqCollector = seqCollector; in ZSTD_generateSequences()
3461 const size_t ret = ZSTD_compress2(zc, dst, dstCapacity, src, srcSize); in ZSTD_generateSequences()
3465 assert(zc->seqCollector.seqIndex <= ZSTD_sequenceBound(srcSize)); in ZSTD_generateSequences()
3466 return zc->seqCollector.seqIndex; in ZSTD_generateSequences()
3862 ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize(SeqStore_t* seqStore, ZSTD_CCtx* zc) in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize() argument
3864 ZSTD_entropyCTablesMetadata_t* const entropyMetadata = &zc->blockSplitCtx.entropyMetadata; in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3867 &zc->blockState.prevCBlock->entropy, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3868 &zc->blockState.nextCBlock->entropy, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3869 &zc->appliedParams, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3871 zc->tmpWorkspace, zc->tmpWkspSize), ""); in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3876 &zc->blockState.nextCBlock->entropy, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3878 zc->tmpWorkspace, zc->tmpWkspSize, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
4019 ZSTD_compressSeqStore_singleBlock(ZSTD_CCtx* zc, in ZSTD_compressSeqStore_singleBlock() argument
4040 &zc->blockState.prevCBlock->entropy, &zc->blockState.nextCBlock->entropy, in ZSTD_compressSeqStore_singleBlock()
4041 &zc->appliedParams, in ZSTD_compressSeqStore_singleBlock()
4044 zc->tmpWorkspace, zc->tmpWkspSize /* statically allocated in resetCCtx */, in ZSTD_compressSeqStore_singleBlock()
4045 zc->bmi2); in ZSTD_compressSeqStore_singleBlock()
4048 if (!zc->isFirstBlock && in ZSTD_compressSeqStore_singleBlock()
4059 if (zc->seqCollector.collectSequences) { in ZSTD_compressSeqStore_singleBlock()
4060 …FORWARD_IF_ERROR(ZSTD_copyBlockSequences(&zc->seqCollector, seqStore, dRepOriginal.rep), "copyBloc… in ZSTD_compressSeqStore_singleBlock()
4061 ZSTD_blockState_confirmRepcodesAndEntropyTables(&zc->blockState); in ZSTD_compressSeqStore_singleBlock()
4076 ZSTD_blockState_confirmRepcodesAndEntropyTables(&zc->blockState); in ZSTD_compressSeqStore_singleBlock()
4082 if (zc->blockState.prevCBlock->entropy.fse.offcode_repeatMode == FSE_repeat_valid) in ZSTD_compressSeqStore_singleBlock()
4083 zc->blockState.prevCBlock->entropy.fse.offcode_repeatMode = FSE_repeat_check; in ZSTD_compressSeqStore_singleBlock()
4112 ZSTD_CCtx* zc, const SeqStore_t* origSeqStore) in ZSTD_deriveBlockSplitsHelper() argument
4114 SeqStore_t* const fullSeqStoreChunk = &zc->blockSplitCtx.fullSeqStoreChunk; in ZSTD_deriveBlockSplitsHelper()
4115 SeqStore_t* const firstHalfSeqStore = &zc->blockSplitCtx.firstHalfSeqStore; in ZSTD_deriveBlockSplitsHelper()
4116 SeqStore_t* const secondHalfSeqStore = &zc->blockSplitCtx.secondHalfSeqStore; in ZSTD_deriveBlockSplitsHelper()
4131 … estimatedOriginalSize = ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize(fullSeqStoreChunk, zc); in ZSTD_deriveBlockSplitsHelper()
4132 …estimatedFirstHalfSize = ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize(firstHalfSeqStore, zc); in ZSTD_deriveBlockSplitsHelper()
4133 …timatedSecondHalfSize = ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize(secondHalfSeqStore, zc); in ZSTD_deriveBlockSplitsHelper()
4141 ZSTD_deriveBlockSplitsHelper(splits, startIdx, midIdx, zc, origSeqStore); in ZSTD_deriveBlockSplitsHelper()
4144 ZSTD_deriveBlockSplitsHelper(splits, midIdx, endIdx, zc, origSeqStore); in ZSTD_deriveBlockSplitsHelper()
4153 static size_t ZSTD_deriveBlockSplits(ZSTD_CCtx* zc, U32 partitions[], U32 nbSeq) in ZSTD_deriveBlockSplits() argument
4163 ZSTD_deriveBlockSplitsHelper(&splits, 0, nbSeq, zc, &zc->seqStore); in ZSTD_deriveBlockSplits()
4175 ZSTD_compressBlock_splitBlock_internal(ZSTD_CCtx* zc, in ZSTD_compressBlock_splitBlock_internal() argument
4185 U32* const partitions = zc->blockSplitCtx.partitions; /* size == ZSTD_MAX_NB_BLOCK_SPLITS */ in ZSTD_compressBlock_splitBlock_internal()
4186 SeqStore_t* const nextSeqStore = &zc->blockSplitCtx.nextSeqStore; in ZSTD_compressBlock_splitBlock_internal()
4187 SeqStore_t* const currSeqStore = &zc->blockSplitCtx.currSeqStore; in ZSTD_compressBlock_splitBlock_internal()
4188 size_t const numSplits = ZSTD_deriveBlockSplits(zc, partitions, nbSeq); in ZSTD_compressBlock_splitBlock_internal()
4206 ZSTD_memcpy(dRep.rep, zc->blockState.prevCBlock->rep, sizeof(Repcodes_t)); in ZSTD_compressBlock_splitBlock_internal()
4207 ZSTD_memcpy(cRep.rep, zc->blockState.prevCBlock->rep, sizeof(Repcodes_t)); in ZSTD_compressBlock_splitBlock_internal()
4211 (unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit, in ZSTD_compressBlock_splitBlock_internal()
4212 (unsigned)zc->blockState.matchState.nextToUpdate); in ZSTD_compressBlock_splitBlock_internal()
4216 ZSTD_compressSeqStore_singleBlock(zc, &zc->seqStore, in ZSTD_compressBlock_splitBlock_internal()
4223 assert(zc->blockSizeMax <= ZSTD_BLOCKSIZE_MAX); in ZSTD_compressBlock_splitBlock_internal()
4224 assert(cSizeSingleBlock <= zc->blockSizeMax + ZSTD_blockHeaderSize); in ZSTD_compressBlock_splitBlock_internal()
4228 ZSTD_deriveSeqStoreChunk(currSeqStore, &zc->seqStore, 0, partitions[0]); in ZSTD_compressBlock_splitBlock_internal()
4241 ZSTD_deriveSeqStoreChunk(nextSeqStore, &zc->seqStore, partitions[i], partitions[i+1]); in ZSTD_compressBlock_splitBlock_internal()
4244 cSizeChunk = ZSTD_compressSeqStore_singleBlock(zc, currSeqStore, in ZSTD_compressBlock_splitBlock_internal()
4250 … ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize(currSeqStore, zc), cSizeChunk); in ZSTD_compressBlock_splitBlock_internal()
4258 assert(cSizeChunk <= zc->blockSizeMax + ZSTD_blockHeaderSize); in ZSTD_compressBlock_splitBlock_internal()
4263 ZSTD_memcpy(zc->blockState.prevCBlock->rep, dRep.rep, sizeof(Repcodes_t)); in ZSTD_compressBlock_splitBlock_internal()
4268 ZSTD_compressBlock_splitBlock(ZSTD_CCtx* zc, in ZSTD_compressBlock_splitBlock() argument
4275 assert(zc->appliedParams.postBlockSplitter == ZSTD_ps_enable); in ZSTD_compressBlock_splitBlock()
4277 { const size_t bss = ZSTD_buildSeqStore(zc, src, srcSize); in ZSTD_compressBlock_splitBlock()
4280 if (zc->blockState.prevCBlock->entropy.fse.offcode_repeatMode == FSE_repeat_valid) in ZSTD_compressBlock_splitBlock()
4281 zc->blockState.prevCBlock->entropy.fse.offcode_repeatMode = FSE_repeat_check; in ZSTD_compressBlock_splitBlock()
4282 …RETURN_ERROR_IF(zc->seqCollector.collectSequences, sequenceProducer_failed, "Uncompressible block"… in ZSTD_compressBlock_splitBlock()
4288 nbSeq = (U32)(zc->seqStore.sequences - zc->seqStore.sequencesStart); in ZSTD_compressBlock_splitBlock()
4291 …cSize = ZSTD_compressBlock_splitBlock_internal(zc, dst, dstCapacity, src, srcSize, lastBlock, nbSe… in ZSTD_compressBlock_splitBlock()
4297 ZSTD_compressBlock_internal(ZSTD_CCtx* zc, in ZSTD_compressBlock_internal() argument
4310 (unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit, in ZSTD_compressBlock_internal()
4311 (unsigned)zc->blockState.matchState.nextToUpdate); in ZSTD_compressBlock_internal()
4313 { const size_t bss = ZSTD_buildSeqStore(zc, src, srcSize); in ZSTD_compressBlock_internal()
4316 …RETURN_ERROR_IF(zc->seqCollector.collectSequences, sequenceProducer_failed, "Uncompressible block"… in ZSTD_compressBlock_internal()
4322 if (zc->seqCollector.collectSequences) { in ZSTD_compressBlock_internal()
4323 …FORWARD_IF_ERROR(ZSTD_copyBlockSequences(&zc->seqCollector, ZSTD_getSeqStore(zc), zc->blockState.p… in ZSTD_compressBlock_internal()
4324 ZSTD_blockState_confirmRepcodesAndEntropyTables(&zc->blockState); in ZSTD_compressBlock_internal()
4329 cSize = ZSTD_entropyCompressSeqStore(&zc->seqStore, in ZSTD_compressBlock_internal()
4330 &zc->blockState.prevCBlock->entropy, &zc->blockState.nextCBlock->entropy, in ZSTD_compressBlock_internal()
4331 &zc->appliedParams, in ZSTD_compressBlock_internal()
4334 zc->tmpWorkspace, zc->tmpWkspSize /* statically allocated in resetCCtx */, in ZSTD_compressBlock_internal()
4335 zc->bmi2); in ZSTD_compressBlock_internal()
4342 !zc->isFirstBlock && in ZSTD_compressBlock_internal()
4352 ZSTD_blockState_confirmRepcodesAndEntropyTables(&zc->blockState); in ZSTD_compressBlock_internal()
4358 if (zc->blockState.prevCBlock->entropy.fse.offcode_repeatMode == FSE_repeat_valid) in ZSTD_compressBlock_internal()
4359 zc->blockState.prevCBlock->entropy.fse.offcode_repeatMode = FSE_repeat_check; in ZSTD_compressBlock_internal()
4364 static size_t ZSTD_compressBlock_targetCBlockSize_body(ZSTD_CCtx* zc, in ZSTD_compressBlock_targetCBlockSize_body() argument
4375 !zc->isFirstBlock && in ZSTD_compressBlock_targetCBlockSize_body()
4376 ZSTD_maybeRLE(&zc->seqStore) && in ZSTD_compressBlock_targetCBlockSize_body()
4400 ZSTD_compressSuperBlock(zc, dst, dstCapacity, src, srcSize, lastBlock); in ZSTD_compressBlock_targetCBlockSize_body()
4403 srcSize - ZSTD_minGain(srcSize, zc->appliedParams.cParams.strategy); in ZSTD_compressBlock_targetCBlockSize_body()
4406 ZSTD_blockState_confirmRepcodesAndEntropyTables(&zc->blockState); in ZSTD_compressBlock_targetCBlockSize_body()
4420 static size_t ZSTD_compressBlock_targetCBlockSize(ZSTD_CCtx* zc, in ZSTD_compressBlock_targetCBlockSize() argument
4426 const size_t bss = ZSTD_buildSeqStore(zc, src, srcSize); in ZSTD_compressBlock_targetCBlockSize()
4428 …(unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit, (unsigned)zc->blockSt… in ZSTD_compressBlock_targetCBlockSize()
4431 …cSize = ZSTD_compressBlock_targetCBlockSize_body(zc, dst, dstCapacity, src, srcSize, bss, lastBloc… in ZSTD_compressBlock_targetCBlockSize()
4434 if (zc->blockState.prevCBlock->entropy.fse.offcode_repeatMode == FSE_repeat_valid) in ZSTD_compressBlock_targetCBlockSize()
4435 zc->blockState.prevCBlock->entropy.fse.offcode_repeatMode = FSE_repeat_check; in ZSTD_compressBlock_targetCBlockSize()
7611 ZSTD_CCtx* zc, in ZSTD_registerSequenceProducer() argument
7615 assert(zc != NULL); in ZSTD_registerSequenceProducer()
7617 &zc->requestedParams, extSeqProdState, extSeqProdFunc in ZSTD_registerSequenceProducer()