30 #define LENGTH_CODES 29
36 #define L_CODES (LITERALS+1+LENGTH_CODES)
45 #define HEAP_SIZE (2*L_CODES+1)
56 # define GZIP_STATE 57
58 #define EXTRA_STATE 69
60 #define COMMENT_STATE 91
61 #define HCRC_STATE 103
62 #define BUSY_STATE 113
63 #define FINISH_STATE 666
94 typedef unsigned IPos;
104 ulg pending_buf_size;
171 uInt max_chain_length;
182 # define max_insert_length max_lazy_match
206 ush bl_count[MAX_BITS+1];
209 int heap[2*L_CODES+1];
216 uch depth[2*L_CODES+1];
281 #define put_byte(s, c) {s->pending_buf[s->pending++] = (Bytef)(c);}
284 #define MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1)
289 #define MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD)
294 #define WIN_INIT MAX_MATCH
300 int ZLIB_INTERNAL _tr_tally OF((
deflate_state *s,
unsigned dist,
unsigned lc));
301 void ZLIB_INTERNAL _tr_flush_block OF((
deflate_state *s, charf *buf,
302 ulg stored_len,
int last));
305 void ZLIB_INTERNAL _tr_stored_block OF((
deflate_state *s, charf *buf,
306 ulg stored_len,
int last));
308 #define d_code(dist) \
309 ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
318 #if defined(GEN_TREES_H) || !defined(STDC)
319 extern uch ZLIB_INTERNAL _length_code[];
320 extern uch ZLIB_INTERNAL _dist_code[];
322 extern const uch ZLIB_INTERNAL _length_code[];
323 extern const uch ZLIB_INTERNAL _dist_code[];
326 # define _tr_tally_lit(s, c, flush) \
328 s->d_buf[s->last_lit] = 0; \
329 s->l_buf[s->last_lit++] = cc; \
330 s->dyn_ltree[cc].Freq++; \
331 flush = (s->last_lit == s->lit_bufsize-1); \
333 # define _tr_tally_dist(s, distance, length, flush) \
334 { uch len = (uch)(length); \
335 ush dist = (ush)(distance); \
336 s->d_buf[s->last_lit] = dist; \
337 s->l_buf[s->last_lit++] = len; \
339 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
340 s->dyn_dtree[d_code(dist)].Freq++; \
341 flush = (s->last_lit == s->lit_bufsize-1); \
344 # define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c)
345 # define _tr_tally_dist(s, distance, length, flush) \
346 flush = _tr_tally(s, distance, length)
Definition: inftree9.h:24
Definition: deflate.h:100