Lines Matching refs:litSize

43                                     const BYTE* literals, size_t litSize,  in ZSTD_compressSubBlock_literal()  argument
48 size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header)); in ZSTD_compressSubBlock_literal()
58 …DEBUGLOG(5, "ZSTD_compressSubBlock_literal (litSize=%zu, lhSize=%zu, writeEntropy=%d)", litSize, l… in ZSTD_compressSubBlock_literal()
61 if (litSize == 0 || hufMetadata->hType == set_basic) { in ZSTD_compressSubBlock_literal()
63 return ZSTD_noCompressLiterals(dst, dstSize, literals, litSize); in ZSTD_compressSubBlock_literal()
66 return ZSTD_compressRleLiteralsBlock(dst, dstSize, literals, litSize); in ZSTD_compressSubBlock_literal()
69 assert(litSize > 0); in ZSTD_compressSubBlock_literal()
80 … size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, oend-op, literals, litSize, hufTable) in ZSTD_compressSubBlock_literal()
81 … : HUF_compress4X_usingCTable(op, oend-op, literals, litSize, hufTable); in ZSTD_compressSubBlock_literal()
89 if (!writeEntropy && cLitSize >= litSize) { in ZSTD_compressSubBlock_literal()
91 return ZSTD_noCompressLiterals(dst, dstSize, literals, litSize); in ZSTD_compressSubBlock_literal()
95 assert(cLitSize > litSize); in ZSTD_compressSubBlock_literal()
97 return ZSTD_noCompressLiterals(dst, dstSize, literals, litSize); in ZSTD_compressSubBlock_literal()
106 … { U32 const lhc = hType + ((!singleStream) << 2) + ((U32)litSize<<4) + ((U32)cLitSize<<14); in ZSTD_compressSubBlock_literal()
111 { U32 const lhc = hType + (2 << 2) + ((U32)litSize<<4) + ((U32)cLitSize<<18); in ZSTD_compressSubBlock_literal()
116 { U32 const lhc = hType + (3 << 2) + ((U32)litSize<<4) + ((U32)cLitSize<<22); in ZSTD_compressSubBlock_literal()
125 DEBUGLOG(5, "Compressed literals: %u -> %u", (U32)litSize, (U32)(op-ostart)); in ZSTD_compressSubBlock_literal()
129 …eqStore_t const* seqStore, const seqDef* sequences, size_t nbSeq, size_t litSize, int lastSequence… in ZSTD_seqDecompressedSize() argument
142 assert(litLengthSum <= litSize); in ZSTD_seqDecompressedSize()
144 assert(litLengthSum == litSize); in ZSTD_seqDecompressedSize()
146 return matchLengthSum + litSize; in ZSTD_seqDecompressedSize()
262 const BYTE* literals, size_t litSize, in ZSTD_compressSubBlock() argument
275 litSize, nbSeq, writeLitEntropy, writeSeqEntropy, lastBlock); in ZSTD_compressSubBlock()
277 … &entropyMetadata->hufMetadata, literals, litSize, in ZSTD_compressSubBlock()
302 static size_t ZSTD_estimateSubBlockSize_literal(const BYTE* literals, size_t litSize, in ZSTD_estimateSubBlockSize_literal() argument
312 if (hufMetadata->hType == set_basic) return litSize; in ZSTD_estimateSubBlockSize_literal()
315 …st = HIST_count_wksp (countWksp, &maxSymbolValue, (const BYTE*)literals, litSize, workspace, wkspS… in ZSTD_estimateSubBlockSize_literal()
316 if (ZSTD_isError(largest)) return litSize; in ZSTD_estimateSubBlockSize_literal()
388 static size_t ZSTD_estimateSubBlockSize(const BYTE* literals, size_t litSize, in ZSTD_estimateSubBlockSize() argument
398 cSizeEstimate += ZSTD_estimateSubBlockSize_literal(literals, litSize, in ZSTD_estimateSubBlockSize()
450 size_t litSize, seqCount; in ZSTD_compressSubBlock_multi() local
458 litSize = 0; in ZSTD_compressSubBlock_multi()
467 litSize += ZSTD_getSequenceLength(seqStorePtr, sequence).litLength; in ZSTD_compressSubBlock_multi()
472 assert(litSize <= (size_t)(lend - lp)); in ZSTD_compressSubBlock_multi()
473 litSize = (size_t)(lend - lp); in ZSTD_compressSubBlock_multi()
480 …cBlockSizeEstimate = ZSTD_estimateSubBlockSize(lp, litSize, ofCodePtr, llCodePtr, mlCodePtr, seqCo… in ZSTD_compressSubBlock_multi()
486 …ze_t decompressedSize = ZSTD_seqDecompressedSize(seqStorePtr, sp, seqCount, litSize, lastSequence); in ZSTD_compressSubBlock_multi()
489 lp, litSize, in ZSTD_compressSubBlock_multi()
502 lp += litSize; in ZSTD_compressSubBlock_multi()
507 litSize = 0; in ZSTD_compressSubBlock_multi()