#include "zutil.h"
Go to the source code of this file.
Defines | |
#define | GZIP |
#define | LENGTH_CODES 29 |
#define | LITERALS 256 |
#define | L_CODES (LITERALS+1+LENGTH_CODES) |
#define | D_CODES 30 |
#define | BL_CODES 19 |
#define | HEAP_SIZE (2*L_CODES+1) |
#define | MAX_BITS 15 |
#define | INIT_STATE 42 |
#define | EXTRA_STATE 69 |
#define | NAME_STATE 73 |
#define | COMMENT_STATE 91 |
#define | HCRC_STATE 103 |
#define | BUSY_STATE 113 |
#define | FINISH_STATE 666 |
#define | Freq fc.freq |
#define | Code fc.code |
#define | Dad dl.dad |
#define | Len dl.len |
#define | max_insert_length max_lazy_match |
#define | put_byte(s, c) {s->pending_buf[s->pending++] = (c);} |
#define | MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1) |
#define | MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD) |
#define | d_code(dist) ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)]) |
#define | _tr_tally_lit(s, c, flush) |
#define | _tr_tally_dist(s, distance, length, flush) |
Typedefs | |
typedef ct_data_s | ct_data |
typedef static_tree_desc_s | static_tree_desc |
typedef tree_desc_s | tree_desc |
typedef ush | Pos |
typedef Pos FAR | Posf |
typedef unsigned | IPos |
typedef internal_state | deflate_state |
Functions | |
void _tr_init | OF ((deflate_state *s)) |
int _tr_tally | OF ((deflate_state *s, unsigned dist, unsigned lc)) |
void _tr_flush_block | OF ((deflate_state *s, charf *buf, ulg stored_len, int eof)) |
Variables | |
uch | _length_code [] |
uch | _dist_code [] |
|
Value: { uch len = (length); \ ush dist = (distance); \ s->d_buf[s->last_lit] = dist; \ s->l_buf[s->last_lit++] = len; \ dist--; \ s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \ s->dyn_dtree[d_code(dist)].Freq++; \ flush = (s->last_lit == s->lit_bufsize-1); \ } Definition at line 315 of file deflate.h. Referenced by deflate_fast(), and deflate_slow(). |
|
Value: { uch cc = (c); \ s->d_buf[s->last_lit] = 0; \ s->l_buf[s->last_lit++] = cc; \ s->dyn_ltree[cc].Freq++; \ flush = (s->last_lit == s->lit_bufsize-1); \ } Definition at line 308 of file deflate.h. Referenced by deflate_fast(), and deflate_slow(). |
|
Definition at line 42 of file deflate.h. Referenced by build_bl_tree(), and send_all_trees(). |
|
Definition at line 56 of file deflate.h. Referenced by deflate(), deflateEnd(), and deflateReset(). |
|
Definition at line 74 of file deflate.h. Referenced by gen_codes(). |
|
Definition at line 54 of file deflate.h. Referenced by deflate(), and deflateEnd(). |
|
Definition at line 290 of file deflate.h. Referenced by _tr_tally(), and compress_block(). |
|
Definition at line 39 of file deflate.h. Referenced by _tr_tally(), compress_block(), send_all_trees(), and tr_static_init(). |
|
|
|
Definition at line 52 of file deflate.h. Referenced by deflate(), and deflateEnd(). |
|
Definition at line 57 of file deflate.h. Referenced by deflate(), deflateEnd(), and deflateInit2_(). |
|
Definition at line 73 of file deflate.h. Referenced by build_tree(), gen_bitlen(), and init_block(). |
|
|
|
Definition at line 55 of file deflate.h. Referenced by deflate(), and deflateEnd(). |
|
Definition at line 45 of file deflate.h. Referenced by build_tree(), and gen_bitlen(). |
|
Definition at line 51 of file deflate.h. Referenced by deflate(), deflateEnd(), deflateReset(), and deflateSetDictionary(). |
|
Definition at line 36 of file deflate.h. Referenced by send_all_trees(), and tr_static_init(). |
|
Definition at line 76 of file deflate.h. Referenced by gen_bitlen(). |
|
Definition at line 30 of file deflate.h. Referenced by tr_static_init(). |
|
Definition at line 33 of file deflate.h. Referenced by _tr_tally(), and compress_block(). |
|
Definition at line 48 of file deflate.h. Referenced by gen_codes(), and tr_static_init(). |
|
Definition at line 276 of file deflate.h. Referenced by _tr_tally(), deflate_fast(), deflate_slow(), deflate_stored(), deflateSetDictionary(), fill_window(), and longest_match(). |
|
|
|
|
|
Definition at line 53 of file deflate.h. Referenced by deflate(), and deflateEnd(). |
|
Definition at line 268 of file deflate.h. Referenced by bi_flush(), bi_windup(), copy_block(), deflate(), and putShortMSB(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 102 of file trees.c. Referenced by tr_static_init(). |
|
Definition at line 108 of file trees.c. Referenced by _tr_tally(), compress_block(), and tr_static_init(). |