lzoruby 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. data/{README.txt → README} +3 -7
  2. data/ext/extconf.rb +4 -1
  3. metadata +24 -131
  4. data/ext/compr1b.h +0 -81
  5. data/ext/compr1c.h +0 -81
  6. data/ext/config1.h +0 -61
  7. data/ext/config1a.h +0 -196
  8. data/ext/config1b.h +0 -140
  9. data/ext/config1c.h +0 -145
  10. data/ext/config1f.h +0 -97
  11. data/ext/config1x.h +0 -118
  12. data/ext/config1y.h +0 -66
  13. data/ext/config1z.h +0 -65
  14. data/ext/config2a.h +0 -155
  15. data/ext/lzo/lzo1.h +0 -96
  16. data/ext/lzo/lzo1a.h +0 -96
  17. data/ext/lzo/lzo1b.h +0 -160
  18. data/ext/lzo/lzo1c.h +0 -160
  19. data/ext/lzo/lzo1f.h +0 -108
  20. data/ext/lzo/lzo1x.h +0 -177
  21. data/ext/lzo/lzo1y.h +0 -145
  22. data/ext/lzo/lzo1z.h +0 -150
  23. data/ext/lzo/lzo2a.h +0 -92
  24. data/ext/lzo/lzo_asm.h +0 -139
  25. data/ext/lzo/lzoconf.h +0 -417
  26. data/ext/lzo/lzodefs.h +0 -1807
  27. data/ext/lzo/lzoutil.h +0 -73
  28. data/ext/lzo1.c +0 -635
  29. data/ext/lzo1_99.c +0 -130
  30. data/ext/lzo1_cm.ch +0 -52
  31. data/ext/lzo1_d.ch +0 -155
  32. data/ext/lzo1a.c +0 -657
  33. data/ext/lzo1a_99.c +0 -130
  34. data/ext/lzo1a_cm.ch +0 -242
  35. data/ext/lzo1a_cr.ch +0 -128
  36. data/ext/lzo1a_de.h +0 -158
  37. data/ext/lzo1b_1.c +0 -46
  38. data/ext/lzo1b_2.c +0 -46
  39. data/ext/lzo1b_3.c +0 -46
  40. data/ext/lzo1b_4.c +0 -46
  41. data/ext/lzo1b_5.c +0 -46
  42. data/ext/lzo1b_6.c +0 -46
  43. data/ext/lzo1b_7.c +0 -46
  44. data/ext/lzo1b_8.c +0 -46
  45. data/ext/lzo1b_9.c +0 -46
  46. data/ext/lzo1b_99.c +0 -49
  47. data/ext/lzo1b_9x.c +0 -365
  48. data/ext/lzo1b_c.ch +0 -270
  49. data/ext/lzo1b_cc.c +0 -167
  50. data/ext/lzo1b_cc.h +0 -93
  51. data/ext/lzo1b_cm.ch +0 -294
  52. data/ext/lzo1b_cr.ch +0 -126
  53. data/ext/lzo1b_d.ch +0 -282
  54. data/ext/lzo1b_d1.c +0 -46
  55. data/ext/lzo1b_d2.c +0 -46
  56. data/ext/lzo1b_de.h +0 -344
  57. data/ext/lzo1b_r.ch +0 -117
  58. data/ext/lzo1b_rr.c +0 -43
  59. data/ext/lzo1b_sm.ch +0 -210
  60. data/ext/lzo1b_tm.ch +0 -99
  61. data/ext/lzo1b_xx.c +0 -98
  62. data/ext/lzo1c_1.c +0 -46
  63. data/ext/lzo1c_2.c +0 -46
  64. data/ext/lzo1c_3.c +0 -46
  65. data/ext/lzo1c_4.c +0 -46
  66. data/ext/lzo1c_5.c +0 -46
  67. data/ext/lzo1c_6.c +0 -46
  68. data/ext/lzo1c_7.c +0 -46
  69. data/ext/lzo1c_8.c +0 -46
  70. data/ext/lzo1c_9.c +0 -46
  71. data/ext/lzo1c_99.c +0 -49
  72. data/ext/lzo1c_9x.c +0 -379
  73. data/ext/lzo1c_cc.c +0 -167
  74. data/ext/lzo1c_cc.h +0 -93
  75. data/ext/lzo1c_d1.c +0 -46
  76. data/ext/lzo1c_d2.c +0 -46
  77. data/ext/lzo1c_rr.c +0 -43
  78. data/ext/lzo1c_xx.c +0 -98
  79. data/ext/lzo1f_1.c +0 -312
  80. data/ext/lzo1f_9x.c +0 -345
  81. data/ext/lzo1f_d.ch +0 -223
  82. data/ext/lzo1f_d1.c +0 -46
  83. data/ext/lzo1f_d2.c +0 -46
  84. data/ext/lzo1x_1.c +0 -50
  85. data/ext/lzo1x_1k.c +0 -50
  86. data/ext/lzo1x_1l.c +0 -50
  87. data/ext/lzo1x_1o.c +0 -50
  88. data/ext/lzo1x_9x.c +0 -881
  89. data/ext/lzo1x_c.ch +0 -351
  90. data/ext/lzo1x_d.ch +0 -466
  91. data/ext/lzo1x_d1.c +0 -46
  92. data/ext/lzo1x_d2.c +0 -46
  93. data/ext/lzo1x_d3.c +0 -108
  94. data/ext/lzo1x_o.c +0 -45
  95. data/ext/lzo1x_oo.ch +0 -366
  96. data/ext/lzo1y_1.c +0 -50
  97. data/ext/lzo1y_9x.c +0 -42
  98. data/ext/lzo1y_d1.c +0 -46
  99. data/ext/lzo1y_d2.c +0 -46
  100. data/ext/lzo1y_d3.c +0 -45
  101. data/ext/lzo1y_o.c +0 -45
  102. data/ext/lzo1z_9x.c +0 -42
  103. data/ext/lzo1z_d1.c +0 -46
  104. data/ext/lzo1z_d2.c +0 -46
  105. data/ext/lzo1z_d3.c +0 -45
  106. data/ext/lzo2a_9x.c +0 -357
  107. data/ext/lzo2a_d.ch +0 -188
  108. data/ext/lzo2a_d1.c +0 -46
  109. data/ext/lzo2a_d2.c +0 -46
  110. data/ext/lzo_conf.h +0 -323
  111. data/ext/lzo_crc.c +0 -167
  112. data/ext/lzo_dict.h +0 -316
  113. data/ext/lzo_dll.ch +0 -64
  114. data/ext/lzo_init.c +0 -176
  115. data/ext/lzo_mchw.ch +0 -242
  116. data/ext/lzo_ptr.c +0 -92
  117. data/ext/lzo_ptr.h +0 -154
  118. data/ext/lzo_str.c +0 -71
  119. data/ext/lzo_swd.ch +0 -707
  120. data/ext/lzo_util.c +0 -165
  121. data/ext/miniacc.h +0 -6553
  122. data/ext/stats1a.h +0 -137
  123. data/ext/stats1b.h +0 -142
  124. data/ext/stats1c.h +0 -61
