lzoruby 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/{README.txt → README} +3 -7
- data/ext/extconf.rb +4 -1
- metadata +24 -131
- data/ext/compr1b.h +0 -81
- data/ext/compr1c.h +0 -81
- data/ext/config1.h +0 -61
- data/ext/config1a.h +0 -196
- data/ext/config1b.h +0 -140
- data/ext/config1c.h +0 -145
- data/ext/config1f.h +0 -97
- data/ext/config1x.h +0 -118
- data/ext/config1y.h +0 -66
- data/ext/config1z.h +0 -65
- data/ext/config2a.h +0 -155
- data/ext/lzo/lzo1.h +0 -96
- data/ext/lzo/lzo1a.h +0 -96
- data/ext/lzo/lzo1b.h +0 -160
- data/ext/lzo/lzo1c.h +0 -160
- data/ext/lzo/lzo1f.h +0 -108
- data/ext/lzo/lzo1x.h +0 -177
- data/ext/lzo/lzo1y.h +0 -145
- data/ext/lzo/lzo1z.h +0 -150
- data/ext/lzo/lzo2a.h +0 -92
- data/ext/lzo/lzo_asm.h +0 -139
- data/ext/lzo/lzoconf.h +0 -417
- data/ext/lzo/lzodefs.h +0 -1807
- data/ext/lzo/lzoutil.h +0 -73
- data/ext/lzo1.c +0 -635
- data/ext/lzo1_99.c +0 -130
- data/ext/lzo1_cm.ch +0 -52
- data/ext/lzo1_d.ch +0 -155
- data/ext/lzo1a.c +0 -657
- data/ext/lzo1a_99.c +0 -130
- data/ext/lzo1a_cm.ch +0 -242
- data/ext/lzo1a_cr.ch +0 -128
- data/ext/lzo1a_de.h +0 -158
- data/ext/lzo1b_1.c +0 -46
- data/ext/lzo1b_2.c +0 -46
- data/ext/lzo1b_3.c +0 -46
- data/ext/lzo1b_4.c +0 -46
- data/ext/lzo1b_5.c +0 -46
- data/ext/lzo1b_6.c +0 -46
- data/ext/lzo1b_7.c +0 -46
- data/ext/lzo1b_8.c +0 -46
- data/ext/lzo1b_9.c +0 -46
- data/ext/lzo1b_99.c +0 -49
- data/ext/lzo1b_9x.c +0 -365
- data/ext/lzo1b_c.ch +0 -270
- data/ext/lzo1b_cc.c +0 -167
- data/ext/lzo1b_cc.h +0 -93
- data/ext/lzo1b_cm.ch +0 -294
- data/ext/lzo1b_cr.ch +0 -126
- data/ext/lzo1b_d.ch +0 -282
- data/ext/lzo1b_d1.c +0 -46
- data/ext/lzo1b_d2.c +0 -46
- data/ext/lzo1b_de.h +0 -344
- data/ext/lzo1b_r.ch +0 -117
- data/ext/lzo1b_rr.c +0 -43
- data/ext/lzo1b_sm.ch +0 -210
- data/ext/lzo1b_tm.ch +0 -99
- data/ext/lzo1b_xx.c +0 -98
- data/ext/lzo1c_1.c +0 -46
- data/ext/lzo1c_2.c +0 -46
- data/ext/lzo1c_3.c +0 -46
- data/ext/lzo1c_4.c +0 -46
- data/ext/lzo1c_5.c +0 -46
- data/ext/lzo1c_6.c +0 -46
- data/ext/lzo1c_7.c +0 -46
- data/ext/lzo1c_8.c +0 -46
- data/ext/lzo1c_9.c +0 -46
- data/ext/lzo1c_99.c +0 -49
- data/ext/lzo1c_9x.c +0 -379
- data/ext/lzo1c_cc.c +0 -167
- data/ext/lzo1c_cc.h +0 -93
- data/ext/lzo1c_d1.c +0 -46
- data/ext/lzo1c_d2.c +0 -46
- data/ext/lzo1c_rr.c +0 -43
- data/ext/lzo1c_xx.c +0 -98
- data/ext/lzo1f_1.c +0 -312
- data/ext/lzo1f_9x.c +0 -345
- data/ext/lzo1f_d.ch +0 -223
- data/ext/lzo1f_d1.c +0 -46
- data/ext/lzo1f_d2.c +0 -46
- data/ext/lzo1x_1.c +0 -50
- data/ext/lzo1x_1k.c +0 -50
- data/ext/lzo1x_1l.c +0 -50
- data/ext/lzo1x_1o.c +0 -50
- data/ext/lzo1x_9x.c +0 -881
- data/ext/lzo1x_c.ch +0 -351
- data/ext/lzo1x_d.ch +0 -466
- data/ext/lzo1x_d1.c +0 -46
- data/ext/lzo1x_d2.c +0 -46
- data/ext/lzo1x_d3.c +0 -108
- data/ext/lzo1x_o.c +0 -45
- data/ext/lzo1x_oo.ch +0 -366
- data/ext/lzo1y_1.c +0 -50
- data/ext/lzo1y_9x.c +0 -42
- data/ext/lzo1y_d1.c +0 -46
- data/ext/lzo1y_d2.c +0 -46
- data/ext/lzo1y_d3.c +0 -45
- data/ext/lzo1y_o.c +0 -45
- data/ext/lzo1z_9x.c +0 -42
- data/ext/lzo1z_d1.c +0 -46
- data/ext/lzo1z_d2.c +0 -46
- data/ext/lzo1z_d3.c +0 -45
- data/ext/lzo2a_9x.c +0 -357
- data/ext/lzo2a_d.ch +0 -188
- data/ext/lzo2a_d1.c +0 -46
- data/ext/lzo2a_d2.c +0 -46
- data/ext/lzo_conf.h +0 -323
- data/ext/lzo_crc.c +0 -167
- data/ext/lzo_dict.h +0 -316
- data/ext/lzo_dll.ch +0 -64
- data/ext/lzo_init.c +0 -176
- data/ext/lzo_mchw.ch +0 -242
- data/ext/lzo_ptr.c +0 -92
- data/ext/lzo_ptr.h +0 -154
- data/ext/lzo_str.c +0 -71
- data/ext/lzo_swd.ch +0 -707
- data/ext/lzo_util.c +0 -165
- data/ext/miniacc.h +0 -6553
- data/ext/stats1a.h +0 -137
- data/ext/stats1b.h +0 -142
- data/ext/stats1c.h +0 -61
data/ext/stats1a.h
DELETED
@@ -1,137 +0,0 @@
|
|
1
|
-
/* stats1a.h -- statistics for the the LZO1A 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
|
-
/* WARNING: this file should *not* be used by applications. It is
|
42
|
-
part of the implementation of the LZO package and is subject
|
43
|
-
to change.
|
44
|
-
*/
|
45
|
-
|
46
|
-
|
47
|
-
#ifndef __LZO_STATS1A_H
|
48
|
-
#define __LZO_STATS1A_H
|
49
|
-
|
50
|
-
#ifdef __cplusplus
|
51
|
-
extern "C" {
|
52
|
-
#endif
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
/***********************************************************************
|
57
|
-
// collect statistical information when compressing
|
58
|
-
// used for finetuning, view with a debugger
|
59
|
-
************************************************************************/
|
60
|
-
|
61
|
-
#if defined(LZO_COLLECT_STATS)
|
62
|
-
# define LZO_STATS(expr) expr
|
63
|
-
#else
|
64
|
-
# define LZO_STATS(expr) ((void) 0)
|
65
|
-
#endif
|
66
|
-
|
67
|
-
|
68
|
-
/***********************************************************************
|
69
|
-
//
|
70
|
-
************************************************************************/
|
71
|
-
|
72
|
-
typedef struct {
|
73
|
-
|
74
|
-
/* configuration */
|
75
|
-
unsigned rbits;
|
76
|
-
unsigned clevel;
|
77
|
-
|
78
|
-
/* internal configuration */
|
79
|
-
unsigned dbits;
|
80
|
-
unsigned lbits;
|
81
|
-
|
82
|
-
/* constants */
|
83
|
-
unsigned min_match_short;
|
84
|
-
unsigned max_match_short;
|
85
|
-
unsigned min_match_long;
|
86
|
-
unsigned max_match_long;
|
87
|
-
unsigned min_offset;
|
88
|
-
unsigned max_offset;
|
89
|
-
unsigned r0min;
|
90
|
-
unsigned r0fast;
|
91
|
-
unsigned r0max;
|
92
|
-
|
93
|
-
/* counts */
|
94
|
-
long short_matches;
|
95
|
-
long long_matches;
|
96
|
-
long r1_matches;
|
97
|
-
long lit_runs;
|
98
|
-
long lit_runs_after_long_match;
|
99
|
-
long r0short_runs;
|
100
|
-
long r0fast_runs;
|
101
|
-
long r0long_runs;
|
102
|
-
|
103
|
-
/* */
|
104
|
-
long lit_run[RSIZE];
|
105
|
-
long lit_run_after_long_match[RSIZE];
|
106
|
-
long short_match[MAX_MATCH_SHORT + 1];
|
107
|
-
long long_match[MAX_MATCH_LONG + 1];
|
108
|
-
long marker[256];
|
109
|
-
|
110
|
-
/* these could prove useful for further optimizations */
|
111
|
-
long short_match_offset_osize[MAX_MATCH_SHORT + 1];
|
112
|
-
long short_match_offset_256[MAX_MATCH_SHORT + 1];
|
113
|
-
long short_match_offset_1024[MAX_MATCH_SHORT + 1];
|
114
|
-
long matches_out_of_range;
|
115
|
-
long matches_out_of_range_2;
|
116
|
-
long matches_out_of_range_4;
|
117
|
-
long match_out_of_range[MAX_MATCH_SHORT + 1];
|
118
|
-
|
119
|
-
/* */
|
120
|
-
long in_len;
|
121
|
-
long out_len;
|
122
|
-
}
|
123
|
-
lzo1a_stats_t;
|
124
|
-
|
125
|
-
extern lzo1a_stats_t *lzo1a_stats;
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
#ifdef __cplusplus
|
130
|
-
} /* extern "C" */
|
131
|
-
#endif
|
132
|
-
|
133
|
-
#endif /* already included */
|
134
|
-
|
135
|
-
/*
|
136
|
-
vi:ts=4:et
|
137
|
-
*/
|
data/ext/stats1b.h
DELETED
@@ -1,142 +0,0 @@
|
|
1
|
-
/* stats1b.h -- statistics for the the LZO library
|
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 __LZO_STATS1B_H
|
48
|
-
#define __LZO_STATS1B_H
|
49
|
-
|
50
|
-
#ifdef __cplusplus
|
51
|
-
extern "C" {
|
52
|
-
#endif
|
53
|
-
|
54
|
-
|
55
|
-
/***********************************************************************
|
56
|
-
// Collect statistical information when compressing.
|
57
|
-
// Useful for finetuning the compression algorithm.
|
58
|
-
// Examine the symbol 'lzo1b_stats' with a debugger.
|
59
|
-
************************************************************************/
|
60
|
-
|
61
|
-
#if defined(LZO_COLLECT_STATS)
|
62
|
-
# define LZO_STATS(expr) expr
|
63
|
-
#else
|
64
|
-
# define LZO_STATS(expr) ((void) 0)
|
65
|
-
#endif
|
66
|
-
|
67
|
-
|
68
|
-
#if defined(LZO_COLLECT_STATS)
|
69
|
-
|
70
|
-
typedef struct
|
71
|
-
{
|
72
|
-
/* algorithm configuration */
|
73
|
-
unsigned r_bits;
|
74
|
-
unsigned m3o_bits;
|
75
|
-
unsigned dd_bits;
|
76
|
-
unsigned clevel;
|
77
|
-
|
78
|
-
/* internal configuration */
|
79
|
-
unsigned d_bits;
|
80
|
-
long min_lookahead;
|
81
|
-
long max_lookbehind;
|
82
|
-
const char *compress_id;
|
83
|
-
|
84
|
-
/* counts */
|
85
|
-
long lit_runs;
|
86
|
-
long r0short_runs;
|
87
|
-
long r0fast_runs;
|
88
|
-
long r0long_runs;
|
89
|
-
long m1_matches;
|
90
|
-
long m2_matches;
|
91
|
-
long m3_matches;
|
92
|
-
long m4_matches;
|
93
|
-
long r1_matches;
|
94
|
-
|
95
|
-
/* */
|
96
|
-
long lit_run[R0MIN];
|
97
|
-
long m2_match[M2_MAX_LEN + 1];
|
98
|
-
long m3_match[M3_MAX_LEN + 1];
|
99
|
-
#if (M3O_BITS < 8)
|
100
|
-
long lit_runs_after_m3_match;
|
101
|
-
long lit_run_after_m3_match[LZO_SIZE(8-M3O_BITS)];
|
102
|
-
#endif
|
103
|
-
|
104
|
-
/* */
|
105
|
-
long matches;
|
106
|
-
long match_bytes;
|
107
|
-
long literals;
|
108
|
-
long literal_overhead;
|
109
|
-
long literal_bytes;
|
110
|
-
double literal_overhead_percent;
|
111
|
-
|
112
|
-
/* */
|
113
|
-
long unused_dict_entries;
|
114
|
-
double unused_dict_entries_percent;
|
115
|
-
|
116
|
-
/* */
|
117
|
-
long in_len;
|
118
|
-
long out_len;
|
119
|
-
}
|
120
|
-
lzo1b_stats_t;
|
121
|
-
|
122
|
-
|
123
|
-
void _lzo1b_stats_init(lzo1b_stats_t *lzo_stats);
|
124
|
-
void _lzo1b_stats_calc(lzo1b_stats_t *lzo_stats);
|
125
|
-
|
126
|
-
extern lzo1b_stats_t * const lzo1b_stats;
|
127
|
-
|
128
|
-
#define lzo_stats_t lzo1b_stats_t
|
129
|
-
#define lzo_stats lzo1b_stats
|
130
|
-
|
131
|
-
#endif
|
132
|
-
|
133
|
-
|
134
|
-
#ifdef __cplusplus
|
135
|
-
} /* extern "C" */
|
136
|
-
#endif
|
137
|
-
|
138
|
-
#endif /* already included */
|
139
|
-
|
140
|
-
/*
|
141
|
-
vi:ts=4:et
|
142
|
-
*/
|
data/ext/stats1c.h
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
/* stats1c.h -- statistics for the the LZO library
|
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 __LZO_STATS1C_H
|
48
|
-
#define __LZO_STATS1C_H
|
49
|
-
|
50
|
-
#define lzo1b_stats_t lzo1c_stats_t
|
51
|
-
#define lzo1b_stats lzo1c_stats
|
52
|
-
#define _lzo1b_stats_init _lzo1c_stats_init
|
53
|
-
#define _lzo1b_stats_calc _lzo1c_stats_calc
|
54
|
-
|
55
|
-
#include "stats1b.h"
|
56
|
-
|
57
|
-
#endif /* already included */
|
58
|
-
|
59
|
-
/*
|
60
|
-
vi:ts=4:et
|
61
|
-
*/
|