Blame include/lzo/lzo1z.h

Packit 679830
/* lzo1z.h -- public interface of the LZO1Z compression algorithm
Packit 679830
Packit 679830
   This file is part of the LZO real-time data compression library.
Packit 679830
Packit 679830
   Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
Packit 679830
   All Rights Reserved.
Packit 679830
Packit 679830
   The LZO library is free software; you can redistribute it and/or
Packit 679830
   modify it under the terms of the GNU General Public License as
Packit 679830
   published by the Free Software Foundation; either version 2 of
Packit 679830
   the License, or (at your option) any later version.
Packit 679830
Packit 679830
   The LZO library is distributed in the hope that it will be useful,
Packit 679830
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 679830
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 679830
   GNU General Public License for more details.
Packit 679830
Packit 679830
   You should have received a copy of the GNU General Public License
Packit 679830
   along with the LZO library; see the file COPYING.
Packit 679830
   If not, write to the Free Software Foundation, Inc.,
Packit 679830
   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Packit 679830
Packit 679830
   Markus F.X.J. Oberhumer
Packit 679830
   <markus@oberhumer.com>
Packit 679830
   http://www.oberhumer.com/opensource/lzo/
Packit 679830
 */
Packit 679830
Packit 679830
Packit 679830
#ifndef __LZO1Z_H_INCLUDED
Packit 679830
#define __LZO1Z_H_INCLUDED 1
Packit 679830
Packit 679830
#ifndef __LZOCONF_H_INCLUDED
Packit 679830
#include "lzoconf.h"
Packit 679830
#endif
Packit 679830
Packit 679830
#ifdef __cplusplus
Packit 679830
extern "C" {
Packit 679830
#endif
Packit 679830
Packit 679830
Packit 679830
/***********************************************************************
Packit 679830
//
Packit 679830
************************************************************************/
Packit 679830
Packit 679830
/* Memory required for the wrkmem parameter.
Packit 679830
 * When the required size is 0, you can also pass a NULL pointer.
Packit 679830
 */
Packit 679830
Packit 679830
#define LZO1Z_MEM_DECOMPRESS    (0)
Packit 679830
Packit 679830
Packit 679830
/* decompression */
Packit 679830
LZO_EXTERN(int)
Packit 679830
lzo1z_decompress        ( const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                lzo_voidp wrkmem /* NOT USED */ );
Packit 679830
Packit 679830
/* safe decompression with overrun testing */
Packit 679830
LZO_EXTERN(int)
Packit 679830
lzo1z_decompress_safe   ( const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                lzo_voidp wrkmem /* NOT USED */ );
Packit 679830
Packit 679830
Packit 679830
/***********************************************************************
Packit 679830
// better compression ratio at the cost of more memory and time
Packit 679830
************************************************************************/
Packit 679830
Packit 679830
#define LZO1Z_999_MEM_COMPRESS  ((lzo_uint32_t) (14 * 16384L * sizeof(short)))
Packit 679830
Packit 679830
LZO_EXTERN(int)
Packit 679830
lzo1z_999_compress      ( const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                lzo_voidp wrkmem );
Packit 679830
Packit 679830
Packit 679830
/***********************************************************************
Packit 679830
//
Packit 679830
************************************************************************/
Packit 679830
Packit 679830
LZO_EXTERN(int)
Packit 679830
lzo1z_999_compress_dict     ( const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                    lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                    lzo_voidp wrkmem,
Packit 679830
                              const lzo_bytep dict, lzo_uint dict_len );
Packit 679830
Packit 679830
LZO_EXTERN(int)
Packit 679830
lzo1z_999_compress_level    ( const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                    lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                    lzo_voidp wrkmem,
Packit 679830
                              const lzo_bytep dict, lzo_uint dict_len,
Packit 679830
                                    lzo_callback_p cb,
Packit 679830
                                    int compression_level );
Packit 679830
Packit 679830
LZO_EXTERN(int)
Packit 679830
lzo1z_decompress_dict_safe ( const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                   lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                   lzo_voidp wrkmem /* NOT USED */,
Packit 679830
                             const lzo_bytep dict, lzo_uint dict_len );
Packit 679830
Packit 679830
Packit 679830
#ifdef __cplusplus
Packit 679830
} /* extern "C" */
Packit 679830
#endif
Packit 679830
Packit 679830
#endif /* already included */
Packit 679830
Packit 679830
Packit 679830
/* vim:set ts=4 sw=4 et: */