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 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) Byte FAR Bytef
Definition: zconf.h:340
Byte method
Definition: deflate.h:107
#define L_CODES
Definition: deflate.h:36
int level
Definition: deflate.h:185
#define HEAP_SIZE
Definition: deflate.h:45
uInt last_lit
Definition: deflate.h:239
uInt match_start
Definition: deflate.h:160
uInt max_lazy_match
Definition: deflate.h:174
Posf * head
Definition: deflate.h:137
void ZLIB_INTERNAL _tr_flush_bits(deflate_state *s)
Definition: trees.c:847
void ZLIB_INTERNAL _tr_flush_block(deflate_state *s, charf *buf, ulg stored_len, int last)
Definition: trees.c:870
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:8418
ulg static_len
Definition: deflate.h:248
ush code
Definition: deflate.h:68
ct_data * dyn_tree
Definition: deflate.h:84
char FAR charf
Definition: zconf.h:342
void ZLIB_INTERNAL _tr_init(deflate_state *s)
Definition: trees.c:371
int status
Definition: deflate.h:99
GLdouble s
Definition: glext.h:6390
uInt ins_h
Definition: deflate.h:139
Pos FAR Posf
Definition: deflate.h:90
int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc)
Definition: trees.c:969
uInt matches
Definition: deflate.h:249
uInt strstart
Definition: deflate.h:159
uInt hash_mask
Definition: deflate.h:142
struct ct_data_s dyn_dtree[2 *D_CODES+1]
Definition: deflate.h:196
ush Pos
Definition: deflate.h:89
uInt gzindex
Definition: deflate.h:106
void ZLIB_INTERNAL _tr_init OF((deflate_state *s))
ush bl_count[MAX_BITS+1]
Definition: deflate.h:203
ushf * d_buf
Definition: deflate.h:241
ulg window_size
Definition: deflate.h:126
int bi_valid
Definition: deflate.h:261
int last_flush
Definition: deflate.h:108
uch ZLIB_INTERNAL _dist_code[]
Definition: trees.c:98
ulg opt_len
Definition: deflate.h:247
ush len
Definition: deflate.h:72
int max_code
Definition: deflate.h:85
int nice_match
Definition: deflate.h:191
#define BL_CODES
Definition: deflate.h:42
uInt lookahead
Definition: deflate.h:161
uInt hash_size
Definition: deflate.h:140
#define ZLIB_INTERNAL
Definition: adler32.c:8
z_streamp strm
Definition: deflate.h:98
uInt match_length
Definition: deflate.h:156
uInt max_chain_length
Definition: deflate.h:168
uInt insert
Definition: deflate.h:250
struct tree_desc_s tree_desc
uInt w_bits
Definition: deflate.h:113
void ZLIB_INTERNAL _tr_align(deflate_state *s)
Definition: trees.c:856
Posf * prev
Definition: deflate.h:131
ulg high_water
Definition: deflate.h:266
uInt lit_bufsize
Definition: deflate.h:219
unsigned char Byte
Definition: zconf.h:331
uInt good_match
Definition: deflate.h:188
gz_headerp gzhead
Definition: deflate.h:105
#define D_CODES
Definition: deflate.h:39
GLint GLint GLsizei GLsizei GLsizei depth
Definition: glext.h:6293
int wrap
Definition: deflate.h:104
Bytef * window
Definition: deflate.h:116
struct ct_data_s dyn_ltree[HEAP_SIZE]
Definition: deflate.h:195
int heap_len
Definition: deflate.h:207
ush freq
Definition: deflate.h:67
IPos prev_match
Definition: deflate.h:157
uch ZLIB_INTERNAL _length_code[]
Definition: trees.c:104
uchf * l_buf
Definition: deflate.h:217
int strategy
Definition: deflate.h:186
Bytef * pending_out
Definition: deflate.h:102
uInt hash_shift
Definition: deflate.h:144
static_tree_desc * stat_desc
Definition: deflate.h:86
int heap[2 *L_CODES+1]
Definition: deflate.h:206
ush bi_buf
Definition: deflate.h:257
Bytef * pending_buf
Definition: deflate.h:100
long block_start
Definition: deflate.h:151
struct tree_desc_s d_desc
Definition: deflate.h:200
struct tree_desc_s l_desc
Definition: deflate.h:199
#define FAR
Definition: zconf.h:327
uInt w_size
Definition: deflate.h:112
struct tree_desc_s bl_desc
Definition: deflate.h:201
uInt prev_length
Definition: deflate.h:163
unsigned IPos
Definition: deflate.h:91
struct internal_state_deflate deflate_state
unsigned int uInt
Definition: zconf.h:333
void ZLIB_INTERNAL _tr_stored_block(deflate_state *s, charf *buf, ulg stored_len, int last)
Definition: trees.c:834
uInt w_mask
Definition: deflate.h:114
#define MAX_BITS
Definition: deflate.h:48
struct ct_data_s bl_tree[2 *BL_CODES+1]
Definition: deflate.h:197
uInt pending
Definition: deflate.h:103
int match_available
Definition: deflate.h:158
int heap_max
Definition: deflate.h:208
ulg pending_buf_size
Definition: deflate.h:101
uInt hash_bits
Definition: deflate.h:141
ush dad
Definition: deflate.h:71