|
Geant4.10
|
#include "deflate.h"Go to the source code of this file.
Data Structures | |
| 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 | 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) |
Variables | |
| local 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} |
| local 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} |
| local 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} |
| local 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} |
| local ct_data | static_ltree [L_CODES+2] |
| local ct_data | static_dtree [D_CODES] |
| uch | _dist_code [DIST_CODE_LEN] |
| uch | _length_code [MAX_MATCH-MIN_MATCH+1] |
| local int | base_length [LENGTH_CODES] |
| local int | base_dist [D_CODES] |
| local static_tree_desc | static_l_desc |
| local static_tree_desc | static_d_desc |
| local static_tree_desc | static_bl_desc |
| #define DIST_CODE_LEN 512 /* see definition of array dist_code below */ |
| #define END_BLOCK 256 |
Definition at line 50 of file trees.cc.
Referenced by _tr_align(), compress_block(), and init_block().
| #define pqremove | ( | s, | |
| tree, | |||
| top | |||
| ) |
| #define put_short | ( | s, | |
| w | |||
| ) |
Definition at line 176 of file trees.cc.
Referenced by bi_flush(), bi_windup(), and copy_block().
| #define REP_3_6 16 |
Definition at line 53 of file trees.cc.
Referenced by scan_tree(), and send_tree().
| #define REPZ_11_138 18 |
Definition at line 59 of file trees.cc.
Referenced by scan_tree(), and send_tree().
| #define REPZ_3_10 17 |
Definition at line 56 of file trees.cc.
Referenced by scan_tree(), and send_tree().
Definition at line 210 of file trees.cc.
Referenced by _tr_align(), _tr_flush_block(), _tr_stored_block(), compress_block(), send_all_trees(), and send_tree().
Definition at line 163 of file trees.cc.
Referenced by _tr_align(), compress_block(), and send_tree().
| #define smaller | ( | tree, | |
| n, | |||
| m, | |||
| depth | |||
| ) |
| #define SMALLEST 1 |
Definition at line 419 of file trees.cc.
Referenced by build_tree().
| void ZLIB_INTERNAL _tr_align | ( | deflate_state * | s | ) |
Definition at line 863 of file trees.cc.
References bi_flush(), END_BLOCK, send_bits, send_code, static_ltree, and STATIC_TREES.
Referenced by deflate().
| void ZLIB_INTERNAL _tr_flush_bits | ( | deflate_state * | s | ) |
Definition at line 854 of file trees.cc.
References bi_flush().
Referenced by deflatePrime(), and flush_pending().
| void ZLIB_INTERNAL _tr_flush_block | ( | deflate_state * | s, |
| charf * | buf, | ||
| ulg | stored_len, | ||
| int | last | ||
| ) |
Definition at line 877 of file trees.cc.
References _tr_stored_block(), Assert, bi_windup(), build_bl_tree(), build_tree(), compress_block(), internal_state::d_desc, detect_data_type(), internal_state::dyn_dtree, internal_state::dyn_ltree, DYN_TREES, init_block(), internal_state::l_desc, internal_state::last_lit, internal_state::level, tree_desc_s::max_code, internal_state::opt_len, send_all_trees(), send_bits, static_dtree, internal_state::static_len, static_ltree, STATIC_TREES, internal_state::strategy, internal_state::strm, Tracev, Z_FIXED, and Z_UNKNOWN.
| void ZLIB_INTERNAL _tr_init | ( | deflate_state * | s | ) |
Definition at line 378 of file trees.cc.
References internal_state::bi_buf, internal_state::bi_valid, internal_state::bl_desc, internal_state::bl_tree, internal_state::d_desc, internal_state::dyn_dtree, internal_state::dyn_ltree, tree_desc_s::dyn_tree, init_block(), internal_state::l_desc, tree_desc_s::stat_desc, static_bl_desc, static_d_desc, static_l_desc, and tr_static_init().
Referenced by deflateResetKeep().
| void ZLIB_INTERNAL _tr_stored_block | ( | deflate_state * | s, |
| charf * | buf, | ||
| ulg | stored_len, | ||
| int | last | ||
| ) |
Definition at line 841 of file trees.cc.
References copy_block(), send_bits, and STORED_BLOCK.
Referenced by _tr_flush_block(), and deflate().
| int ZLIB_INTERNAL _tr_tally | ( | deflate_state * | s, |
| unsigned | dist, | ||
| unsigned | lc | ||
| ) |
Definition at line 974 of file trees.cc.
References _length_code, Assert, internal_state::block_start, internal_state::d_buf, d_code, D_CODES, internal_state::dyn_dtree, internal_state::dyn_ltree, extra_dbits, internal_state::l_buf, internal_state::last_lit, internal_state::level, internal_state::lit_bufsize, LITERALS, internal_state::matches, MAX_DIST, MAX_MATCH, internal_state::strstart, and Tracev.
| local void bi_flush | ( | deflate_state * | s | ) |
Definition at line 1124 of file trees.cc.
References internal_state::bi_buf, internal_state::bi_valid, put_byte, and put_short.
Referenced by _tr_align(), and _tr_flush_bits().
Definition at line 1111 of file trees.cc.
Referenced by gen_codes(), and tr_static_init().
| local void bi_windup | ( | deflate_state * | s | ) |
Definition at line 1140 of file trees.cc.
References internal_state::bi_buf, internal_state::bi_valid, put_byte, and put_short.
Referenced by _tr_flush_block(), and copy_block().
| local int build_bl_tree | ( | deflate_state * | s | ) |
Definition at line 780 of file trees.cc.
References BL_CODES, internal_state::bl_desc, bl_order, internal_state::bl_tree, build_tree(), internal_state::d_desc, internal_state::dyn_dtree, internal_state::dyn_ltree, internal_state::l_desc, tree_desc_s::max_code, internal_state::opt_len, scan_tree(), internal_state::static_len, and Tracev.
Referenced by _tr_flush_block().
| local void build_tree | ( | deflate_state * | s, |
| tree_desc * | desc | ||
| ) |
Definition at line 604 of file trees.cc.
References internal_state::bl_count, internal_state::bl_tree, internal_state::depth, tree_desc_s::dyn_tree, static_tree_desc_s::elems, Freq, gen_bitlen(), gen_codes(), internal_state::heap, internal_state::heap_len, internal_state::heap_max, HEAP_SIZE, python.hepunit::m, tree_desc_s::max_code, n, internal_state::opt_len, pqdownheap(), pqremove, SMALLEST, tree_desc_s::stat_desc, internal_state::static_len, and static_tree_desc_s::static_tree.
Referenced by _tr_flush_block(), and build_bl_tree().
| local void compress_block | ( | deflate_state * | s, |
| ct_data * | ltree, | ||
| ct_data * | dtree | ||
| ) |
Definition at line 1021 of file trees.cc.
References _length_code, Assert, base_dist, base_length, internal_state::d_buf, d_code, END_BLOCK, extra_dbits, extra_lbits, internal_state::l_buf, internal_state::last_lit, internal_state::lit_bufsize, LITERALS, internal_state::pending, send_bits, send_code, and Tracecv.
Referenced by _tr_flush_block().
| local void copy_block | ( | deflate_state * | s, |
| charf * | buf, | ||
| unsigned | len, | ||
| int | header | ||
| ) |
Definition at line 1158 of file trees.cc.
References bi_windup(), put_byte, and put_short.
Referenced by _tr_stored_block().
| local int detect_data_type | ( | deflate_state * | s | ) |
Definition at line 1078 of file trees.cc.
References internal_state::dyn_ltree, LITERALS, n, Z_BINARY, and Z_TEXT.
Referenced by _tr_flush_block().
| local void gen_bitlen | ( | deflate_state * | s, |
| tree_desc * | desc | ||
| ) |
Definition at line 480 of file trees.cc.
References internal_state::bl_count, tree_desc_s::dyn_tree, static_tree_desc_s::extra_base, static_tree_desc_s::extra_bits, internal_state::heap, internal_state::heap_max, HEAP_SIZE, Len, python.hepunit::m, MAX_BITS, tree_desc_s::max_code, static_tree_desc_s::max_length, n, internal_state::opt_len, tree_desc_s::stat_desc, internal_state::static_len, static_tree_desc_s::static_tree, and Trace.
Referenced by build_tree().
Definition at line 565 of file trees.cc.
References Assert, bi_reverse(), Code, MAX_BITS, n, static_ltree, Tracecv, and Tracev.
Referenced by build_tree(), and tr_static_init().
| local void init_block | ( | deflate_state * | s | ) |
Definition at line 405 of file trees.cc.
References BL_CODES, internal_state::bl_tree, D_CODES, internal_state::dyn_dtree, internal_state::dyn_ltree, END_BLOCK, L_CODES, internal_state::last_lit, internal_state::matches, n, internal_state::opt_len, and internal_state::static_len.
Referenced by _tr_flush_block(), and _tr_init().
| local void tr_static_init OF | ( | (void) | ) |
| local void init_block OF | ( | (deflate_state *s) | ) |
| local void pqdownheap OF | ( | (deflate_state *s, ct_data *tree, int k) | ) |
| local void gen_bitlen OF | ( | (deflate_state *s, tree_desc *desc) | ) |
| local void send_all_trees OF | ( | (deflate_state *s, int lcodes, int dcodes, int blcodes) | ) |
| local void compress_block OF | ( | (deflate_state *s, ct_data *ltree, ct_data *dtree) | ) |
| local unsigned bi_reverse OF | ( | (unsigned value, int length) | ) |
| local void copy_block OF | ( | (deflate_state *s, charf *buf, unsigned len, int header) | ) |
| local void pqdownheap | ( | deflate_state * | s, |
| ct_data * | tree, | ||
| int | k | ||
| ) |
Definition at line 448 of file trees.cc.
References internal_state::depth, internal_state::heap, smaller, and test::v.
Referenced by build_tree().
| local void scan_tree | ( | deflate_state * | s, |
| ct_data * | tree, | ||
| int | max_code | ||
| ) |
Definition at line 690 of file trees.cc.
References internal_state::bl_tree, n, REP_3_6, REPZ_11_138, and REPZ_3_10.
Referenced by build_bl_tree().
Definition at line 814 of file trees.cc.
References Assert, BL_CODES, bl_order, internal_state::bl_tree, internal_state::dyn_dtree, internal_state::dyn_ltree, send_bits, send_tree(), and Tracev.
Referenced by _tr_flush_block().
| local void send_tree | ( | deflate_state * | s, |
| ct_data * | tree, | ||
| int | max_code | ||
| ) |
Definition at line 732 of file trees.cc.
References Assert, internal_state::bl_tree, n, REP_3_6, REPZ_11_138, REPZ_3_10, send_bits, and send_code.
Referenced by send_all_trees().
Definition at line 231 of file trees.cc.
References _dist_code, _length_code, Assert, base_dist, base_length, bi_reverse(), D_CODES, static_tree_desc_s::extra_bits, extra_blbits, extra_dbits, extra_lbits, gen_codes(), L_CODES, LENGTH_CODES, MAX_BITS, n, static_bl_desc, static_d_desc, static_dtree, static_l_desc, static_ltree, and static_tree_desc_s::static_tree.
Referenced by _tr_init().
| uch _dist_code[DIST_CODE_LEN] |
Definition at line 98 of file trees.cc.
Referenced by tr_static_init().
Definition at line 104 of file trees.cc.
Referenced by _tr_tally(), compress_block(), and tr_static_init().
Definition at line 110 of file trees.cc.
Referenced by compress_block(), and tr_static_init().
| local int base_length[LENGTH_CODES] |
Definition at line 107 of file trees.cc.
Referenced by compress_block(), and tr_static_init().
Definition at line 72 of file trees.cc.
Referenced by build_bl_tree(), and send_all_trees().
Definition at line 69 of file trees.cc.
Referenced by tr_static_init().
| local 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 66 of file trees.cc.
Referenced by _tr_tally(), compress_block(), and tr_static_init().
| local 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 63 of file trees.cc.
Referenced by compress_block(), and tr_static_init().
| local static_tree_desc static_bl_desc |
Definition at line 131 of file trees.cc.
Referenced by _tr_init(), and tr_static_init().
| local static_tree_desc static_d_desc |
Definition at line 128 of file trees.cc.
Referenced by _tr_init(), and tr_static_init().
Definition at line 93 of file trees.cc.
Referenced by _tr_flush_block(), and tr_static_init().
| local static_tree_desc static_l_desc |
Definition at line 125 of file trees.cc.
Referenced by _tr_init(), and tr_static_init().
Definition at line 86 of file trees.cc.
Referenced by _tr_align(), _tr_flush_block(), gen_codes(), and tr_static_init().
1.8.7