]> wimlib.net Git - wimlib/blob - include/wimlib/xpress.h
Cleanup
[wimlib] / include / wimlib / xpress.h
1 #ifndef _WIMLIB_XPRESS_H
2 #define _WIMLIB_XPRESS_H
3
4 /* Constants for the XPRESS data compression format.  See the comments in
5  * xpress-decompress.c for more information about this format.  */
6
7 //#define ENABLE_XPRESS_DEBUG
8 #ifdef ENABLE_XPRESS_DEBUG
9 #       define XPRESS_DEBUG DEBUG
10 #       define XPRESS_ASSERT wimlib_assert
11 #else
12 #       define XPRESS_DEBUG(format, ...)
13 #       define XPRESS_ASSERT(...)
14 #endif
15
16 #define XPRESS_NUM_CHARS        256
17 #define XPRESS_NUM_SYMBOLS      512
18 #define XPRESS_MAX_CODEWORD_LEN 15
19 #define XPRESS_TABLEBITS        12
20
21 #define XPRESS_END_OF_DATA      256
22
23 #define XPRESS_MIN_OFFSET       1
24 #define XPRESS_MAX_OFFSET       65535
25
26 #define XPRESS_MIN_MATCH_LEN    3
27 #define XPRESS_MAX_MATCH_LEN    65538
28
29 #endif /* _WIMLIB_XPRESS_H */