1 /* config1c.h -- configuration for the LZO1C algorithm
3 This file is part of the LZO real-time data compression library.
5 Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
6 Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
7 Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
8 Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer
9 Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer
10 Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
11 Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
12 Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
13 Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
14 Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
15 Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
16 Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
17 Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
20 The LZO library is free software; you can redistribute it and/or
21 modify it under the terms of the GNU General Public License as
22 published by the Free Software Foundation; either version 2 of
23 the License, or (at your option) any later version.
25 The LZO library is distributed in the hope that it will be useful,
26 but WITHOUT ANY WARRANTY; without even the implied warranty of
27 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 GNU General Public License for more details.
30 You should have received a copy of the GNU General Public License
31 along with the LZO library; see the file COPYING.
32 If not, write to the Free Software Foundation, Inc.,
33 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35 Markus F.X.J. Oberhumer
36 <markus@oberhumer.com>
37 http://www.oberhumer.com/opensource/lzo/
41 /* WARNING: this file should *not* be used by applications. It is
42 part of the implementation of the library and is subject
47 #ifndef __LZO_CONFIG1C_H
48 #define __LZO_CONFIG1C_H
51 #include "lzo/lzo1c.h"
54 /***********************************************************************
55 // algorithm configuration
56 ************************************************************************/
58 /* run bits (4 - 5) - the compressor and the decompressor
59 * must use the same value. */
64 /* dictionary depth (0 - 6) - this only affects the compressor.
65 * 0 is fastest, 6 is best compression ratio */
70 /* compression level (1 - 9) - this only affects the compressor.
71 * 1 is fastest, 9 is best compression ratio */
73 # define CLEVEL 1 /* fastest by default */
77 /* check configuration */
78 #if (RBITS < 4 || RBITS > 5)
79 # error "invalid RBITS"
81 #if (DDBITS < 0 || DDBITS > 6)
82 # error "invalid DDBITS"
84 #if (CLEVEL < 1 || CLEVEL > 9)
85 # error "invalid CLEVEL"
89 /***********************************************************************
90 // internal configuration
91 ************************************************************************/
93 /* add a special code so that the decompressor can detect the
94 * end of the compressed data block (overhead is 3 bytes per block) */
98 /***********************************************************************
99 // algorithm internal configuration
100 ************************************************************************/
102 /* choose the hashing strategy */
104 #define LZO_HASH LZO_HASH_LZO_INCREMENTAL_A
109 #define DD_BITS DDBITS
115 /***********************************************************************
116 // optimization and debugging
117 ************************************************************************/
119 /* Collect statistics */
120 #if 0 && !defined(LZO_COLLECT_STATS)
121 # define LZO_COLLECT_STATS
125 /***********************************************************************
127 ************************************************************************/
129 /* good parameters when using a blocksize of 8kB */
131 #undef LZO_DETERMINISTIC
134 #include "lzo1b_de.h"
137 #include "lzo1c_cc.h"
140 #endif /* already included */