30 #define LENGTH_CODES 29 36 #define L_CODES (LITERALS+1+LENGTH_CODES) 45 #define HEAP_SIZE (2*L_CODES+1) 55 #define EXTRA_STATE 69 57 #define COMMENT_STATE 91 58 #define HCRC_STATE 103 59 #define BUSY_STATE 113 60 #define FINISH_STATE 666 97 typedef struct internal_state {
101 ulg pending_buf_size;
168 uInt max_chain_length;
179 # define max_insert_length max_lazy_match 278 #define put_byte(s, c) {s->pending_buf[s->pending++] = (c);} 281 #define MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1) 286 #define MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD) 291 #define WIN_INIT MAX_MATCH 299 ulg stored_len,
int last));
303 ulg stored_len,
int last));
305 #define d_code(dist) \ 306 ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)]) 315 #if defined(GEN_TREES_H) || !defined(STDC) 323 # define _tr_tally_lit(s, c, flush) \ 325 s->d_buf[s->last_lit] = 0; \ 326 s->l_buf[s->last_lit++] = cc; \ 327 s->dyn_ltree[cc].Freq++; \ 328 flush = (s->last_lit == s->lit_bufsize-1); \ 330 # define _tr_tally_dist(s, distance, length, flush) \ 331 { uch len = (length); \ 332 ush dist = (distance); \ 333 s->d_buf[s->last_lit] = dist; \ 334 s->l_buf[s->last_lit++] = len; \ 336 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \ 337 s->dyn_dtree[d_code(dist)].Freq++; \ 338 flush = (s->last_lit == s->lit_bufsize-1); \ 341 # define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c) 342 # define _tr_tally_dist(s, distance, length, flush) \ 343 flush = _tr_tally(s, distance, length)
GLint GLint GLsizei GLsizei GLsizei depth
struct static_tree_desc_s static_tree_desc
void ZLIB_INTERNAL _tr_align(deflate_state *s)
local void gzhead(bin *in)
static_tree_desc * stat_desc
uch ZLIB_INTERNAL _dist_code[]
GLenum GLuint GLenum GLsizei const GLchar * buf
void ZLIB_INTERNAL _tr_init OF((deflate_state *s))
gz_header FAR * gz_headerp
void ZLIB_INTERNAL _tr_init(deflate_state *s)
void ZLIB_INTERNAL _tr_flush_bits(deflate_state *s)
void ZLIB_INTERNAL _tr_stored_block(deflate_state *s, charf *buf, ulg stored_len, int last)
int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc)
struct internal_state deflate_state
uch ZLIB_INTERNAL _length_code[]
void ZLIB_INTERNAL _tr_flush_block(deflate_state *s, charf *buf, ulg stored_len, int last)
struct tree_desc_s tree_desc