xref: /freebsd/sys/contrib/zstd/lib/compress/zstd_opt.h (revision 0f743729abbfc5c9d78a713f72241a4d4bd601ec)
10c16b537SWarner Losh /*
20c16b537SWarner Losh  * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
30c16b537SWarner Losh  * All rights reserved.
40c16b537SWarner Losh  *
50c16b537SWarner Losh  * This source code is licensed under both the BSD-style license (found in the
60c16b537SWarner Losh  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
70c16b537SWarner Losh  * in the COPYING file in the root directory of this source tree).
80c16b537SWarner Losh  * You may select, at your option, one of the above-listed licenses.
90c16b537SWarner Losh  */
100c16b537SWarner Losh 
110c16b537SWarner Losh #ifndef ZSTD_OPT_H
120c16b537SWarner Losh #define ZSTD_OPT_H
130c16b537SWarner Losh 
140c16b537SWarner Losh #if defined (__cplusplus)
150c16b537SWarner Losh extern "C" {
160c16b537SWarner Losh #endif
170c16b537SWarner Losh 
1819fcbaf1SConrad Meyer #include "zstd_compress_internal.h"
19052d3c12SConrad Meyer 
20*0f743729SConrad Meyer /* used in ZSTD_loadDictionaryContent() */
21*0f743729SConrad Meyer void ZSTD_updateTree(ZSTD_matchState_t* ms, const BYTE* ip, const BYTE* iend);
220c16b537SWarner Losh 
2319fcbaf1SConrad Meyer size_t ZSTD_compressBlock_btopt(
2419fcbaf1SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
25*0f743729SConrad Meyer         void const* src, size_t srcSize);
2619fcbaf1SConrad Meyer size_t ZSTD_compressBlock_btultra(
2719fcbaf1SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
28*0f743729SConrad Meyer         void const* src, size_t srcSize);
29*0f743729SConrad Meyer 
30*0f743729SConrad Meyer size_t ZSTD_compressBlock_btopt_dictMatchState(
31*0f743729SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
32*0f743729SConrad Meyer         void const* src, size_t srcSize);
33*0f743729SConrad Meyer size_t ZSTD_compressBlock_btultra_dictMatchState(
34*0f743729SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
35*0f743729SConrad Meyer         void const* src, size_t srcSize);
3619fcbaf1SConrad Meyer 
3719fcbaf1SConrad Meyer size_t ZSTD_compressBlock_btopt_extDict(
3819fcbaf1SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
39*0f743729SConrad Meyer         void const* src, size_t srcSize);
4019fcbaf1SConrad Meyer size_t ZSTD_compressBlock_btultra_extDict(
4119fcbaf1SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
42*0f743729SConrad Meyer         void const* src, size_t srcSize);
430c16b537SWarner Losh 
440c16b537SWarner Losh #if defined (__cplusplus)
450c16b537SWarner Losh }
460c16b537SWarner Losh #endif
470c16b537SWarner Losh 
480c16b537SWarner Losh #endif /* ZSTD_OPT_H */
49