Lines Matching refs:fseMetadata
52 ZSTD_fseCTablesMetadata_t fseMetadata; member
168 ZSTD_fseCTablesMetadata_t* fseMetadata, in ZSTD_buildSuperBlockEntropy_sequences() argument
186 BYTE* const ostart = fseMetadata->fseTablesBuffer; in ZSTD_buildSuperBlockEntropy_sequences()
187 BYTE* const oend = ostart + sizeof(fseMetadata->fseTablesBuffer); in ZSTD_buildSuperBlockEntropy_sequences()
194 fseMetadata->lastCountSize = 0; in ZSTD_buildSuperBlockEntropy_sequences()
216 fseMetadata->lastCountSize = countSize; in ZSTD_buildSuperBlockEntropy_sequences()
218 fseMetadata->llType = (symbolEncodingType_e) LLtype; in ZSTD_buildSuperBlockEntropy_sequences()
240 fseMetadata->lastCountSize = countSize; in ZSTD_buildSuperBlockEntropy_sequences()
242 fseMetadata->ofType = (symbolEncodingType_e) Offtype; in ZSTD_buildSuperBlockEntropy_sequences()
262 fseMetadata->lastCountSize = countSize; in ZSTD_buildSuperBlockEntropy_sequences()
264 fseMetadata->mlType = (symbolEncodingType_e) MLtype; in ZSTD_buildSuperBlockEntropy_sequences()
266 assert((size_t) (op-ostart) <= sizeof(fseMetadata->fseTablesBuffer)); in ZSTD_buildSuperBlockEntropy_sequences()
291 entropyMetadata->fseMetadata.fseTablesSize = in ZSTD_buildSuperBlockEntropy()
295 &entropyMetadata->fseMetadata, in ZSTD_buildSuperBlockEntropy()
297 …FORWARD_IF_ERROR(entropyMetadata->fseMetadata.fseTablesSize, "ZSTD_buildSuperBlockEntropy_sequence… in ZSTD_buildSuperBlockEntropy()
440 const ZSTD_fseCTablesMetadata_t* fseMetadata, in ZSTD_compressSubBlock_sequences() argument
475 const U32 LLtype = fseMetadata->llType; in ZSTD_compressSubBlock_sequences()
476 const U32 Offtype = fseMetadata->ofType; in ZSTD_compressSubBlock_sequences()
477 const U32 MLtype = fseMetadata->mlType; in ZSTD_compressSubBlock_sequences()
478 … DEBUGLOG(5, "ZSTD_compressSubBlock_sequences (fseTablesSize=%zu)", fseMetadata->fseTablesSize); in ZSTD_compressSubBlock_sequences()
480 ZSTD_memcpy(op, fseMetadata->fseTablesBuffer, fseMetadata->fseTablesSize); in ZSTD_compressSubBlock_sequences()
481 op += fseMetadata->fseTablesSize; in ZSTD_compressSubBlock_sequences()
505 …if (writeEntropy && fseMetadata->lastCountSize && fseMetadata->lastCountSize + bitstreamSize < 4) { in ZSTD_compressSubBlock_sequences()
507 assert(fseMetadata->lastCountSize + bitstreamSize == 3); in ZSTD_compressSubBlock_sequences()
564 &entropyMetadata->fseMetadata, in ZSTD_compressSubBlock()
645 const ZSTD_fseCTablesMetadata_t* fseMetadata, in ZSTD_estimateSubBlockSize_sequences() argument
651 … cSeqSizeEstimate += ZSTD_estimateSubBlockSize_symbolType(fseMetadata->ofType, ofCodeTable, MaxOff, in ZSTD_estimateSubBlockSize_sequences()
655 … cSeqSizeEstimate += ZSTD_estimateSubBlockSize_symbolType(fseMetadata->llType, llCodeTable, MaxLL, in ZSTD_estimateSubBlockSize_sequences()
659 … cSeqSizeEstimate += ZSTD_estimateSubBlockSize_symbolType(fseMetadata->mlType, mlCodeTable, MaxML, in ZSTD_estimateSubBlockSize_sequences()
663 if (writeEntropy) cSeqSizeEstimate += fseMetadata->fseTablesSize; in ZSTD_estimateSubBlockSize_sequences()
681 … nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateSubBlockSize()
686 static int ZSTD_needSequenceEntropyTables(ZSTD_fseCTablesMetadata_t const* fseMetadata) in ZSTD_needSequenceEntropyTables() argument
688 if (fseMetadata->llType == set_compressed || fseMetadata->llType == set_rle) in ZSTD_needSequenceEntropyTables()
690 if (fseMetadata->mlType == set_compressed || fseMetadata->mlType == set_rle) in ZSTD_needSequenceEntropyTables()
692 if (fseMetadata->ofType == set_compressed || fseMetadata->ofType == set_rle) in ZSTD_needSequenceEntropyTables()
802 if (writeSeqEntropy && ZSTD_needSequenceEntropyTables(&entropyMetadata->fseMetadata)) { in ZSTD_compressSubBlock_multi()