home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lzo100.zip / lzo-1.00 / include / lzo2a.h < prev    next >
C/C++ Source or Header  |  1997-07-13  |  2KB  |  80 lines

  1. /* lzo2a.h -- public interface of the LZO2A compression algorithm
  2.  
  3.    This file is part of the LZO real-time data compression library.
  4.  
  5.    Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
  6.    Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
  7.  
  8.    The LZO library is free software; you can redistribute it and/or
  9.    modify it under the terms of the GNU General Public License as
  10.    published by the Free Software Foundation; either version 2 of
  11.    the License, or (at your option) any later version.
  12.  
  13.    The LZO library is distributed in the hope that it will be useful,
  14.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.    GNU General Public License for more details.
  17.  
  18.    You should have received a copy of the GNU General Public License
  19.    along with the LZO library; see the file COPYING.
  20.    If not, write to the Free Software Foundation, Inc.,
  21.    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  22.  
  23.    Markus F.X.J. Oberhumer
  24.    markus.oberhumer@jk.uni-linz.ac.at
  25.  */
  26.  
  27.  
  28. #ifndef __LZO2A_H
  29. #define __LZO2A_H
  30.  
  31. #ifndef __LZOCONF_H
  32. #include <lzoconf.h>
  33. #endif
  34.  
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38.  
  39.  
  40. /***********************************************************************
  41. //
  42. ************************************************************************/
  43.  
  44. #define LZO2A_MEM_DECOMPRESS    (0)
  45.  
  46. /* decompression */
  47. LZO_EXTERN(int)
  48. lzo2a_decompress        ( const lzo_byte *src, lzo_uint  src_len,
  49.                                 lzo_byte *dst, lzo_uint *dst_len,
  50.                                 lzo_voidp wrkmem /* NOT USED */ );
  51.  
  52. /* safe decompression with overrun testing */
  53. LZO_EXTERN(int)
  54. lzo2a_decompress_safe   ( const lzo_byte *src, lzo_uint  src_len,
  55.                                 lzo_byte *dst, lzo_uint *dst_len,
  56.                                 lzo_voidp wrkmem /* NOT USED */ );
  57.  
  58.  
  59. /***********************************************************************
  60. // better compression ratio at the cost of more memory and time
  61. ************************************************************************/
  62.  
  63. #define LZO2A_999_MEM_COMPRESS  ((lzo_uint) (8 * 16384L * sizeof(short)))
  64.  
  65. #if !defined(LZO_999_UNSUPPORTED)
  66. LZO_EXTERN(int)
  67. lzo2a_999_compress      ( const lzo_byte *src, lzo_uint  src_len,
  68.                                 lzo_byte *dst, lzo_uint *dst_len,
  69.                                 lzo_voidp wrkmem );
  70. #endif
  71.  
  72.  
  73.  
  74. #ifdef __cplusplus
  75. } /* extern "C" */
  76. #endif
  77.  
  78. #endif /* already included */
  79.  
  80.