]> mj.ucw.cz Git - libucw.git/blob - lib/lizard.h
implemented fast compression and decompression routines
[libucw.git] / lib / lizard.h
1 /*
2  *      LiZzaRd -- Fast compression method based on Lempel-Ziv 77
3  *
4  *      (c) 2004, Robert Spalek <robert@ucw.cz>
5  *
6  *      The file format is based on LZO1X and 
7  *      the compression method is based on zlib.
8  */
9
10 #define LIZZARD_MAX_PROLONG_FACTOR      129/128
11   /* Incompressible string of length 256 has a 2-byte header.
12    * Hence the scheme the file length get multiplied by 129/128 in the worst
13    * case + at most 4 bytes are added for header and EOF.  */
14
15 int lizzard_compress(byte *in, uns in_len, byte *out);
16 int lizzard_decompress(byte *in, byte *out);