@@ -1,270 +0,0 @@
1
- /* lzo1b_c.ch -- implementation of the LZO1B compression algorithm
2
-
3
- This file is part of the LZO real-time data compression library.
4
-
5
- Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
6
- Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
7
- Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
8
- Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer
9
- Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer
10
- Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
11
- Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
12
- Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
13
- Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
14
- Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
15
- Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
16
- Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
17
- Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
18
- All Rights Reserved.
19
-
20
- The LZO library is free software; you can redistribute it and/or
21
- modify it under the terms of the GNU General Public License as
22
- published by the Free Software Foundation; either version 2 of
23
- the License, or (at your option) any later version.
24
-
25
- The LZO library is distributed in the hope that it will be useful,
26
- but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
- GNU General Public License for more details.
29
-
30
- You should have received a copy of the GNU General Public License
31
- along with the LZO library; see the file COPYING.
32
- If not, write to the Free Software Foundation, Inc.,
33
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34
-
35
- Markus F.X.J. Oberhumer
36
- <markus@oberhumer.com>
37
- http://www.oberhumer.com/opensource/lzo/
38
- */
39
-
40
-
41
-
42
- /***********************************************************************
43
- //
44
- ************************************************************************/
45
-
46
- #if !defined(LZO_HAVE_R1) && !defined(LZO_NO_R1)
47
- # define LZO_HAVE_R1
48
- #endif
49
-
50
- #if !defined(LZO_HAVE_M3) && !defined(LZO_NO_M3)
51
- # if (M3O_BITS < 8)
52
- # define LZO_HAVE_M3
53
- # endif
54
- #endif
55
-
56
-
57
- #define MI
58
- #define SI MI
59
- #if (DD_BITS > 0)
60
- #define DI ++ii; DVAL_NEXT(dv,ii); UPDATE_D(dict,drun,dv,ii,in); MI
61
- #define XI assert(ii < ip); ii = ip; DVAL_FIRST(dv,(ip));
62
- #else
63
- #define DI ++ii; DINDEX1(dindex,ii); UPDATE_I(dict,0,dindex,ii,in); MI
64
- #define XI assert(ii < ip); ii = ip;
65
- #endif
66
-
67
-
68
- /***********************************************************************
69
- // compress a block of data.
70
- //
71
- // I really apologize for this spaghetti code.
72
- ************************************************************************/
73
-
74
- LZO_PRIVATE(int)
75
- do_compress ( const lzo_bytep in , lzo_uint in_len,
76
- lzo_bytep out, lzo_uintp out_len,
77
- lzo_voidp wrkmem )
78
- {
79
- register const lzo_bytep ip;
80
- #if (DD_BITS > 0)
81
- #if defined(__LZO_HASH_INCREMENTAL)
82
- lzo_xint dv;
83
- #endif
84
- unsigned drun = 0;
85
- #endif
86
- lzo_bytep op;
87
- const lzo_bytep const in_end = in + in_len;
88
- const lzo_bytep const ip_end = in + in_len - MIN_LOOKAHEAD;
89
- const lzo_bytep ii;
90
- #if defined(LZO_HAVE_R1)
91
- const lzo_bytep r1 = ip_end; /* pointer for R1 match (none yet) */
92
- #endif
93
- #if defined(LZO_HAVE_M3)
94
- lzo_bytep m3 = out + 1; /* pointer after last m3/m4 match */
95
- #endif
96
-
97
- lzo_dict_p const dict = (lzo_dict_p) wrkmem;
98
-
99
-
100
- #if defined(LZO_COLLECT_STATS)
101
- lzo_stats->r_bits = R_BITS;
102
- lzo_stats->m3o_bits = M3O_BITS;
103
- lzo_stats->dd_bits = DD_BITS;
104
- lzo_stats->clevel = CLEVEL;
105
- lzo_stats->d_bits = D_BITS;
106
- lzo_stats->min_lookahead = MIN_LOOKAHEAD;
107
- lzo_stats->max_lookbehind = MAX_LOOKBEHIND;
108
- lzo_stats->compress_id = LZO_CPP_MACRO_EXPAND(COMPRESS_ID);
109
- #endif
110
-
111
- /* init dictionary */
112
- #if defined(LZO_DETERMINISTIC)
113
- BZERO8_PTR(wrkmem,sizeof(lzo_dict_t),D_SIZE);
114
- #endif
115
-
116
-
117
- op = out;
118
- ip = in;
119
- ii = ip; /* point to start of current literal run */
120
-
121
-
122
- #if (DD_BITS > 0)
123
- DVAL_FIRST(dv,ip);
124
- UPDATE_D(dict,drun,dv,ip,in);
125
- ip++;
126
- DVAL_NEXT(dv,ip);
127
- #else
128
- ip++;
129
- #endif
130
-
131
- assert(ip < ip_end);
132
- for (;;)
133
- {
134
- const lzo_bytep m_pos;
135
- #if !defined(NDEBUG)
136
- const lzo_bytep m_pos_sav = NULL;
137
- #endif
138
- lzo_uint m_off;
139
- #if (DD_BITS == 0)
140
- lzo_uint dindex;
141
- #endif
142
- lzo_uint m_len;
143
-
144
-
145
- /***********************************************************************
146
- // search for a match
147
- ************************************************************************/
148
-
149
- #if !defined(LZO_SEARCH_MATCH_INCLUDE_FILE)
150
- # define LZO_SEARCH_MATCH_INCLUDE_FILE "lzo1b_sm.ch"
151
- #endif
152
-
153
- #include LZO_SEARCH_MATCH_INCLUDE_FILE
154
-
155
-
156
- #if !defined(LZO_TEST_MATCH_INCLUDE_FILE)
157
- # define LZO_TEST_MATCH_INCLUDE_FILE "lzo1b_tm.ch"
158
- #endif
159
-
160
- #include LZO_TEST_MATCH_INCLUDE_FILE
161
-
162
-
163
-
164
- /***********************************************************************
165
- // found a literal
166
- ************************************************************************/
167
-
168
-
169
- /* a literal */
170
- literal:
171
- #if (DD_BITS == 0)
172
- UPDATE_I(dict,0,dindex,ip,in);
173
- #endif
174
- if (++ip >= ip_end)
175
- break;
176
- #if (DD_BITS > 0)
177
- DVAL_NEXT(dv,ip);
178
- #endif
179
- continue;
180
-
181
-
182
-
183
- /***********************************************************************
184
- // found a match
185
- ************************************************************************/
186
-
187
- match:
188
- #if (DD_BITS == 0)
189
- UPDATE_I(dict,0,dindex,ip,in);
190
- #endif
191
- /* we have found a match of at least M2_MIN_LEN */
192
-
193
-
194
- #if !defined(LZO_CODE_RUN_INCLUDE_FILE)
195
- # define LZO_CODE_RUN_INCLUDE_FILE "lzo1b_cr.ch"
196
- #endif
197
-
198
- #include LZO_CODE_RUN_INCLUDE_FILE
199
-
200
-
201
- /* ii now points to the start of the current match */
202
- assert(ii == ip);
203
-
204
-
205
- /***********************************************************************
206
- // code the match
207
- ************************************************************************/
208
-
209
- #if !defined(LZO_CODE_MATCH_INCLUDE_FILE)
210
- # define LZO_CODE_MATCH_INCLUDE_FILE "lzo1b_cm.ch"
211
- #endif
212
-
213
- #include LZO_CODE_MATCH_INCLUDE_FILE
214
-
215
-
216
- /* ii now points to the start of the next literal run */
217
- assert(ii == ip);
218
-
219
- }
220
-
221
-
222
- /***********************************************************************
223
- // end of block
224
- ************************************************************************/
225
-
226
- assert(ip <= in_end);
227
-
228
- #if defined(LZO_COLLECT_STATS)
229
- {
230
- lzo_uint i;
231
- const lzo_bytep p;
232
-
233
- for (i = 0; i < D_SIZE; i++)
234
- {
235
- p = dict[i];
236
- if (BOUNDS_CHECKING_OFF_IN_EXPR(p == NULL || p < in || p > in_end))
237
- lzo_stats->unused_dict_entries++;
238
- }
239
- lzo_stats->unused_dict_entries_percent =
240
- 100.0 * lzo_stats->unused_dict_entries / D_SIZE;
241
- }
242
- #endif
243
-
244
-
245
- #if defined(LZO_RETURN_IF_NOT_COMPRESSIBLE)
246
- /* return if op == out to indicate that we
247
- * couldn't compress and didn't copy anything.
248
- */
249
- if (op == out)
250
- {
251
- *out_len = 0;
252
- return LZO_E_NOT_COMPRESSIBLE;
253
- }
254
- #endif
255
-
256
- /* store the final literal run */
257
- if (pd(in_end,ii) > 0)
258
- {
259
- lzo_uint t = pd(in_end,ii);
260
- op = STORE_RUN(op,ii,t);
261
- }
262
-
263
- *out_len = pd(op, out);
264
- return LZO_E_OK; /* compression went ok */
265
- }
266
-
267
-
268
- /*
269
- vi:ts=4:et
270
- */
@@ -1,167 +0,0 @@
1
- /* lzo1b_cc.c -- LZO1B compression internal entry point
2
-
3
- This file is part of the LZO real-time data compression library.
4
-
5
- Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
6
- Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
7
- Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
8
- Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer
9
- Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer
10
- Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
11
- Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
12
- Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
13
- Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
14
- Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
15
- Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
16
- Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
17
- Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
18
- All Rights Reserved.
19
-
20
- The LZO library is free software; you can redistribute it and/or
21
- modify it under the terms of the GNU General Public License as
22
- published by the Free Software Foundation; either version 2 of
23
- the License, or (at your option) any later version.
24
-
25
- The LZO library is distributed in the hope that it will be useful,
26
- but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
- GNU General Public License for more details.
29
-
30
- You should have received a copy of the GNU General Public License
31
- along with the LZO library; see the file COPYING.
32
- If not, write to the Free Software Foundation, Inc.,
33
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34
-
35
- Markus F.X.J. Oberhumer
36
- <markus@oberhumer.com>
37
- http://www.oberhumer.com/opensource/lzo/
38
- */
39
-
40
-
41
- #define LZO_NEED_DICT_H
42
- #include "config1b.h"
43
-
44
-
45
- /***********************************************************************
46
- // compression internal entry point.
47
- ************************************************************************/
48
-
49
- int _lzo1b_do_compress ( const lzo_bytep in, lzo_uint in_len,
50
- lzo_bytep out, lzo_uintp out_len,
51
- lzo_voidp wrkmem,
52
- lzo_compress_t func )
53
- {
54
- int r;
55
- #if defined(LZO_TEST_COMPRESS_OVERRUN)
56
- lzo_uint avail_out = *out_len;
57
- #endif
58
-
59
-
60
- #if defined(LZO_COLLECT_STATS)
61
- _lzo1b_stats_init(lzo_stats);
62
- lzo_stats->in_len = in_len;
63
- #endif
64
-
65
-
66
- /* don't try to compress a block that's too short */
67
- if (in_len <= 0)
68
- {
69
- *out_len = 0;
70
- r = LZO_E_OK;
71
- }
72
- else if (in_len <= MIN_LOOKAHEAD + 1)
73
- {
74
- #if defined(LZO_RETURN_IF_NOT_COMPRESSIBLE)
75
- *out_len = 0;
76
- r = LZO_E_NOT_COMPRESSIBLE;
77
- #else
78
- *out_len = pd(STORE_RUN(out,in,in_len), out);
79
- r = (*out_len > in_len) ? LZO_E_OK : LZO_E_ERROR;
80
- #endif
81
- }
82
- else
83
- r = func(in,in_len,out,out_len,wrkmem);
84
-
85
-
86
- #if defined(LZO_EOF_CODE)
87
- #if defined(LZO_TEST_COMPRESS_OVERRUN)
88
- if (r == LZO_E_OK && avail_out - *out_len < 3)
89
- r = LZO_E_COMPRESS_OVERRUN;
90
- #endif
91
- if (r == LZO_E_OK)
92
- {
93
- lzo_bytep op = out + *out_len;
94
- *op++ = M3_MARKER | 1;
95
- *op++ = 0;
96
- *op++ = 0;
97
- *out_len += 3;
98
- }
99
- #endif
100
-
101
-
102
- #if defined(LZO_COLLECT_STATS)
103
- lzo_stats->out_len = *out_len;
104
- lzo_stats->match_bytes =
105
- 1 * lzo_stats->m1_matches + 2 * lzo_stats->m2_matches +
106
- 3 * lzo_stats->m3_matches + 4 * lzo_stats->m4_matches;
107
- _lzo1b_stats_calc(lzo_stats);
108
- #endif
109
-
110
- return r;
111
- }
112
-
113
-
114
- /***********************************************************************
115
- // note: this is not thread safe, but as it is used for finetuning only
116
- // we don't care
117
- ************************************************************************/
118
-
119
- #undef lzo_stats
120
- /* lzo_stats_t is still defined */
121
-
122
-
123
- #if defined(LZO_COLLECT_STATS)
124
-
125
- static lzo_stats_t lzo_statistics;
126
- lzo_stats_t * const lzo1b_stats = &lzo_statistics;
127
-
128
-
129
- void _lzo1b_stats_init(lzo_stats_t *lzo_stats)
130
- {
131
- lzo_memset(lzo_stats,0,sizeof(*lzo_stats));
132
- }
133
-
134
-
135
- void _lzo1b_stats_calc(lzo_stats_t *lzo_stats)
136
- {
137
- lzo_stats->matches =
138
- lzo_stats->m1_matches + lzo_stats->m2_matches +
139
- lzo_stats->m3_matches + lzo_stats->m4_matches;
140
-
141
- lzo_stats->literal_overhead = lzo_stats->lit_runs +
142
- 2 * (lzo_stats->r0short_runs + lzo_stats->r0fast_runs +
143
- lzo_stats->r0long_runs);
144
- lzo_stats->literal_bytes = lzo_stats->literals +
145
- lzo_stats->literal_overhead;
146
-
147
- #if 0
148
- assert(lzo_stats->match_bytes + lzo_stats->literal_bytes ==
149
- lzo_stats->out_len);
150
- #endif
151
-
152
- lzo_stats->m2_matches -= lzo_stats->r1_matches;
153
- lzo_stats->m2_match[M2_MIN_LEN] -= lzo_stats->r1_matches;
154
-
155
- if (lzo_stats->literals > 0)
156
- lzo_stats->literal_overhead_percent =
157
- 100.0 * lzo_stats->literal_overhead / lzo_stats->literals;
158
- }
159
-
160
-
161
- #endif
162
-
163
-
164
- /*
165
- vi:ts=4:et
166
- */
167
-
@@ -1,93 +0,0 @@
1
- /* lzo1b_cc.h -- definitions for the the LZO1B compression driver
2
-
3
- This file is part of the LZO real-time data compression library.
4
-
5
- Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
6
- Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
7
- Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
8
- Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer
9
- Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer
10
- Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
11
- Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
12
- Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
13
- Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
14
- Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
15
- Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
16
- Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
17
- Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
18
- All Rights Reserved.
19
-
20
- The LZO library is free software; you can redistribute it and/or
21
- modify it under the terms of the GNU General Public License as
22
- published by the Free Software Foundation; either version 2 of
23
- the License, or (at your option) any later version.
24
-
25
- The LZO library is distributed in the hope that it will be useful,
26
- but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
- GNU General Public License for more details.
29
-
30
- You should have received a copy of the GNU General Public License
31
- along with the LZO library; see the file COPYING.
32
- If not, write to the Free Software Foundation, Inc.,
33
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34
-
35
- Markus F.X.J. Oberhumer
36
- <markus@oberhumer.com>
37
- http://www.oberhumer.com/opensource/lzo/
38
- */
39
-
40
-
41
- /* WARNING: this file should *not* be used by applications. It is
42
- part of the implementation of the library and is subject
43
- to change.
44
- */
45
-
46
-
47
- #ifndef __LZO1B_CC_H
48
- #define __LZO1B_CC_H
49
-
50
-
51
- /***********************************************************************
52
- //
53
- ************************************************************************/
54
-
55
- extern const lzo_compress_t _lzo1b_1_compress_func;
56
- extern const lzo_compress_t _lzo1b_2_compress_func;
57
- extern const lzo_compress_t _lzo1b_3_compress_func;
58
- extern const lzo_compress_t _lzo1b_4_compress_func;
59
- extern const lzo_compress_t _lzo1b_5_compress_func;
60
- extern const lzo_compress_t _lzo1b_6_compress_func;
61
- extern const lzo_compress_t _lzo1b_7_compress_func;
62
- extern const lzo_compress_t _lzo1b_8_compress_func;
63
- extern const lzo_compress_t _lzo1b_9_compress_func;
64
-
65
- extern const lzo_compress_t _lzo1b_99_compress_func;
66
-
67
-
68
- /***********************************************************************
69
- //
70
- ************************************************************************/
71
-
72
- LZO_EXTERN(lzo_bytep )
73
- _lzo1b_store_run ( lzo_bytep const oo, const lzo_bytep const ii,
74
- lzo_uint r_len);
75
-
76
- #define STORE_RUN _lzo1b_store_run
77
-
78
-
79
- lzo_compress_t _lzo1b_get_compress_func(int clevel);
80
-
81
- int _lzo1b_do_compress ( const lzo_bytep in, lzo_uint in_len,
82
- lzo_bytep out, lzo_uintp out_len,
83
- lzo_voidp wrkmem,
84
- lzo_compress_t func );
85
-
86
-
87
- #endif /* already included */
88
-
89
- /*
90
- vi:ts=4:et
91
- */
92
-
93
-