1/* config1x.h -- configuration for the LZO1X algorithm 2 3 This file is part of the LZO real-time data compression library. 4 5 Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer 6 Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer 7 Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer 8 Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer 9 Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer 10 Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer 11 Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer 12 Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer 13 Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer 14 Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer 15 Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer 16 Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer 17 Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer 18 Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer 19 Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer 20 Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer 21 All Rights Reserved. 22 23 The LZO library is free software; you can redistribute it and/or 24 modify it under the terms of the GNU General Public License as 25 published by the Free Software Foundation; either version 2 of 26 the License, or (at your option) any later version. 27 28 The LZO library is distributed in the hope that it will be useful, 29 but WITHOUT ANY WARRANTY; without even the implied warranty of 30 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 31 GNU General Public License for more details. 32 33 You should have received a copy of the GNU General Public License 34 along with the LZO library; see the file COPYING. 35 If not, write to the Free Software Foundation, Inc., 36 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 37 38 Markus F.X.J. Oberhumer 39 <markus@oberhumer.com> 40 http://www.oberhumer.com/opensource/lzo/ 41 */ 42 43 44/* WARNING: this file should *not* be used by applications. It is 45 part of the implementation of the library and is subject 46 to change. 47 */ 48 49 50#ifndef __LZO_CONFIG1X_H 51#define __LZO_CONFIG1X_H 1 52 53#if !defined(LZO1X) && !defined(LZO1Y) && !defined(LZO1Z) 54# define LZO1X 1 55#endif 56 57#include "lzo_conf.h" 58#if !defined(__LZO_IN_MINILZO) 59#include "lzo/lzo1x.h" 60#endif 61 62 63/*********************************************************************** 64// 65************************************************************************/ 66 67#ifndef LZO_EOF_CODE 68#define LZO_EOF_CODE 1 69#endif 70#undef LZO_DETERMINISTIC 71 72#define M1_MAX_OFFSET 0x0400 73#ifndef M2_MAX_OFFSET 74#define M2_MAX_OFFSET 0x0800 75#endif 76#define M3_MAX_OFFSET 0x4000 77#define M4_MAX_OFFSET 0xbfff 78 79#define MX_MAX_OFFSET (M1_MAX_OFFSET + M2_MAX_OFFSET) 80 81#define M1_MIN_LEN 2 82#define M1_MAX_LEN 2 83#define M2_MIN_LEN 3 84#ifndef M2_MAX_LEN 85#define M2_MAX_LEN 8 86#endif 87#define M3_MIN_LEN 3 88#define M3_MAX_LEN 33 89#define M4_MIN_LEN 3 90#define M4_MAX_LEN 9 91 92#define M1_MARKER 0 93#define M2_MARKER 64 94#define M3_MARKER 32 95#define M4_MARKER 16 96 97 98/*********************************************************************** 99// 100************************************************************************/ 101 102#ifndef MIN_LOOKAHEAD 103#define MIN_LOOKAHEAD (M2_MAX_LEN + 1) 104#endif 105 106#if defined(LZO_NEED_DICT_H) 107 108#ifndef LZO_HASH 109#define LZO_HASH LZO_HASH_LZO_INCREMENTAL_B 110#endif 111#define DL_MIN_LEN M2_MIN_LEN 112#include "lzo_dict.h" 113 114#endif 115 116 117 118#endif /* already included */ 119 120/* 121vi:ts=4:et 122*/ 123 124