Geant4
10.01.p03
|
#include "deflate.h"
Go to the source code of this file.
Classes | |
struct | config_s |
struct | static_tree_desc_s |
Macros | |
#define | NIL 0 |
#define | TOO_FAR 4096 |
#define | EQUAL 0 |
#define | RANK(f) (((f) << 1) - ((f) > 4 ? 9 : 0)) |
#define | UPDATE_HASH(s, h, c) (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask) |
#define | INSERT_STRING(s, str, match_head) |
#define | CLEAR_HASH(s) |
#define | check_match(s, start, match, length) |
#define | FLUSH_BLOCK_ONLY(s, last) |
#define | FLUSH_BLOCK(s, last) |
Typedefs | |
typedef block_state compress_func | OF ((deflate_state *s, int flush)) |
typedef struct config_s | config |
Enumerations | |
enum | block_state { need_more, block_done, finish_started, finish_done } |
Functions | |
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 int read_buf | OF ((z_streamp strm, Bytef *buf, unsigned size)) |
local uInt longest_match | OF ((deflate_state *s, IPos cur_match)) |
int ZEXPORT | deflateInit_ (z_streamp strm, int level, const char *version, int stream_size) |
int ZEXPORT | deflateInit2_ (z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size) |
int ZEXPORT | deflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength) |
int ZEXPORT | deflateResetKeep (z_streamp strm) |
int ZEXPORT | deflateReset (z_streamp strm) |
int ZEXPORT | deflateSetHeader (z_streamp strm, gz_headerp head) |
int ZEXPORT | deflatePending (z_streamp strm, unsigned *pending, int *bits) |
int ZEXPORT | deflatePrime (z_streamp strm, int bits, int value) |
int ZEXPORT | deflateParams (z_streamp strm, int level, int strategy) |
int ZEXPORT | deflateTune (z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain) |
uLong ZEXPORT | deflateBound (z_streamp strm, uLong sourceLen) |
local void | putShortMSB (deflate_state *s, uInt b) |
local void | flush_pending (z_streamp strm) |
int ZEXPORT | deflate (z_streamp strm, int flush) |
int ZEXPORT | deflateEnd (z_streamp strm) |
int ZEXPORT | deflateCopy (z_streamp dest, z_streamp source) |
local int | read_buf (z_streamp strm, Bytef *buf, unsigned size) |
local void | lm_init (deflate_state *s) |
local uInt | longest_match (deflate_state *s, IPos cur_match) |
local void | fill_window (deflate_state *s) |
local block_state | deflate_stored (deflate_state *s, int flush) |
local block_state | deflate_fast (deflate_state *s, int flush) |
local block_state | deflate_slow (deflate_state *s, int flush) |
local block_state | deflate_rle (deflate_state *s, int flush) |
local block_state | deflate_huff (deflate_state *s, int flush) |
Variables | |
local const config | configuration_table [10] |
#define check_match | ( | s, | |
start, | |||
match, | |||
length | |||
) |
Definition at line 1321 of file deflate.cc.
Referenced by deflate_fast(), deflate_rle(), and deflate_slow().
#define CLEAR_HASH | ( | s | ) |
Definition at line 196 of file deflate.cc.
Referenced by deflate(), deflateSetDictionary(), and lm_init().
#define EQUAL 0 |
Definition at line 151 of file deflate.cc.
#define FLUSH_BLOCK | ( | s, | |
last | |||
) |
Definition at line 1493 of file deflate.cc.
Referenced by deflate_fast(), deflate_huff(), deflate_rle(), deflate_slow(), and deflate_stored().
#define FLUSH_BLOCK_ONLY | ( | s, | |
last | |||
) |
Definition at line 1481 of file deflate.cc.
Referenced by deflate_slow().
#define INSERT_STRING | ( | s, | |
str, | |||
match_head | |||
) |
#define NIL 0 |
Definition at line 104 of file deflate.cc.
Referenced by deflate_fast(), deflate_slow(), fill_window(), and longest_match().
#define RANK | ( | f | ) | (((f) << 1) - ((f) > 4 ? 9 : 0)) |
Definition at line 159 of file deflate.cc.
Referenced by deflate().
#define TOO_FAR 4096 |
Definition at line 108 of file deflate.cc.
Referenced by deflate_slow().
Definition at line 167 of file deflate.cc.
Referenced by deflate_fast(), deflateSetDictionary(), and fill_window().
Definition at line 73 of file deflate.cc.
enum block_state |
Enumerator | |
---|---|
need_more | |
block_done | |
finish_started | |
finish_done |
Definition at line 66 of file deflate.cc.
int ZEXPORT deflate | ( | z_streamp | strm, |
int | flush | ||
) |
Definition at line 625 of file deflate.cc.
References _tr_align(), _tr_stored_block(), adler32(), block_done, CLEAR_HASH, crc32(), deflate_huff(), deflate_rle(), finish_done, finish_started, flush_pending(), L, need_more, putShortMSB(), RANK, and s.
Referenced by compress2(), deflateParams(), and gz_comp().
local block_state deflate_fast | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 1569 of file deflate.cc.
References block_done, check_match, fill_window(), finish_done, FLUSH_BLOCK, INSERT_STRING, longest_match(), need_more, NIL, times, and UPDATE_HASH.
local block_state deflate_huff | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 1869 of file deflate.cc.
References block_done, fill_window(), finish_done, FLUSH_BLOCK, and need_more.
Referenced by deflate().
local block_state deflate_rle | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 1798 of file deflate.cc.
References block_done, check_match, fill_window(), finish_done, FLUSH_BLOCK, and need_more.
Referenced by deflate().
local block_state deflate_slow | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 1669 of file deflate.cc.
References block_done, check_match, fill_window(), finish_done, FLUSH_BLOCK, FLUSH_BLOCK_ONLY, INSERT_STRING, longest_match(), need_more, NIL, and TOO_FAR.
local block_state deflate_stored | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 1507 of file deflate.cc.
References block_done, fill_window(), finish_done, FLUSH_BLOCK, L, and need_more.
uLong ZEXPORT deflateBound | ( | z_streamp | strm, |
uLong | sourceLen | ||
) |
Definition at line 531 of file deflate.cc.
References s.
int ZEXPORT deflateCopy | ( | z_streamp | dest, |
z_streamp | source | ||
) |
Definition at line 971 of file deflate.cc.
References deflateEnd(), and zmemcpy().
int ZEXPORT deflateEnd | ( | z_streamp | strm | ) |
Definition at line 937 of file deflate.cc.
Referenced by compress2(), deflateCopy(), deflateInit2_(), and gzclose_w().
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 209 of file deflate.cc.
References deflateEnd(), deflateReset(), L, s, zcalloc(), and zcfree().
Referenced by deflateInit_().
int ZEXPORT deflateInit_ | ( | z_streamp | strm, |
int | level, | ||
const char * | version, | ||
int | stream_size | ||
) |
Definition at line 201 of file deflate.cc.
References deflateInit2_().
int ZEXPORT deflateParams | ( | z_streamp | strm, |
int | level, | ||
int | strategy | ||
) |
Definition at line 465 of file deflate.cc.
Referenced by gzsetparams().
int ZEXPORT deflatePending | ( | z_streamp | strm, |
unsigned * | pending, | ||
int * | bits | ||
) |
Definition at line 431 of file deflate.cc.
int ZEXPORT deflatePrime | ( | z_streamp | strm, |
int | bits, | ||
int | value | ||
) |
Definition at line 442 of file deflate.cc.
References _tr_flush_bits(), and s.
int ZEXPORT deflateReset | ( | z_streamp | strm | ) |
Definition at line 411 of file deflate.cc.
References deflateResetKeep(), and lm_init().
Referenced by deflateInit2_(), and gz_comp().
int ZEXPORT deflateResetKeep | ( | z_streamp | strm | ) |
Definition at line 377 of file deflate.cc.
References _tr_init(), adler32(), crc32(), L, and s.
Referenced by deflateReset().
int ZEXPORT deflateSetDictionary | ( | z_streamp | strm, |
const Bytef * | dictionary, | ||
uInt | dictLength | ||
) |
Definition at line 311 of file deflate.cc.
References adler32(), CLEAR_HASH, fill_window(), L, n, s, and UPDATE_HASH.
int ZEXPORT deflateSetHeader | ( | z_streamp | strm, |
gz_headerp | head | ||
) |
Definition at line 422 of file deflate.cc.
int ZEXPORT deflateTune | ( | z_streamp | strm, |
int | good_length, | ||
int | max_lazy, | ||
int | nice_length, | ||
int | max_chain | ||
) |
Definition at line 501 of file deflate.cc.
References s.
local void fill_window | ( | deflate_state * | s | ) |
Definition at line 1334 of file deflate.cc.
References m, n, NIL, read_buf(), times, UPDATE_HASH, zmemcpy(), and zmemzero().
Referenced by deflate_fast(), deflate_huff(), deflate_rle(), deflate_slow(), deflate_stored(), and deflateSetDictionary().
local void flush_pending | ( | z_streamp | strm | ) |
Definition at line 603 of file deflate.cc.
References _tr_flush_bits(), and zmemcpy().
Referenced by deflate().
local void lm_init | ( | deflate_state * | s | ) |
Definition at line 1058 of file deflate.cc.
References CLEAR_HASH, and L.
Referenced by deflateReset().
local uInt longest_match | ( | deflate_state * | s, |
IPos | cur_match | ||
) |
Definition at line 1099 of file deflate.cc.
References NIL.
Referenced by deflate_fast(), and deflate_slow().
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 591 of file deflate.cc.
Referenced by deflate().
local int read_buf | ( | z_streamp | strm, |
Bytef * | buf, | ||
unsigned | size | ||
) |
Definition at line 1031 of file deflate.cc.
References adler32(), crc32(), and zmemcpy().
Referenced by fill_window().
Definition at line 131 of file deflate.cc.