X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fxpress.h;h=c8bc57d8fe0a1afed43908e435c1a84ff563ae91;hb=63b76b34c79107cba091d1ea62e304d2666ec86d;hp=89e2345ea366f3b684d1ec671bfece6003823177;hpb=885632f08c75c1d7bb5d25436231c78f6ad7e0c0;p=wimlib diff --git a/src/xpress.h b/src/xpress.h index 89e2345e..c8bc57d8 100644 --- a/src/xpress.h +++ b/src/xpress.h @@ -1,28 +1,9 @@ -/* - * xpress.h - * - * wimlib - Library for working with WIM files - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) any - * later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A - * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License along - * with this library; if not, write to the Free Software Foundation, Inc., 59 - * Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - #ifndef _WIMLIB_XPRESS_H #define _WIMLIB_XPRESS_H #include "util.h" -/* See the comments in xpress-decomp.c about the XPRESS format. */ +/* See the comments in xpress-decompress.c about the XPRESS format. */ //#define ENABLE_XPRESS_DEBUG #ifdef ENABLE_XPRESS_DEBUG @@ -36,13 +17,18 @@ #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 255 +#define XPRESS_MAX_MATCH 65538 -extern int xpress_decompress(const void *__compressed_data, uint compressed_len, - void *__uncompressed_data, uint uncompressed_len); +extern int xpress_decompress(const void *__compressed_data, unsigned compressed_len, + void *__uncompressed_data, unsigned uncompressed_len); -extern int xpress_compress(const void *uncompressed_data, uint uncompressed_len, - void *compressed_data, uint *compressed_len_ret); +extern int xpress_compress(const void *uncompressed_data, unsigned uncompressed_len, + void *compressed_data, unsigned *compressed_len_ret); #endif /* _WIMLIB_XPRESS_H */