X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fxpress.h;fp=include%2Fwimlib%2Fxpress.h;h=c07dbae859aedebcf74d774e643068c387eed207;hb=e8c3ca2d1d0cac3d64985b45a9f654d2029a7518;hp=0000000000000000000000000000000000000000;hpb=726f9bbd0bd664294fce8a50be1d5b6881df8d16;p=wimlib diff --git a/include/wimlib/xpress.h b/include/wimlib/xpress.h new file mode 100644 index 00000000..c07dbae8 --- /dev/null +++ b/include/wimlib/xpress.h @@ -0,0 +1,26 @@ +#ifndef _WIMLIB_XPRESS_H +#define _WIMLIB_XPRESS_H + +/* See the comments in xpress-decompress.c about the XPRESS format. */ + +//#define ENABLE_XPRESS_DEBUG +#ifdef ENABLE_XPRESS_DEBUG +# define XPRESS_DEBUG DEBUG +#else +# define XPRESS_DEBUG(format, ...) +#endif + +#define XPRESS_NUM_CHARS 256 +#define XPRESS_NUM_SYMBOLS 512 +#define XPRESS_MAX_CODEWORD_LEN 15 +#define XPRESS_TABLEBITS 12 + +#define XPRESS_END_OF_DATA 256 + +#define XPRESS_MIN_OFFSET 1 +#define XPRESS_MAX_OFFSET 65535 + +#define XPRESS_MIN_MATCH 3 +#define XPRESS_MAX_MATCH 65538 + +#endif /* _WIMLIB_XPRESS_H */