author | peter1138 |
Sun, 03 Aug 2008 17:35:08 +0000 | |
changeset 9834 | 7474149531c1 |
parent 9111 | 48ce04029fe4 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
9111
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
3 |
/** |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
4 |
* @file minilzo.h Mini subset of the LZO real-time data compression library |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
5 |
* |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
6 |
* This file is part of the LZO real-time data compression library. |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
7 |
* |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
8 |
* Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
9 |
* Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
10 |
* Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
11 |
* Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
12 |
* Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
13 |
* Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
14 |
* Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
15 |
* All Rights Reserved. |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
16 |
* |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
17 |
* The LZO library is free software; you can redistribute it and/or |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
18 |
* modify it under the terms of the GNU General Public License as |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
19 |
* published by the Free Software Foundation; either version 2 of |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
20 |
* the License, or (at your option) any later version. |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
21 |
* |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
22 |
* The LZO library is distributed in the hope that it will be useful, |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
23 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
24 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
25 |
* GNU General Public License for more details. |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
26 |
* |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
27 |
* You should have received a copy of the GNU General Public License |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
28 |
* along with the LZO library; see the file COPYING. |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
29 |
* If not, write to the Free Software Foundation, Inc., |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
30 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
31 |
* |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
32 |
* Markus F.X.J. Oberhumer |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
33 |
* <markus@oberhumer.com> |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
34 |
* http://www.oberhumer.com/opensource/lzo/ |
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
6201
diff
changeset
|
35 |
* |
0 | 36 |
* NOTE: |
37 |
* the full LZO package can be found at |
|
38 |
* http://www.oberhumer.com/opensource/lzo/ |
|
39 |
*/ |
|
40 |
||
2436
7d5df545bd5d
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents:
2186
diff
changeset
|
41 |
#ifndef MINILZO_H |
7d5df545bd5d
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents:
2186
diff
changeset
|
42 |
#define MINILZO_H |
0 | 43 |
|
44 |
#define MINILZO_VERSION 0x1080 |
|
45 |
||
46 |
#ifdef __LZOCONF_H |
|
47 |
# error "you cannot use both LZO and miniLZO" |
|
48 |
#endif |
|
49 |
||
50 |
#undef LZO_HAVE_CONFIG_H |
|
51 |
#include "lzoconf.h" |
|
52 |
||
53 |
#if !defined(LZO_VERSION) || (LZO_VERSION != MINILZO_VERSION) |
|
54 |
# error "version mismatch in header files" |
|
55 |
#endif |
|
56 |
||
57 |
||
58 |
#ifdef __cplusplus |
|
59 |
extern "C" { |
|
60 |
#endif |
|
61 |
||
62 |
||
63 |
/* Memory required for the wrkmem parameter. |
|
64 |
* When the required size is 0, you can also pass a NULL pointer. |
|
65 |
*/ |
|
66 |
||
67 |
#define LZO1X_MEM_COMPRESS LZO1X_1_MEM_COMPRESS |
|
68 |
#define LZO1X_1_MEM_COMPRESS ((lzo_uint32) (16384L * lzo_sizeof_dict_t)) |
|
69 |
#define LZO1X_MEM_DECOMPRESS (0) |
|
70 |
||
71 |
||
72 |
/* compression */ |
|
73 |
LZO_EXTERN(int) |
|
74 |
lzo1x_1_compress ( const lzo_byte *src, lzo_uint src_len, |
|
75 |
lzo_byte *dst, lzo_uintp dst_len, |
|
76 |
lzo_voidp wrkmem ); |
|
77 |
||
78 |
/* decompression */ |
|
79 |
LZO_EXTERN(int) |
|
80 |
lzo1x_decompress ( const lzo_byte *src, lzo_uint src_len, |
|
81 |
lzo_byte *dst, lzo_uintp dst_len, |
|
82 |
lzo_voidp wrkmem /* NOT USED */ ); |
|
83 |
||
84 |
/* safe decompression with overrun testing */ |
|
85 |
LZO_EXTERN(int) |
|
86 |
lzo1x_decompress_safe ( const lzo_byte *src, lzo_uint src_len, |
|
87 |
lzo_byte *dst, lzo_uintp dst_len, |
|
88 |
lzo_voidp wrkmem /* NOT USED */ ); |
|
89 |
||
90 |
||
91 |
#ifdef __cplusplus |
|
92 |
} /* extern "C" */ |
|
93 |
#endif |
|
94 |
||
2436
7d5df545bd5d
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents:
2186
diff
changeset
|
95 |
#endif /* MINILZO_H */ |