Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) Yann Collet, Facebook, Inc.
0003  * All rights reserved.
0004  *
0005  * This source code is licensed under both the BSD-style license (found in the
0006  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
0007  * in the COPYING file in the root directory of this source tree).
0008  * You may select, at your option, one of the above-listed licenses.
0009  */
0010 
0011 #ifndef ZSTD_OPT_H
0012 #define ZSTD_OPT_H
0013 
0014 
0015 #include "zstd_compress_internal.h"
0016 
0017 /* used in ZSTD_loadDictionaryContent() */
0018 void ZSTD_updateTree(ZSTD_matchState_t* ms, const BYTE* ip, const BYTE* iend);
0019 
0020 size_t ZSTD_compressBlock_btopt(
0021         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
0022         void const* src, size_t srcSize);
0023 size_t ZSTD_compressBlock_btultra(
0024         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
0025         void const* src, size_t srcSize);
0026 size_t ZSTD_compressBlock_btultra2(
0027         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
0028         void const* src, size_t srcSize);
0029 
0030 
0031 size_t ZSTD_compressBlock_btopt_dictMatchState(
0032         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
0033         void const* src, size_t srcSize);
0034 size_t ZSTD_compressBlock_btultra_dictMatchState(
0035         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
0036         void const* src, size_t srcSize);
0037 
0038 size_t ZSTD_compressBlock_btopt_extDict(
0039         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
0040         void const* src, size_t srcSize);
0041 size_t ZSTD_compressBlock_btultra_extDict(
0042         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
0043         void const* src, size_t srcSize);
0044 
0045         /* note : no btultra2 variant for extDict nor dictMatchState,
0046          * because btultra2 is not meant to work with dictionaries
0047          * and is only specific for the first block (no prefix) */
0048 
0049 
0050 #endif /* ZSTD_OPT_H */