913 ulg opt_lenb, static_lenb;
929 Tracev((stderr,
"\ndist data: dyn %ld, stat %ld", s->
opt_len,
941 opt_lenb = (s->
opt_len+3+7)>>3;
944 Tracev((stderr,
"\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u ",
948 if (static_lenb <= opt_lenb) opt_lenb = static_lenb;
952 opt_lenb = static_lenb = stored_len + 5;
956 if (
buf != (
char*)0) {
958 if (stored_len+4 <= opt_lenb &&
buf != (
char*)0) {
970 }
else if (static_lenb >= 0) {
987 s->compressed_len += 3 + s->
opt_len;
990 Assert (s->compressed_len == s->bits_sent,
"bad compressed size");
999 s->compressed_len += 7;
1002 Tracev((stderr,
"\ncomprlen %lu(%lu) ", s->compressed_len>>3,
1003 s->compressed_len-7*last));
ulg static_len
Definition: deflate.h:248
static ct_data static_dtree[30]
Definition: trees.c:93
void _tr_stored_block(deflate_state *s, charf *buf, ulg stored_len, int last)
Definition: trees.c:865
struct ct_data_s dyn_dtree[2 *30+1]
Definition: deflate.h:196
static void compress_block(deflate_state *s, const ct_data *ltree, const ct_data *dtree)
Definition: trees.c:1060
#define Z_UNKNOWN
Definition: zlib.h:202
#define Assert(cond, msg)
Definition: zutil.h:230
int strategy
Definition: deflate.h:186
#define Tracev(x)
Definition: zutil.h:232
#define Z_FIXED
Definition: zlib.h:195
int max_code
Definition: deflate.h:85
int level
Definition: deflate.h:185
static int build_bl_tree(deflate_state *s)
Definition: trees.c:801
z_streamp strm
Definition: deflate.h:98
int data_type
Definition: zlib.h:101
ulg opt_len
Definition: deflate.h:247
struct tree_desc_s d_desc
Definition: deflate.h:200
static ct_data static_ltree[(256+1+29)+2]
Definition: trees.c:86
#define send_bits(s, value, length)
Definition: trees.c:213
static int detect_data_type(deflate_state *s)
Definition: trees.c:1120
static void send_all_trees(deflate_state *s, int lcodes, int dcodes, int blcodes)
Definition: trees.c:836
struct tree_desc_s l_desc
Definition: deflate.h:199
static void init_block(deflate_state *s)
Definition: trees.c:409
static void bi_windup(deflate_state *s)
Definition: trees.c:1186
uInt last_lit
Definition: deflate.h:239
unsigned long ulg
Definition: zutil.h:45
static void build_tree(deflate_state *s, tree_desc *desc)
Definition: trees.c:617
#define STATIC_TREES
Definition: zutil.h:71
char buf[128]
Definition: rw_test.cpp:40
struct ct_data_s dyn_ltree[(2 *(256+1+29)+1)]
Definition: deflate.h:195
#define DYN_TREES
Definition: zutil.h:72