1 #ifndef _WIMLIB_XPRESS_H
2 #define _WIMLIB_XPRESS_H
6 /* See the comments in xpress-decomp.c about the XPRESS format. */
8 //#define ENABLE_XPRESS_DEBUG
9 #ifdef ENABLE_XPRESS_DEBUG
10 # define XPRESS_DEBUG DEBUG
12 # define XPRESS_DEBUG(format, ...)
15 #define XPRESS_NUM_CHARS 256
16 #define XPRESS_NUM_SYMBOLS 512
17 #define XPRESS_MAX_CODEWORD_LEN 15
18 #define XPRESS_TABLEBITS 12
20 #define XPRESS_MIN_MATCH 3
21 #define XPRESS_MAX_MATCH 255
23 extern int xpress_decompress(const void *__compressed_data, uint compressed_len,
24 void *__uncompressed_data, uint uncompressed_len);
26 extern int xpress_compress(const void *uncompressed_data, uint uncompressed_len,
27 void *compressed_data, uint *compressed_len_ret);
29 #endif /* _WIMLIB_XPRESS_H */