The SWORD Project
1.9.0
|
#include "deflate.h"
Go to the source code of this file.
Classes | |
struct | config_s |
struct | static_tree_desc_s |
Macros | |
#define | check_match(s, start, match, length) |
#define | CLEAR_HASH(s) |
#define | EQUAL 0 |
#define | FLUSH_BLOCK(s, last) |
#define | FLUSH_BLOCK_ONLY(s, last) |
#define | INSERT_STRING(s, str, match_head) |
#define | NIL 0 |
#define | RANK(f) (((f) << 1) - ((f) > 4 ? 9 : 0)) |
#define | TOO_FAR 4096 |
#define | UPDATE_HASH(s, h, c) (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask) |
Typedefs | |
typedef struct config_s | config |
typedef block_state compress_func | OF ((deflate_state *s, int flush)) |
Enumerations | |
enum | block_state { need_more, block_done, finish_started, finish_done } |
Variables | |
local const config | configuration_table [10] |
const char | deflate_copyright [] |
#define CLEAR_HASH | ( | s | ) |
#define FLUSH_BLOCK | ( | s, | |
last | |||
) |
#define FLUSH_BLOCK_ONLY | ( | s, | |
last | |||
) |
#define INSERT_STRING | ( | s, | |
str, | |||
match_head | |||
) |
#define UPDATE_HASH | ( | s, | |
h, | |||
c | |||
) | (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask) |
ZEXTERN const uLongf *ZEXPORT get_crc_table OF | ( | (deflate_state *s, int flush) | ) |
enum block_state |
Enumerator | |
---|---|
need_more | |
block_done | |
finish_started | |
finish_done |
Definition at line 665 of file deflate.c.
local block_state deflate_fast | ( | deflate_state * | s, |
int | flush | ||
) |
local block_state deflate_huff | ( | deflate_state * | s, |
int | flush | ||
) |
local block_state deflate_rle | ( | deflate_state * | s, |
int | flush | ||
) |
local block_state deflate_slow | ( | deflate_state * | s, |
int | flush | ||
) |
local block_state deflate_stored | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 566 of file deflate.c.
Definition at line 1014 of file deflate.c.
int ZEXPORT deflateInit2_ | ( | z_streamp | strm, |
int | level, | ||
int | method, | ||
int | windowBits, | ||
int | memLevel, | ||
int | strategy, | ||
const char * | version, | ||
int | stream_size | ||
) |
Definition at line 213 of file deflate.c.
Definition at line 201 of file deflate.c.
Definition at line 490 of file deflate.c.
Definition at line 464 of file deflate.c.
Definition at line 392 of file deflate.c.
Definition at line 323 of file deflate.c.
int ZEXPORT deflateSetHeader | ( | z_streamp | strm, |
gz_headerp | head | ||
) |
int ZEXPORT deflateTune | ( | z_streamp | strm, |
int | good_length, | ||
int | max_lazy, | ||
int | nice_length, | ||
int | max_chain | ||
) |
Definition at line 531 of file deflate.c.
local void fill_window | ( | deflate_state * | s | ) |
Definition at line 1390 of file deflate.c.
Definition at line 642 of file deflate.c.
local void lm_init | ( | deflate_state * | s | ) |
local uInt longest_match | ( | deflate_state * | s, |
IPos | cur_match | ||
) |
local void fill_window OF | ( | (deflate_state *s) | ) |
local block_state deflate_stored OF | ( | (deflate_state *s, int flush) | ) |
local void putShortMSB OF | ( | (deflate_state *s, uInt b) | ) |
local void flush_pending OF | ( | (z_streamp strm) | ) |
local uInt longest_match OF | ( | (deflate_state *s, IPos cur_match) | ) |
local void putShortMSB | ( | deflate_state * | s, |
uInt | b | ||
) |
Definition at line 1076 of file deflate.c.