ReactOS  0.4.15-dev-1384-g878186b
zstd_ldm.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under both the BSD-style license (found in the
6  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7  * in the COPYING file in the root directory of this source tree).
8  */
9 
10 #ifndef ZSTD_LDM_H
11 #define ZSTD_LDM_H
12 
13 #if defined (__cplusplus)
14 extern "C" {
15 #endif
16 
17 #include "zstd_compress_internal.h" /* ldmParams_t, U32 */
18 #include "zstd.h" /* ZSTD_CCtx, size_t */
19 
20 /*-*************************************
21 * Long distance matching
22 ***************************************/
23 
24 #define ZSTD_LDM_DEFAULT_WINDOW_LOG ZSTD_WINDOWLOG_DEFAULTMAX
25 
42  ldmParams_t const* params, void const* src, size_t srcSize);
43 
62 size_t ZSTD_ldm_blockCompress(rawSeqStore_t* rawSeqStore,
63  ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
64  void const* src, size_t srcSize);
65 
73 void ZSTD_ldm_skipSequences(rawSeqStore_t* rawSeqStore, size_t srcSize,
74  U32 const minMatch);
75 
76 
82 
87 size_t ZSTD_ldm_getMaxNbSeq(ldmParams_t params, size_t maxChunkSize);
88 
91 U64 ZSTD_ldm_getHashPower(U32 minMatchLength);
92 
103  ZSTD_compressionParameters const* cParams);
104 
105 #if defined (__cplusplus)
106 }
107 #endif
108 
109 #endif /* ZSTD_FAST_H */
size_t ZSTD_ldm_getTableSize(ldmParams_t params)
Definition: zstd_ldm.c:48
size_t ZSTD_ldm_blockCompress(rawSeqStore_t *rawSeqStore, ZSTD_matchState_t *ms, seqStore_t *seqStore, U32 rep[ZSTD_REP_NUM], void const *src, size_t srcSize)
Definition: zstd_ldm.c:591
size_t ZSTD_ldm_generateSequences(ldmState_t *ldms, rawSeqStore_t *sequences, ldmParams_t const *params, void const *src, size_t srcSize)
Definition: zstd_ldm.c:463
GLenum const GLfloat * params
Definition: glext.h:5645
void ZSTD_ldm_skipSequences(rawSeqStore_t *rawSeqStore, size_t srcSize, U32 const minMatch)
Definition: zstd_ldm.c:532
U64 ZSTD_ldm_getHashPower(U32 minMatchLength)
Definition: zstd_ldm.c:180
GLenum src
Definition: glext.h:6340
void ZSTD_ldm_adjustParameters(ldmParams_t *params, ZSTD_compressionParameters const *cParams)
Definition: zstd_ldm.c:21
static struct msg_sequence * sequences[NUM_MSG_SEQUENCES]
Definition: button.c:54
unsigned long long U64
Definition: xxhash.c:197
size_t ZSTD_ldm_getMaxNbSeq(ldmParams_t params, size_t maxChunkSize)
Definition: zstd_ldm.c:58
unsigned int U32
Definition: xxhash.c:195
#define ZSTD_REP_NUM
Definition: zstd_internal.h:62