ReactOS 0.4.15-dev-7842-g558ab78
zstd_ldm.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016-2020, 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 * You may select, at your option, one of the above-listed licenses.
9 */
10
11#ifndef ZSTD_LDM_H
12#define ZSTD_LDM_H
13
14#if defined (__cplusplus)
15extern "C" {
16#endif
17
18#include "zstd_compress_internal.h" /* ldmParams_t, U32 */
19#include "zstd.h" /* ZSTD_CCtx, size_t */
20
21/*-*************************************
22* Long distance matching
23***************************************/
24
25#define ZSTD_LDM_DEFAULT_WINDOW_LOG ZSTD_WINDOWLOG_LIMIT_DEFAULT
26
28 ldmState_t* state, const BYTE* ip,
29 const BYTE* iend, ldmParams_t const* params);
30
47 ldmParams_t const* params, void const* src, size_t srcSize);
48
67size_t ZSTD_ldm_blockCompress(rawSeqStore_t* rawSeqStore,
68 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
69 void const* src, size_t srcSize);
70
78void ZSTD_ldm_skipSequences(rawSeqStore_t* rawSeqStore, size_t srcSize,
79 U32 const minMatch);
80
81
87
92size_t ZSTD_ldm_getMaxNbSeq(ldmParams_t params, size_t maxChunkSize);
93
104 ZSTD_compressionParameters const* cParams);
105
106#if defined (__cplusplus)
107}
108#endif
109
110#endif /* ZSTD_FAST_H */
static int state
Definition: maze.c:121
GLenum src
Definition: glext.h:6340
GLenum const GLfloat * params
Definition: glext.h:5645
static struct msg_sequence * sequences[NUM_MSG_SEQUENCES]
Definition: button.c:54
Definition: dhcpd.h:62
unsigned char BYTE
Definition: xxhash.c:193
unsigned int U32
Definition: xxhash.c:195
#define ZSTD_REP_NUM
void ZSTD_ldm_fillHashTable(ldmState_t *state, const BYTE *ip, const BYTE *iend, ldmParams_t const *params)
Definition: zstd_ldm.c:227
void ZSTD_ldm_skipSequences(rawSeqStore_t *rawSeqStore, size_t srcSize, U32 const minMatch)
Definition: zstd_ldm.c:506
void ZSTD_ldm_adjustParameters(ldmParams_t *params, ZSTD_compressionParameters const *cParams)
Definition: zstd_ldm.c:22
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:429
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:565
size_t ZSTD_ldm_getMaxNbSeq(ldmParams_t params, size_t maxChunkSize)
Definition: zstd_ldm.c:59
size_t ZSTD_ldm_getTableSize(ldmParams_t params)
Definition: zstd_ldm.c:49