Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
|
#include "deflate.h"
Go to the source code of this file.
Classes | |
struct | static_tree_desc_s |
Macros | |
#define | MAX_BL_BITS 7 |
#define | END_BLOCK 256 |
#define | REP_3_6 16 |
#define | REPZ_3_10 17 |
#define | REPZ_11_138 18 |
#define | Buf_size (8 * 2*sizeof(char)) |
#define | DIST_CODE_LEN 512 /* see definition of array dist_code below */ |
#define | send_code(s, c, tree) send_bits(s, tree[c].Code, tree[c].Len) |
#define | put_short(s, w) |
#define | send_bits(s, value, length) |
#define | SMALLEST 1 |
#define | pqremove(s, tree, top) |
#define | smaller(tree, n, m, depth) |
Functions | |
void tr_static_init | OF ((void)) |
void init_block | OF ((deflate_state *s)) |
void pqdownheap | OF ((deflate_state *s, ct_data *tree, int k)) |
void gen_bitlen | OF ((deflate_state *s, tree_desc *desc)) |
void gen_codes | OF ((ct_data *tree, int max_code, ushf *bl_count)) |
void scan_tree | OF ((deflate_state *s, ct_data *tree, int max_code)) |
void send_all_trees | OF ((deflate_state *s, int lcodes, int dcodes, int blcodes)) |
void compress_block | OF ((deflate_state *s, ct_data *ltree, ct_data *dtree)) |
unsigned bi_reverse | OF ((unsigned value, int length)) |
void copy_block | OF ((deflate_state *s, charf *buf, unsigned len, int header)) |
void | tr_static_init () |
void | _tr_init (deflate_state *s) |
void | init_block (deflate_state *s) |
void | pqdownheap (deflate_state *s, ct_data *tree, int k) |
void | gen_bitlen (deflate_state *s, tree_desc *desc) |
void | gen_codes (ct_data *tree, int max_code, ushf *bl_count) |
void | build_tree (deflate_state *s, tree_desc *desc) |
void | scan_tree (deflate_state *s, ct_data *tree, int max_code) |
void | send_tree (deflate_state *s, ct_data *tree, int max_code) |
int | build_bl_tree (deflate_state *s) |
void | send_all_trees (deflate_state *s, int lcodes, int dcodes, int blcodes) |
void | _tr_stored_block (deflate_state *s, charf *buf, ulg stored_len, int eof) |
void | _tr_align (deflate_state *s) |
void | _tr_flush_block (deflate_state *s, charf *buf, ulg stored_len, int eof) |
int | _tr_tally (deflate_state *s, unsigned dist, unsigned lc) |
void | compress_block (deflate_state *s, ct_data *ltree, ct_data *dtree) |
void | set_data_type (deflate_state *s) |
unsigned | bi_reverse (unsigned code, int len) |
void | bi_flush (deflate_state *s) |
void | bi_windup (deflate_state *s) |
void | copy_block (deflate_state *s, charf *buf, unsigned len, int header) |
Variables | |
const int | extra_lbits [LENGTH_CODES] = {0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0} |
const int | extra_dbits [D_CODES] = {0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13} |
const int | extra_blbits [BL_CODES] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7} |
const uch | bl_order [BL_CODES] = {16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15} |
ct_data | static_ltree [L_CODES+2] |
ct_data | static_dtree [D_CODES] |
uch | _dist_code [DIST_CODE_LEN] |
uch | _length_code [MAX_MATCH-MIN_MATCH+1] |
int | base_length [LENGTH_CODES] |
int | base_dist [D_CODES] |
static_tree_desc | static_l_desc |
static_tree_desc | static_d_desc |
static_tree_desc | static_bl_desc |
#define DIST_CODE_LEN 512 /* see definition of array dist_code below */ |
#define pqremove | ( | s, | |
tree, | |||
top | |||
) |
#define put_short | ( | s, | |
w | |||
) |
#define send_bits | ( | s, | |
value, | |||
length | |||
) |
#define smaller | ( | tree, | |
n, | |||
m, | |||
depth | |||
) |
void _tr_align | ( | deflate_state * | s | ) |
Definition at line 864 of file trees.cc.
Referenced by deflate().
void _tr_flush_block | ( | deflate_state * | s, |
charf * | buf, | ||
ulg | stored_len, | ||
int | eof | ||
) |
Definition at line 892 of file trees.cc.
void _tr_init | ( | deflate_state * | s | ) |
Definition at line 379 of file trees.cc.
Referenced by deflateReset().
void _tr_stored_block | ( | deflate_state * | s, |
charf * | buf, | ||
ulg | stored_len, | ||
int | eof | ||
) |
Definition at line 843 of file trees.cc.
Referenced by _tr_flush_block(), and deflate().
int _tr_tally | ( | deflate_state * | s, |
unsigned | dist, | ||
unsigned | lc | ||
) |
Definition at line 988 of file trees.cc.
void bi_flush | ( | deflate_state * | s | ) |
unsigned bi_reverse | ( | unsigned | code, |
int | len | ||
) |
Definition at line 1102 of file trees.cc.
Referenced by gen_codes(), and tr_static_init().
void bi_windup | ( | deflate_state * | s | ) |
Definition at line 1131 of file trees.cc.
Referenced by _tr_flush_block(), and copy_block().
int build_bl_tree | ( | deflate_state * | s | ) |
Definition at line 782 of file trees.cc.
Referenced by _tr_flush_block().
void build_tree | ( | deflate_state * | s, |
tree_desc * | desc | ||
) |
Definition at line 606 of file trees.cc.
Referenced by _tr_flush_block(), and build_bl_tree().
void compress_block | ( | deflate_state * | s, |
ct_data * | ltree, | ||
ct_data * | dtree | ||
) |
Definition at line 1035 of file trees.cc.
Referenced by _tr_flush_block().
void copy_block | ( | deflate_state * | s, |
charf * | buf, | ||
unsigned | len, | ||
int | header | ||
) |
Definition at line 1149 of file trees.cc.
Referenced by _tr_stored_block().
void gen_bitlen | ( | deflate_state * | s, |
tree_desc * | desc | ||
) |
Definition at line 482 of file trees.cc.
Referenced by build_tree().
Definition at line 567 of file trees.cc.
Referenced by build_tree(), and tr_static_init().
void init_block | ( | deflate_state * | s | ) |
Definition at line 407 of file trees.cc.
Referenced by _tr_flush_block(), and _tr_init().
void init_block OF | ( | (deflate_state *s) | ) |
void copy_block OF | ( | (deflate_state *s, charf *buf, unsigned len, int header) | ) |
void compress_block OF | ( | (deflate_state *s, ct_data *ltree, ct_data *dtree) | ) |
void pqdownheap OF | ( | (deflate_state *s, ct_data *tree, int k) | ) |
void scan_tree OF | ( | (deflate_state *s, ct_data *tree, int max_code) | ) |
void send_all_trees OF | ( | (deflate_state *s, int lcodes, int dcodes, int blcodes) | ) |
void gen_bitlen OF | ( | (deflate_state *s, tree_desc *desc) | ) |
unsigned bi_reverse OF | ( | (unsigned value, int length) | ) |
void tr_static_init OF | ( | (void) | ) |
void pqdownheap | ( | deflate_state * | s, |
ct_data * | tree, | ||
int | k | ||
) |
Definition at line 450 of file trees.cc.
Referenced by build_tree().
void scan_tree | ( | deflate_state * | s, |
ct_data * | tree, | ||
int | max_code | ||
) |
Definition at line 692 of file trees.cc.
Referenced by build_bl_tree().
void send_all_trees | ( | deflate_state * | s, |
int | lcodes, | ||
int | dcodes, | ||
int | blcodes | ||
) |
Definition at line 816 of file trees.cc.
Referenced by _tr_flush_block().
void send_tree | ( | deflate_state * | s, |
ct_data * | tree, | ||
int | max_code | ||
) |
Definition at line 734 of file trees.cc.
Referenced by send_all_trees().
void set_data_type | ( | deflate_state * | s | ) |
Definition at line 1086 of file trees.cc.
Referenced by _tr_flush_block().
void tr_static_init | ( | ) |
Definition at line 235 of file trees.cc.
Referenced by _tr_init().
uch _dist_code[DIST_CODE_LEN] |
Definition at line 102 of file trees.cc.
Referenced by tr_static_init().
Definition at line 108 of file trees.cc.
Referenced by _tr_tally(), compress_block(), and tr_static_init().
int base_dist[D_CODES] |
Definition at line 114 of file trees.cc.
Referenced by compress_block(), and tr_static_init().
int base_length[LENGTH_CODES] |
Definition at line 111 of file trees.cc.
Referenced by compress_block(), and tr_static_init().
Definition at line 70 of file trees.cc.
Referenced by build_bl_tree(), and send_all_trees().
Definition at line 67 of file trees.cc.
Referenced by tr_static_init().
const int extra_dbits[D_CODES] = {0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13} |
Definition at line 64 of file trees.cc.
Referenced by _tr_tally(), compress_block(), and tr_static_init().
const int extra_lbits[LENGTH_CODES] = {0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0} |
Definition at line 61 of file trees.cc.
Referenced by compress_block(), and tr_static_init().
static_tree_desc static_bl_desc |
Definition at line 135 of file trees.cc.
Referenced by _tr_init(), and tr_static_init().
static_tree_desc static_d_desc |
Definition at line 132 of file trees.cc.
Referenced by _tr_init(), and tr_static_init().
Definition at line 97 of file trees.cc.
Referenced by _tr_flush_block(), and tr_static_init().
static_tree_desc static_l_desc |
Definition at line 129 of file trees.cc.
Referenced by _tr_init(), and tr_static_init().
Definition at line 90 of file trees.cc.
Referenced by _tr_align(), _tr_flush_block(), gen_codes(), and tr_static_init().