]> wimlib.net Git - wimlib/blob - src/xpress.h
Remove more trailing whitespace
[wimlib] / src / xpress.h
1 #ifndef _WIMLIB_XPRESS_H
2 #define _WIMLIB_XPRESS_H
3
4 #include "util.h"
5
6 /* See the comments in xpress-decomp.c about the XPRESS format. */
7
8 //#define ENABLE_XPRESS_DEBUG
9 #ifdef ENABLE_XPRESS_DEBUG
10 #       define XPRESS_DEBUG DEBUG
11 #else
12 #       define XPRESS_DEBUG(format, ...)
13 #endif
14
15 #define XPRESS_NUM_CHARS        256
16 #define XPRESS_NUM_SYMBOLS      512
17 #define XPRESS_MAX_CODEWORD_LEN 15
18 #define XPRESS_TABLEBITS        12
19
20 #define XPRESS_MIN_MATCH        3
21 #define XPRESS_MAX_MATCH        255
22
23 extern int xpress_decompress(const void *__compressed_data, uint compressed_len,
24                              void *__uncompressed_data, uint uncompressed_len);
25
26 extern int xpress_compress(const void *uncompressed_data, uint uncompressed_len,
27                            void *compressed_data, uint *compressed_len_ret);
28
29 #endif /* _WIMLIB_XPRESS_H */