Debian Codegraph @

libs/pplib/pplib-src/src/util/utillzw.h

raw
1 #ifndef UTIL_LZW_H
2 #define UTIL_LZW_H
3
4 #include "utiliof.h"
5
6 typedef struct lzw_state lzw_state;
7
8 #define LZW_BASE_BITS 8
9 #define LZW_TABLE_ALLOC (1<<4)
10 #define LZW_EARLY_INDEX (1<<5)
11 //#define LZW_LOW_BITS_FIRST (1<<6)
12 #define LZW_DECODER_DEFAULTS (LZW_BASE_BITS|LZW_EARLY_INDEX|0)
13 #define LZW_ENCODER_DEFAULTS (LZW_BASE_BITS|LZW_EARLY_INDEX|0)
14
15 lzw_state * lzw_decoder_init (lzw_state *state, int flags);
16 lzw_state * lzw_encoder_init (lzw_state *state, int flags);
17
18 void lzw_decoder_close (lzw_state *state);
19 void lzw_encoder_close (lzw_state *state);
20
21 iof_status lzw_encode_state (iof *I, iof *O, lzw_state *state);
22 iof_status lzw_decode_state (iof *I, iof *O, lzw_state *state);
23
24 iof_status lzw_encode (iof *I, iof *O, int flags);
25 iof_status lzw_decode (iof *I, iof *O, int flags);
26
27 iof * iof_filter_lzw_decoder (iof *N, int flags);
28 iof * iof_filter_lzw_encoder (iof *N, int flags);
29
30 #endif