lzo2a.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* lzo2a.h -- public interface of the LZO2A compression algorithm
  2. This file is part of the LZO real-time data compression library.
  3. Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
  4. All Rights Reserved.
  5. The LZO library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of
  8. the License, or (at your option) any later version.
  9. The LZO library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with the LZO library; see the file COPYING.
  15. If not, write to the Free Software Foundation, Inc.,
  16. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. Markus F.X.J. Oberhumer
  18. <markus@oberhumer.com>
  19. http://www.oberhumer.com/opensource/lzo/
  20. */
  21. #ifndef __LZO2A_H_INCLUDED
  22. #define __LZO2A_H_INCLUDED 1
  23. #ifndef __LZOCONF_H_INCLUDED
  24. #include <lzo/lzoconf.h>
  25. #endif
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. /***********************************************************************
  30. //
  31. ************************************************************************/
  32. #define LZO2A_MEM_DECOMPRESS (0)
  33. /* decompression */
  34. LZO_EXTERN(int)
  35. lzo2a_decompress ( const lzo_bytep src, lzo_uint src_len,
  36. lzo_bytep dst, lzo_uintp dst_len,
  37. lzo_voidp wrkmem /* NOT USED */ );
  38. /* safe decompression with overrun testing */
  39. LZO_EXTERN(int)
  40. lzo2a_decompress_safe ( const lzo_bytep src, lzo_uint src_len,
  41. lzo_bytep dst, lzo_uintp dst_len,
  42. lzo_voidp wrkmem /* NOT USED */ );
  43. /***********************************************************************
  44. // better compression ratio at the cost of more memory and time
  45. ************************************************************************/
  46. #define LZO2A_999_MEM_COMPRESS ((lzo_uint32_t) (8 * 16384L * sizeof(short)))
  47. LZO_EXTERN(int)
  48. lzo2a_999_compress ( const lzo_bytep src, lzo_uint src_len,
  49. lzo_bytep dst, lzo_uintp dst_len,
  50. lzo_voidp wrkmem );
  51. #ifdef __cplusplus
  52. } /* extern "C" */
  53. #endif
  54. #endif /* already included */
  55. /* vim:set ts=4 sw=4 et: */