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()
141 hufMetadata->hType = set_repeat; in ZSTD_buildSuperBlockEntropy_literal()
148 hufMetadata->hType = set_basic; in ZSTD_buildSuperBlockEntropy_literal()
152 hufMetadata->hType = set_compressed; in ZSTD_buildSuperBlockEntropy_literal()
283 entropyMetadata->hufMetadata.hufDesSize = in ZSTD_buildSuperBlockEntropy()
286 &entropyMetadata->hufMetadata, in ZSTD_buildSuperBlockEntropy()
289 …FORWARD_IF_ERROR(entropyMetadata->hufMetadata.hufDesSize, "ZSTD_buildSuperBlockEntropy_literal fai… in ZSTD_buildSuperBlockEntropy()
320 const ZSTD_hufCTablesMetadata_t* hufMetadata, in ZSTD_compressSubBlock_literal() argument
331 symbolEncodingType_e hType = writeEntropy ? hufMetadata->hType : set_repeat; in ZSTD_compressSubBlock_literal()
339 if (litSize == 0 || hufMetadata->hType == set_basic) { in ZSTD_compressSubBlock_literal()
342 } else if (hufMetadata->hType == set_rle) { in ZSTD_compressSubBlock_literal()
348 assert(hufMetadata->hType == set_compressed || hufMetadata->hType == set_repeat); in ZSTD_compressSubBlock_literal()
350 if (writeEntropy && hufMetadata->hType == set_compressed) { in ZSTD_compressSubBlock_literal()
351 ZSTD_memcpy(op, hufMetadata->hufDesBuffer, hufMetadata->hufDesSize); in ZSTD_compressSubBlock_literal()
352 op += hufMetadata->hufDesSize; in ZSTD_compressSubBlock_literal()
353 cLitSize += hufMetadata->hufDesSize; in ZSTD_compressSubBlock_literal()
354 DEBUGLOG(5, "ZSTD_compressSubBlock_literal (hSize=%zu)", hufMetadata->hufDesSize); in ZSTD_compressSubBlock_literal()
554 … &entropyMetadata->hufMetadata, literals, litSize, in ZSTD_compressSubBlock()
581 const ZSTD_hufCTablesMetadata_t* hufMetadata, in ZSTD_estimateSubBlockSize_literal() argument
589 if (hufMetadata->hType == set_basic) return litSize; in ZSTD_estimateSubBlockSize_literal()
590 else if (hufMetadata->hType == set_rle) return 1; in ZSTD_estimateSubBlockSize_literal()
591 else if (hufMetadata->hType == set_compressed || hufMetadata->hType == set_repeat) { in ZSTD_estimateSubBlockSize_literal()
595 if (writeEntropy) cLitSizeEstimate += hufMetadata->hufDesSize; in ZSTD_estimateSubBlockSize_literal()
675 … &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateSubBlockSize()
727 int writeLitEntropy = entropyMetadata->hufMetadata.hType == set_compressed; in ZSTD_compressSubBlock_multi()