version 1.1.1.1, 2012/02/21 16:23:02
|
version 1.1.1.2, 2013/07/22 10:46:14
|
Line 1
|
Line 1
|
/* deflate.h -- internal compression state |
/* deflate.h -- internal compression state |
* Copyright (C) 1995-2010 Jean-loup Gailly | * Copyright (C) 1995-2012 Jean-loup Gailly |
* For conditions of distribution and use, see copyright notice in zlib.h |
* For conditions of distribution and use, see copyright notice in zlib.h |
*/ |
*/ |
|
|
Line 48
|
Line 48
|
#define MAX_BITS 15 |
#define MAX_BITS 15 |
/* All codes must not exceed MAX_BITS bits */ |
/* All codes must not exceed MAX_BITS bits */ |
|
|
|
#define Buf_size 16 |
|
/* size of bit buffer in bi_buf */ |
|
|
#define INIT_STATE 42 |
#define INIT_STATE 42 |
#define EXTRA_STATE 69 |
#define EXTRA_STATE 69 |
#define NAME_STATE 73 |
#define NAME_STATE 73 |
Line 188 typedef struct internal_state {
|
Line 191 typedef struct internal_state {
|
int nice_match; /* Stop searching when current match exceeds this */ |
int nice_match; /* Stop searching when current match exceeds this */ |
|
|
/* used by trees.c: */ |
/* used by trees.c: */ |
/* Didn't use ct_data typedef below to supress compiler warning */ | /* Didn't use ct_data typedef below to suppress compiler warning */ |
struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */ |
struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */ |
struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */ |
struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */ |
struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */ |
struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */ |
Line 244 typedef struct internal_state {
|
Line 247 typedef struct internal_state {
|
ulg opt_len; /* bit length of current block with optimal trees */ |
ulg opt_len; /* bit length of current block with optimal trees */ |
ulg static_len; /* bit length of current block with static trees */ |
ulg static_len; /* bit length of current block with static trees */ |
uInt matches; /* number of string matches in current block */ |
uInt matches; /* number of string matches in current block */ |
int last_eob_len; /* bit length of EOB code for last block */ | uInt insert; /* bytes at e uInt insert; /* bytes at end of window left to insert */ |
|
|
#ifdef DEBUG |
#ifdef DEBUG |
ulg compressed_len; /* total bit length of compressed file mod 2^32 */ |
ulg compressed_len; /* total bit length of compressed file mod 2^32 */ |
Line 294 void ZLIB_INTERNAL _tr_init OF((deflate_state *s));
|
Line 297 void ZLIB_INTERNAL _tr_init OF((deflate_state *s));
|
int ZLIB_INTERNAL _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); |
int ZLIB_INTERNAL _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); |
void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf, |
void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf, |
ulg stored_len, int last)); |
ulg stored_len, int last)); |
|
void ZLIB_INTERNAL _tr_flush_bits OF((deflate_state *s)); |
void ZLIB_INTERNAL _tr_align OF((deflate_state *s)); |
void ZLIB_INTERNAL _tr_align OF((deflate_state *s)); |
void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, |
void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, |
ulg stored_len, int last)); |
ulg stored_len, int last)); |