Lines Matching full:entropy

18 #include "zstd_compress_internal.h"   /* ZSTD_[huf|fse|entropy]CTablesMetadata_t */
85 DEBUGLOG(5, "Failed to write entropy tables %s", ZSTD_getErrorName(cSize)); in ZSTD_compressSubBlock_literal()
259 static size_t ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, in ZSTD_compressSubBlock() argument
276 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock()
283 { size_t cSeqSize = ZSTD_compressSubBlock_sequences(&entropy->fse, in ZSTD_compressSubBlock()
393 const ZSTD_entropyCTables_t* entropy, in ZSTD_estimateSubBlockSize() argument
399 … &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateSubBlockSize()
402 … nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateSubBlockSize()
420 * Entropy will be written to the first block.
481 &nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi()
487 const size_t cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi()
509 /* Entropy only needs to be written once */ in ZSTD_compressSubBlock_multi()
520 DEBUGLOG(5, "ZSTD_compressSubBlock_multi has literal entropy tables unwritten"); in ZSTD_compressSubBlock_multi()
521 … ZSTD_memcpy(&nextCBlock->entropy.huf, &prevCBlock->entropy.huf, sizeof(prevCBlock->entropy.huf)); in ZSTD_compressSubBlock_multi()
524 /* If we haven't written our entropy tables, then we've violated our contract and in ZSTD_compressSubBlock_multi()
527 DEBUGLOG(5, "ZSTD_compressSubBlock_multi has sequence entropy tables unwritten"); in ZSTD_compressSubBlock_multi()
558 &zc->blockState.prevCBlock->entropy, in ZSTD_compressSuperBlock()
559 &zc->blockState.nextCBlock->entropy, in ZSTD_compressSuperBlock()