Lines Matching refs:blockSize

1399     size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize);  in ZSTD_estimateCCtxSize_usingCCtxParams_internal()  local
1401 size_t const maxNbSeq = blockSize / divider; in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1402 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1410 size_t const maxNbLdmSeq = ZSTD_ldm_getMaxNbSeq(*ldmParams, blockSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1496 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, (size_t)1 << cParams.windowLog); in ZSTD_estimateCStreamSize_usingCCtxParams() local
1498 ? ((size_t)1 << cParams.windowLog) + blockSize in ZSTD_estimateCStreamSize_usingCCtxParams()
1501 ? ZSTD_compressBound(blockSize) + 1 in ZSTD_estimateCStreamSize_usingCCtxParams()
1779 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize); in ZSTD_resetCCtx_internal() local
1781 size_t const maxNbSeq = blockSize / divider; in ZSTD_resetCCtx_internal()
1783 ? ZSTD_compressBound(blockSize) + 1 in ZSTD_resetCCtx_internal()
1786 ? windowSize + blockSize in ZSTD_resetCCtx_internal()
1788 size_t const maxNbLdmSeq = ZSTD_ldm_getMaxNbSeq(params->ldmParams, blockSize); in ZSTD_resetCCtx_internal()
1810 DEBUGLOG(4, "windowSize: %zu - blockSize: %zu", windowSize, blockSize); in ZSTD_resetCCtx_internal()
1848 zc->blockSize = blockSize; in ZSTD_resetCCtx_internal()
1860 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()
1861 zc->seqStore.maxNbLit = blockSize; in ZSTD_resetCCtx_internal()
2949 static void writeBlockHeader(void* op, size_t cSize, size_t blockSize, U32 lastBlock) { in writeBlockHeader() argument
2951 lastBlock + (((U32)bt_rle)<<1) + (U32)(blockSize << 3) : in writeBlockHeader()
2954 …DEBUGLOG(3, "writeBlockHeader: cSize: %zu blockSize: %zu lastBlock: %u", cSize, blockSize, lastBlo… in writeBlockHeader()
3554 const void* src, size_t blockSize, U32 lastBlock, U32 nbSeq) in ZSTD_compressBlock_splitBlock_internal() argument
3594 ip, blockSize, in ZSTD_compressBlock_splitBlock_internal()
3613 srcBytes += blockSize - srcBytesTotal; in ZSTD_compressBlock_splitBlock_internal()
3846 size_t blockSize = cctx->blockSize; in ZSTD_compress_frameChunk() local
3855 DEBUGLOG(4, "ZSTD_compress_frameChunk (blockSize=%u)", (unsigned)blockSize); in ZSTD_compress_frameChunk()
3861 U32 const lastBlock = lastFrameChunk & (blockSize >= remaining); in ZSTD_compress_frameChunk()
3866 if (remaining < blockSize) blockSize = remaining; in ZSTD_compress_frameChunk()
3869 ms, &cctx->workspace, &cctx->appliedParams, ip, ip + blockSize); in ZSTD_compress_frameChunk()
3870 …ZSTD_checkDictValidity(&ms->window, ip + blockSize, maxDist, &ms->loadedDictEnd, &ms->dictMatchSta… in ZSTD_compress_frameChunk()
3878 … cSize = ZSTD_compressBlock_targetCBlockSize(cctx, op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
3881 assert(cSize <= blockSize + ZSTD_blockHeaderSize); in ZSTD_compress_frameChunk()
3883 … cSize = ZSTD_compressBlock_splitBlock(cctx, op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
3889 ip, blockSize, 1 /* frame */); in ZSTD_compress_frameChunk()
3893 cSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
3897 lastBlock + (((U32)bt_rle)<<1) + (U32)(blockSize << 3) : in ZSTD_compress_frameChunk()
3905 ip += blockSize; in ZSTD_compress_frameChunk()
3906 assert(remaining >= blockSize); in ZSTD_compress_frameChunk()
3907 remaining -= blockSize; in ZSTD_compress_frameChunk()
4060 DEBUGLOG(5, "ZSTD_compressContinue_internal (blockSize=%u)", (unsigned)cctx->blockSize); in ZSTD_compressContinue_internal()
5203 if (hintInSize==0) hintInSize = cctx->blockSize; in ZSTD_nextInputSizeHint()
5288 : MIN((size_t)(iend - ip), zcs->blockSize); in ZSTD_compressStream_generic()
5303 zcs->inBuffTarget = zcs->inBuffPos + zcs->blockSize; in ZSTD_compressStream_generic()
5305 zcs->inBuffPos = 0, zcs->inBuffTarget = zcs->blockSize; in ZSTD_compressStream_generic()
5471 cctx->inBuffTarget = cctx->blockSize + (cctx->blockSize == pledgedSrcSize); in ZSTD_CCtx_init_compressStream2()
5604 const void* src, size_t blockSize) in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() argument
5608 const BYTE* const iend = ip + blockSize; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
5666 const void* src, size_t blockSize) in ZSTD_copySequencesToSeqStoreNoBlockDelim() argument
5670 U32 endPosInSequence = seqPos->posInSequence + (U32)blockSize; in ZSTD_copySequencesToSeqStoreNoBlockDelim()
5673 …BYTE const* iend = ip + blockSize; /* May be adjusted if we decide to process fewer than blockSiz… in ZSTD_copySequencesToSeqStoreNoBlockDelim()
5685 …ZSTD_copySequencesToSeqStore: idx: %u PIS: %u blockSize: %zu", idx, startPosInSequence, blockSize); in ZSTD_copySequencesToSeqStoreNoBlockDelim()
5717 … if (matchLength > blockSize && firstHalfMatchLength >= cctx->appliedParams.cParams.minMatch) { in ZSTD_copySequencesToSeqStoreNoBlockDelim()
5784 const void* src, size_t blockSize);
5811 size_t blockSize; in ZSTD_compressSequences_internal() local
5834 lastBlock = remaining <= cctx->blockSize; in ZSTD_compressSequences_internal()
5835 blockSize = lastBlock ? (U32)remaining : (U32)cctx->blockSize; in ZSTD_compressSequences_internal()
5837 DEBUGLOG(4, "Working on new block. Blocksize: %zu", blockSize); in ZSTD_compressSequences_internal()
5839 additionalByteAdjustment = sequenceCopier(cctx, &seqPos, inSeqs, inSeqsSize, ip, blockSize); in ZSTD_compressSequences_internal()
5841 blockSize -= additionalByteAdjustment; in ZSTD_compressSequences_internal()
5844 if (blockSize < MIN_CBLOCK_SIZE+ZSTD_blockHeaderSize+1) { in ZSTD_compressSequences_internal()
5845 cBlockSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
5849 ip += blockSize; in ZSTD_compressSequences_internal()
5851 remaining -= blockSize; in ZSTD_compressSequences_internal()
5860 blockSize, in ZSTD_compressSequences_internal()
5878 cBlockSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
5882 cBlockSize = ZSTD_rleCompressBlock(op, dstCapacity, *ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
5905 ip += blockSize; in ZSTD_compressSequences_internal()
5907 remaining -= blockSize; in ZSTD_compressSequences_internal()