1 #ifndef _WIMLIB_XPRESS_H
2 #define _WIMLIB_XPRESS_H
4 /* Constants for the XPRESS data compression format. See the comments in
5 * xpress-decompress.c for more information about this format. */
7 //#define ENABLE_XPRESS_DEBUG
8 #ifdef ENABLE_XPRESS_DEBUG
9 # define XPRESS_DEBUG DEBUG
10 # define XPRESS_ASSERT wimlib_assert
12 # define XPRESS_DEBUG(format, ...)
13 # define XPRESS_ASSERT(...)
16 #define XPRESS_NUM_CHARS 256
17 #define XPRESS_NUM_SYMBOLS 512
18 #define XPRESS_MAX_CODEWORD_LEN 15
19 #define XPRESS_TABLEBITS 12
21 #define XPRESS_END_OF_DATA 256
23 #define XPRESS_MIN_OFFSET 1
24 #define XPRESS_MAX_OFFSET 65535
26 #define XPRESS_MIN_MATCH_LEN 3
27 #define XPRESS_MAX_MATCH_LEN 65538
29 #endif /* _WIMLIB_XPRESS_H */