Lines Matching refs:blockSize

1267     size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize);  in ZSTD_estimateCCtxSize_usingCCtxParams_internal()  local
1269 size_t const maxNbSeq = blockSize / divider; in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1270 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1278 size_t const maxNbLdmSeq = ZSTD_ldm_getMaxNbSeq(*ldmParams, blockSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1351 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, (size_t)1 << cParams.windowLog); in ZSTD_estimateCStreamSize_usingCCtxParams() local
1353 ? ((size_t)1 << cParams.windowLog) + blockSize in ZSTD_estimateCStreamSize_usingCCtxParams()
1356 ? ZSTD_compressBound(blockSize) + 1 in ZSTD_estimateCStreamSize_usingCCtxParams()
1579 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize); in ZSTD_resetCCtx_internal() local
1581 size_t const maxNbSeq = blockSize / divider; in ZSTD_resetCCtx_internal()
1583 ? ZSTD_compressBound(blockSize) + 1 in ZSTD_resetCCtx_internal()
1586 ? windowSize + blockSize in ZSTD_resetCCtx_internal()
1588 size_t const maxNbLdmSeq = ZSTD_ldm_getMaxNbSeq(params.ldmParams, blockSize); in ZSTD_resetCCtx_internal()
1608 DEBUGLOG(4, "windowSize: %zu - blockSize: %zu", windowSize, blockSize); in ZSTD_resetCCtx_internal()
1647 zc->blockSize = blockSize; in ZSTD_resetCCtx_internal()
1659 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()
1660 zc->seqStore.maxNbLit = blockSize; in ZSTD_resetCCtx_internal()
2792 size_t blockSize = cctx->blockSize; in ZSTD_compress_frameChunk() local
2801 DEBUGLOG(4, "ZSTD_compress_frameChunk (blockSize=%u)", (unsigned)blockSize); in ZSTD_compress_frameChunk()
2807 U32 const lastBlock = lastFrameChunk & (blockSize >= remaining); in ZSTD_compress_frameChunk()
2812 if (remaining < blockSize) blockSize = remaining; in ZSTD_compress_frameChunk()
2815 ms, &cctx->workspace, &cctx->appliedParams, ip, ip + blockSize); in ZSTD_compress_frameChunk()
2816 …ZSTD_checkDictValidity(&ms->window, ip + blockSize, maxDist, &ms->loadedDictEnd, &ms->dictMatchSta… in ZSTD_compress_frameChunk()
2823 … cSize = ZSTD_compressBlock_targetCBlockSize(cctx, op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
2826 assert(cSize <= blockSize + ZSTD_blockHeaderSize); in ZSTD_compress_frameChunk()
2830 ip, blockSize, 1 /* frame */); in ZSTD_compress_frameChunk()
2834 cSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
2838 lastBlock + (((U32)bt_rle)<<1) + (U32)(blockSize << 3) : in ZSTD_compress_frameChunk()
2846 ip += blockSize; in ZSTD_compress_frameChunk()
2847 assert(remaining >= blockSize); in ZSTD_compress_frameChunk()
2848 remaining -= blockSize; in ZSTD_compress_frameChunk()
3000 DEBUGLOG(5, "ZSTD_compressContinue_internal (blockSize=%u)", (unsigned)cctx->blockSize); in ZSTD_compressContinue_internal()
4085 if (hintInSize==0) hintInSize = cctx->blockSize; in ZSTD_nextInputSizeHint()
4170 : MIN((size_t)(iend - ip), zcs->blockSize); in ZSTD_compressStream_generic()
4185 zcs->inBuffTarget = zcs->inBuffPos + zcs->blockSize; in ZSTD_compressStream_generic()
4187 zcs->inBuffPos = 0, zcs->inBuffTarget = zcs->blockSize; in ZSTD_compressStream_generic()
4350 cctx->inBuffTarget = cctx->blockSize + (cctx->blockSize == pledgedSrcSize); in ZSTD_CCtx_init_compressStream2()
4481 const void* src, size_t blockSize) { in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() argument
4484 const BYTE* const iend = ip + blockSize; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4546 const void* src, size_t blockSize) { in ZSTD_copySequencesToSeqStoreNoBlockDelim() argument
4549 U32 endPosInSequence = seqPos->posInSequence + (U32)blockSize; in ZSTD_copySequencesToSeqStoreNoBlockDelim()
4552 …BYTE const* iend = ip + blockSize; /* May be adjusted if we decide to process fewer than blockSiz… in ZSTD_copySequencesToSeqStoreNoBlockDelim()
4568 …ZSTD_copySequencesToSeqStore: idx: %u PIS: %u blockSize: %zu", idx, startPosInSequence, blockSize); in ZSTD_copySequencesToSeqStoreNoBlockDelim()
4599 … if (matchLength > blockSize && firstHalfMatchLength >= cctx->appliedParams.cParams.minMatch) { in ZSTD_copySequencesToSeqStoreNoBlockDelim()
4667 const void* src, size_t blockSize);
4690 size_t blockSize; in ZSTD_compressSequences_internal() local
4713 lastBlock = remaining <= cctx->blockSize; in ZSTD_compressSequences_internal()
4714 blockSize = lastBlock ? (U32)remaining : (U32)cctx->blockSize; in ZSTD_compressSequences_internal()
4716 DEBUGLOG(4, "Working on new block. Blocksize: %zu", blockSize); in ZSTD_compressSequences_internal()
4718 additionalByteAdjustment = sequenceCopier(cctx, &seqPos, inSeqs, inSeqsSize, ip, blockSize); in ZSTD_compressSequences_internal()
4720 blockSize -= additionalByteAdjustment; in ZSTD_compressSequences_internal()
4723 if (blockSize < MIN_CBLOCK_SIZE+ZSTD_blockHeaderSize+1) { in ZSTD_compressSequences_internal()
4724 cBlockSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
4728 ip += blockSize; in ZSTD_compressSequences_internal()
4730 remaining -= blockSize; in ZSTD_compressSequences_internal()
4739 blockSize, in ZSTD_compressSequences_internal()
4757 cBlockSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
4761 cBlockSize = ZSTD_rleCompressBlock(op, dstCapacity, *ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
4784 ip += blockSize; in ZSTD_compressSequences_internal()
4786 remaining -= blockSize; in ZSTD_compressSequences_internal()