@@ -191,28 +191,6 @@ size_t ZSTD_buildBlockEntropyStats(
191
191
* Compression internals structs *
192
192
*********************************/
193
193
194
- /**
195
- * Internal equivalent of public ZSTD_compressionParameters struct.
196
- */
197
- typedef struct {
198
- unsigned windowLog ; /**< largest match distance : larger == more compression, more memory needed during decompression, see also `windowFrac` in CCtxParams */
199
- unsigned chainLog ; /**< fully searched segment : larger == more compression, slower, more memory (useless for fast) */
200
- unsigned hashLog ; /**< dispatch table : larger == faster, more memory */
201
- unsigned searchLog ; /**< nb of searches : larger == more compression, slower */
202
- unsigned minMatch ; /**< match length searched : larger == faster decompression, sometimes less compression */
203
- unsigned targetLength ; /**< acceptable match size for optimal parser (only) : larger == more compression, slower */
204
- ZSTD_strategy strategy ; /**< see ZSTD_strategy definition above */
205
- } ZSTD_CParams ;
206
-
207
- /**
208
- * Internal equivalent of public ZSTD_Params struct, wrapping the internal
209
- * ZSTD_CParams struct rather than the public ZSTD_compressionParameters.
210
- */
211
- typedef struct {
212
- ZSTD_CParams cParams ;
213
- ZSTD_frameParameters fParams ;
214
- } ZSTD_Params ;
215
-
216
194
typedef struct {
217
195
U32 off ; /* Offset sumtype code for the match, using ZSTD_storeSeq() format */
218
196
U32 len ; /* Raw length of match */
@@ -386,7 +364,7 @@ typedef struct {
386
364
387
365
struct ZSTD_CCtx_params_s {
388
366
ZSTD_format_e format ;
389
- ZSTD_CParams cParams ;
367
+ ZSTD_compressionParameters cParams ;
390
368
unsigned windowFrac ; /* Additional CParam controlling sub-power-of-two window sizing. */
391
369
ZSTD_frameParameters fParams ;
392
370
@@ -1654,32 +1632,12 @@ BlockSummary ZSTD_get1BlockSummary(const ZSTD_Sequence* seqs, size_t nbSeqs);
1654
1632
* These prototypes shall only be called from within lib/compress
1655
1633
* ============================================================== */
1656
1634
1657
- /* ZSTD_getCParamsFromPublicCParams(), ZSTD_getPublicCParamsFromCParams() :
1658
- * Translates between the public and internal structs.
1659
- *
1660
- * Note: as these structs diverge, this may increasingly become a lossy
1661
- * translation. The only long-term justified use of these should be at the
1662
- * User API.
1663
- */
1664
- ZSTD_CParams ZSTD_getCParamsFromPublicCParams (ZSTD_compressionParameters cParams );
1665
- ZSTD_compressionParameters ZSTD_getPublicCParamsFromCParams (ZSTD_CParams cParams );
1666
-
1667
- /* ZSTD_getParamsFromPublicParams(), ZSTD_getPublicParamsFromParams() :
1668
- * Translates between the public and internal structs.
1669
- *
1670
- * Note: as these structs diverge, this may increasingly become a lossy
1671
- * translation. The only long-term justified use of these should be at the
1672
- * User API.
1673
- */
1674
- ZSTD_Params ZSTD_getParamsFromPublicParams (ZSTD_parameters params );
1675
- ZSTD_parameters ZSTD_getPublicParamsFromParams (ZSTD_Params params );
1676
-
1677
1635
/* ZSTD_getCParamsFromCCtxParams() :
1678
1636
* cParams are built depending on compressionLevel, src size hints,
1679
1637
* LDM and manually set compression parameters.
1680
1638
* Note: srcSizeHint == 0 means 0!
1681
1639
*/
1682
- ZSTD_CParams ZSTD_getCParamsFromCCtxParams (
1640
+ ZSTD_compressionParameters ZSTD_getCParamsFromCCtxParams (
1683
1641
const ZSTD_CCtx_params * CCtxParams , U64 srcSizeHint , size_t dictSize , ZSTD_CParamMode_e mode );
1684
1642
1685
1643
/*! ZSTD_initCStream_internal() :
@@ -1696,26 +1654,13 @@ void ZSTD_resetSeqStore(SeqStore_t* ssPtr);
1696
1654
1697
1655
/*! ZSTD_getCParamsFromCDict() :
1698
1656
* as the name implies */
1699
- ZSTD_CParams ZSTD_getCParamsFromCDict (const ZSTD_CDict * cdict );
1700
-
1701
- /*! ZSTD_checkCParams_internal() :
1702
- * Only used for cparams coming from the user. Checks are limited compared to
1703
- * checking the whole CCtxParams via the below. */
1704
- size_t ZSTD_checkCParams_internal (const ZSTD_CParams * cParams );
1657
+ ZSTD_compressionParameters ZSTD_getCParamsFromCDict (const ZSTD_CDict * cdict );
1705
1658
1706
1659
/*! ZSTD_checkCCtxCParams_internal() :
1707
1660
* Checks the CParams in the CCtxParams (including related parameters not
1708
1661
* *actually* stored in the CParams struct). */
1709
1662
size_t ZSTD_checkCCtxCParams_internal (const ZSTD_CCtx_params * params );
1710
1663
1711
- /* ZSTD_createCDict_internal() :
1712
- * Private use only. To be called from zstdmt_compress.c. */
1713
- ZSTD_CDict * ZSTD_createCDict_internal (const void * dictBuffer , size_t dictSize ,
1714
- ZSTD_dictLoadMethod_e dictLoadMethod ,
1715
- ZSTD_dictContentType_e dictContentType ,
1716
- ZSTD_CParams cParams ,
1717
- ZSTD_customMem customMem );
1718
-
1719
1664
/* ZSTD_compressBegin_advanced_internal() :
1720
1665
* Private use only. To be called from zstdmt_compress.c. */
1721
1666
size_t ZSTD_compressBegin_advanced_internal (ZSTD_CCtx * cctx ,
0 commit comments