Blame src/config1b.h

Packit Service 5195f2
/* config1b.h -- configuration for the LZO1B algorithm
Packit Service 5195f2
Packit Service 5195f2
   This file is part of the LZO real-time data compression library.
Packit Service 5195f2
Packit Service 5195f2
   Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
Packit Service 5195f2
   All Rights Reserved.
Packit Service 5195f2
Packit Service 5195f2
   The LZO library is free software; you can redistribute it and/or
Packit Service 5195f2
   modify it under the terms of the GNU General Public License as
Packit Service 5195f2
   published by the Free Software Foundation; either version 2 of
Packit Service 5195f2
   the License, or (at your option) any later version.
Packit Service 5195f2
Packit Service 5195f2
   The LZO library is distributed in the hope that it will be useful,
Packit Service 5195f2
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 5195f2
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 5195f2
   GNU General Public License for more details.
Packit Service 5195f2
Packit Service 5195f2
   You should have received a copy of the GNU General Public License
Packit Service 5195f2
   along with the LZO library; see the file COPYING.
Packit Service 5195f2
   If not, write to the Free Software Foundation, Inc.,
Packit Service 5195f2
   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Packit Service 5195f2
Packit Service 5195f2
   Markus F.X.J. Oberhumer
Packit Service 5195f2
   <markus@oberhumer.com>
Packit Service 5195f2
   http://www.oberhumer.com/opensource/lzo/
Packit Service 5195f2
 */
Packit Service 5195f2
Packit Service 5195f2
Packit Service 5195f2
/* WARNING: this file should *not* be used by applications. It is
Packit Service 5195f2
   part of the implementation of the library and is subject
Packit Service 5195f2
   to change.
Packit Service 5195f2
 */
Packit Service 5195f2
Packit Service 5195f2
Packit Service 5195f2
#ifndef __LZO_CONFIG1B_H
Packit Service 5195f2
#define __LZO_CONFIG1B_H 1
Packit Service 5195f2
Packit Service 5195f2
#include "lzo_conf.h"
Packit Service 5195f2
#include "lzo/lzo1b.h"
Packit Service 5195f2
Packit Service 5195f2
Packit Service 5195f2
/***********************************************************************
Packit Service 5195f2
// algorithm configuration
Packit Service 5195f2
************************************************************************/
Packit Service 5195f2
Packit Service 5195f2
/* run bits (4 - 5) - the compressor and the decompressor
Packit Service 5195f2
 * must use the same value. */
Packit Service 5195f2
#if !defined(RBITS)
Packit Service 5195f2
#  define RBITS     5
Packit Service 5195f2
#endif
Packit Service 5195f2
Packit Service 5195f2
/* dictionary depth (0 - 6) - this only affects the compressor.
Packit Service 5195f2
 * 0 is fastest, 6 is best compression ratio */
Packit Service 5195f2
#if !defined(DDBITS)
Packit Service 5195f2
#  define DDBITS    0
Packit Service 5195f2
#endif
Packit Service 5195f2
Packit Service 5195f2
/* compression level (1 - 9) - this only affects the compressor.
Packit Service 5195f2
 * 1 is fastest, 9 is best compression ratio */
Packit Service 5195f2
#if !defined(CLEVEL)
Packit Service 5195f2
#  define CLEVEL    1           /* fastest by default */
Packit Service 5195f2
#endif
Packit Service 5195f2
Packit Service 5195f2
Packit Service 5195f2
/* check configuration */
Packit Service 5195f2
#if (RBITS < 4 || RBITS > 5)
Packit Service 5195f2
#  error "invalid RBITS"
Packit Service 5195f2
#endif
Packit Service 5195f2
#if (DDBITS < 0 || DDBITS > 6)
Packit Service 5195f2
#  error "invalid DDBITS"
Packit Service 5195f2
#endif
Packit Service 5195f2
#if (CLEVEL < 1 || CLEVEL > 9)
Packit Service 5195f2
#  error "invalid CLEVEL"
Packit Service 5195f2
#endif
Packit Service 5195f2
Packit Service 5195f2
Packit Service 5195f2
/***********************************************************************
Packit Service 5195f2
// internal configuration
Packit Service 5195f2
************************************************************************/
Packit Service 5195f2
Packit Service 5195f2
/* add a special code so that the decompressor can detect the
Packit Service 5195f2
 * end of the compressed data block (overhead is 3 bytes per block) */
Packit Service 5195f2
#define LZO_EOF_CODE 1
Packit Service 5195f2
Packit Service 5195f2
Packit Service 5195f2
/***********************************************************************
Packit Service 5195f2
// algorithm internal configuration
Packit Service 5195f2
************************************************************************/
Packit Service 5195f2
Packit Service 5195f2
/* choose the hashing strategy */
Packit Service 5195f2
#ifndef LZO_HASH
Packit Service 5195f2
#define LZO_HASH        LZO_HASH_LZO_INCREMENTAL_A
Packit Service 5195f2
#endif
Packit Service 5195f2
Packit Service 5195f2
/* config */
Packit Service 5195f2
#define R_BITS          RBITS
Packit Service 5195f2
#define DD_BITS         DDBITS
Packit Service 5195f2
#ifndef D_BITS
Packit Service 5195f2
#define D_BITS          14
Packit Service 5195f2
#endif
Packit Service 5195f2
Packit Service 5195f2
Packit Service 5195f2
/***********************************************************************
Packit Service 5195f2
// optimization and debugging
Packit Service 5195f2
************************************************************************/
Packit Service 5195f2
Packit Service 5195f2
/* Collect statistics */
Packit Service 5195f2
#if 0 && !defined(LZO_COLLECT_STATS)
Packit Service 5195f2
#  define LZO_COLLECT_STATS 1
Packit Service 5195f2
#endif
Packit Service 5195f2
Packit Service 5195f2
Packit Service 5195f2
/***********************************************************************
Packit Service 5195f2
//
Packit Service 5195f2
************************************************************************/
Packit Service 5195f2
Packit Service 5195f2
#include "lzo1b_de.h"
Packit Service 5195f2
#include "stats1b.h"
Packit Service 5195f2
Packit Service 5195f2
#include "lzo1b_cc.h"
Packit Service 5195f2
Packit Service 5195f2
Packit Service 5195f2
#endif /* already included */
Packit Service 5195f2
Packit Service 5195f2
/*
Packit Service 5195f2
vi:ts=4:et
Packit Service 5195f2
*/
Packit Service 5195f2