Lines Matching refs:hufMetadata
51 ZSTD_hufCTablesMetadata_t hufMetadata; member
64 ZSTD_hufCTablesMetadata_t* hufMetadata, in ZSTD_buildSuperBlockEntropy_literal() argument
86 hufMetadata->hType = set_basic; in ZSTD_buildSuperBlockEntropy_literal()
95 hufMetadata->hType = set_basic; in ZSTD_buildSuperBlockEntropy_literal()
105 hufMetadata->hType = set_rle; in ZSTD_buildSuperBlockEntropy_literal()
110 hufMetadata->hType = set_basic; in ZSTD_buildSuperBlockEntropy_literal()
132 hufMetadata->hufDesBuffer, sizeof(hufMetadata->hufDesBuffer), in ZSTD_buildSuperBlockEntropy_literal()
142 hufMetadata->hType = set_repeat; in ZSTD_buildSuperBlockEntropy_literal()
149 hufMetadata->hType = set_basic; in ZSTD_buildSuperBlockEntropy_literal()
153 hufMetadata->hType = set_compressed; in ZSTD_buildSuperBlockEntropy_literal()
284 entropyMetadata->hufMetadata.hufDesSize = in ZSTD_buildSuperBlockEntropy()
287 &entropyMetadata->hufMetadata, in ZSTD_buildSuperBlockEntropy()
290 …FORWARD_IF_ERROR(entropyMetadata->hufMetadata.hufDesSize, "ZSTD_buildSuperBlockEntropy_literal fai… in ZSTD_buildSuperBlockEntropy()
321 const ZSTD_hufCTablesMetadata_t* hufMetadata, in ZSTD_compressSubBlock_literal() argument
332 symbolEncodingType_e hType = writeEntropy ? hufMetadata->hType : set_repeat; in ZSTD_compressSubBlock_literal()
340 if (litSize == 0 || hufMetadata->hType == set_basic) { in ZSTD_compressSubBlock_literal()
343 } else if (hufMetadata->hType == set_rle) { in ZSTD_compressSubBlock_literal()
349 assert(hufMetadata->hType == set_compressed || hufMetadata->hType == set_repeat); in ZSTD_compressSubBlock_literal()
351 if (writeEntropy && hufMetadata->hType == set_compressed) { in ZSTD_compressSubBlock_literal()
352 ZSTD_memcpy(op, hufMetadata->hufDesBuffer, hufMetadata->hufDesSize); in ZSTD_compressSubBlock_literal()
353 op += hufMetadata->hufDesSize; in ZSTD_compressSubBlock_literal()
354 cLitSize += hufMetadata->hufDesSize; in ZSTD_compressSubBlock_literal()
355 DEBUGLOG(5, "ZSTD_compressSubBlock_literal (hSize=%zu)", hufMetadata->hufDesSize); in ZSTD_compressSubBlock_literal()
557 … &entropyMetadata->hufMetadata, literals, litSize, in ZSTD_compressSubBlock()
584 const ZSTD_hufCTablesMetadata_t* hufMetadata, in ZSTD_estimateSubBlockSize_literal() argument
592 if (hufMetadata->hType == set_basic) return litSize; in ZSTD_estimateSubBlockSize_literal()
593 else if (hufMetadata->hType == set_rle) return 1; in ZSTD_estimateSubBlockSize_literal()
594 else if (hufMetadata->hType == set_compressed || hufMetadata->hType == set_repeat) { in ZSTD_estimateSubBlockSize_literal()
598 if (writeEntropy) cLitSizeEstimate += hufMetadata->hufDesSize; in ZSTD_estimateSubBlockSize_literal()
678 … &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateSubBlockSize()
730 int writeLitEntropy = entropyMetadata->hufMetadata.hType == set_compressed; in ZSTD_compressSubBlock_multi()