TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
#include "zutil.h"
Go to the source code of this file.
Classes | |
struct | ct_data_s |
struct | tree_desc_s |
struct | internal_state |
Macros | |
#define | GZIP |
#define | LENGTH_CODES 29 |
#define | LITERALS 256 |
#define | L_CODES (LITERALS+1+LENGTH_CODES) |
#define | D_CODES 30 |
#define | BL_CODES 19 |
#define | HEAP_SIZE (2*L_CODES+1) |
#define | MAX_BITS 15 |
#define | Buf_size 16 |
#define | INIT_STATE 42 /* zlib header -> BUSY_STATE */ |
#define | GZIP_STATE 57 /* gzip header -> BUSY_STATE | EXTRA_STATE */ |
#define | EXTRA_STATE 69 /* gzip extra block -> NAME_STATE */ |
#define | NAME_STATE 73 /* gzip file name -> COMMENT_STATE */ |
#define | COMMENT_STATE 91 /* gzip comment -> HCRC_STATE */ |
#define | HCRC_STATE 103 /* gzip header CRC -> BUSY_STATE */ |
#define | BUSY_STATE 113 /* deflate -> FINISH_STATE */ |
#define | FINISH_STATE 666 /* stream complete */ |
#define | Freq fc.freq |
#define | Code fc.code |
#define | Dad dl.dad |
#define | Len dl.len |
#define | max_insert_length max_lazy_match |
#define | LIT_BUFS 4 |
#define | put_byte(s, c) {s->pending_buf[s->pending++] = (Bytef)(c);} |
#define | MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1) |
#define | MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD) |
#define | WIN_INIT MAX_MATCH |
#define | d_code(dist) ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)]) |
#define | _tr_tally_lit(s, c, flush) |
#define | _tr_tally_dist(s, distance, length, flush) |
Typedefs | |
typedef struct ct_data_s | ct_data |
typedef struct static_tree_desc_s | static_tree_desc |
typedef struct tree_desc_s | tree_desc |
typedef ush | Pos |
typedef Pos FAR | Posf |
typedef unsigned | IPos |
typedef struct internal_state | deflate_state |
Functions | |
void ZLIB_INTERNAL | _tr_init (deflate_state *s) |
int ZLIB_INTERNAL | _tr_tally (deflate_state *s, unsigned dist, unsigned lc) |
void ZLIB_INTERNAL | _tr_flush_block (deflate_state *s, charf *buf, ulg stored_len, int last) |
void ZLIB_INTERNAL | _tr_flush_bits (deflate_state *s) |
void ZLIB_INTERNAL | _tr_align (deflate_state *s) |
void ZLIB_INTERNAL | _tr_stored_block (deflate_state *s, charf *buf, ulg stored_len, int last) |
Variables | |
uch ZLIB_INTERNAL | _length_code [] |
uch ZLIB_INTERNAL | _dist_code [] |
#define _tr_tally_dist | ( | s, | |
distance, | |||
length, | |||
flush | |||
) |
Definition at line 359 of file deflate.h.
Referenced by deflate_fast(), deflate_rle(), and deflate_slow().
#define _tr_tally_lit | ( | s, | |
c, | |||
flush | |||
) |
Definition at line 351 of file deflate.h.
Referenced by deflate_fast(), deflate_huff(), deflate_rle(), and deflate_slow().
#define BL_CODES 19 |
Definition at line 46 of file deflate.h.
Referenced by build_bl_tree(), init_block(), and send_all_trees().
#define Buf_size 16 |
Definition at line 55 of file deflate.h.
Referenced by deflatePrime().
#define BUSY_STATE 113 /* deflate -> FINISH_STATE */ |
Definition at line 66 of file deflate.h.
Referenced by deflate(), deflateEnd(), and deflateStateCheck().
#define Code fc.code |
Definition at line 84 of file deflate.h.
Referenced by gen_codes().
#define COMMENT_STATE 91 /* gzip comment -> HCRC_STATE */ |
Definition at line 64 of file deflate.h.
Referenced by deflate(), and deflateStateCheck().
#define d_code | ( | dist | ) | ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)]) |
Definition at line 314 of file deflate.h.
Referenced by _tr_tally(), and compress_block().
#define D_CODES 30 |
Definition at line 43 of file deflate.h.
Referenced by init_block(), and tr_static_init().
#define EXTRA_STATE 69 /* gzip extra block -> NAME_STATE */ |
Definition at line 62 of file deflate.h.
Referenced by deflate(), and deflateStateCheck().
#define FINISH_STATE 666 /* stream complete */ |
Definition at line 67 of file deflate.h.
Referenced by deflate(), deflateInit2_(), and deflateStateCheck().
#define Freq fc.freq |
Definition at line 83 of file deflate.h.
Referenced by build_tree().
#define GZIP |
Definition at line 23 of file deflate.h.
Referenced by deflateStateCheck(), gz_fetch(), and gz_look().
#define GZIP_STATE 57 /* gzip header -> BUSY_STATE | EXTRA_STATE */ |
Definition at line 60 of file deflate.h.
Referenced by deflate(), deflateResetKeep(), and deflateStateCheck().
#define HCRC_STATE 103 /* gzip header CRC -> BUSY_STATE */ |
Definition at line 65 of file deflate.h.
Referenced by deflate(), and deflateStateCheck().
#define HEAP_SIZE (2*L_CODES+1) |
Definition at line 49 of file deflate.h.
Referenced by build_tree(), and gen_bitlen().
#define INIT_STATE 42 /* zlib header -> BUSY_STATE */ |
Definition at line 58 of file deflate.h.
Referenced by deflate(), deflateInit2_(), deflateResetKeep(), deflateSetDictionary(), and deflateStateCheck().
#define L_CODES (LITERALS+1+LENGTH_CODES) |
Definition at line 40 of file deflate.h.
Referenced by init_block(), and tr_static_init().
#define Len dl.len |
Definition at line 86 of file deflate.h.
Referenced by gen_bitlen().
#define LENGTH_CODES 29 |
Definition at line 34 of file deflate.h.
Referenced by tr_static_init().
#define LIT_BUFS 4 |
Definition at line 229 of file deflate.h.
Referenced by deflateCopy(), and deflateInit2_().
#define LITERALS 256 |
Definition at line 37 of file deflate.h.
Referenced by _tr_tally(), compress_block(), and detect_data_type().
#define MAX_BITS 15 |
Definition at line 52 of file deflate.h.
Referenced by gen_bitlen(), gen_codes(), and tr_static_init().
#define MAX_DIST | ( | s | ) | ((s)->w_size-MIN_LOOKAHEAD) |
Definition at line 295 of file deflate.h.
Referenced by _tr_tally(), deflate_fast(), deflate_slow(), fill_window(), and longest_match().
Definition at line 290 of file deflate.h.
Referenced by deflate_fast(), deflate_slow(), fill_window(), and longest_match().
#define NAME_STATE 73 /* gzip file name -> COMMENT_STATE */ |
Definition at line 63 of file deflate.h.
Referenced by deflate(), and deflateStateCheck().
#define put_byte | ( | s, | |
c | |||
) | {s->pending_buf[s->pending++] = (Bytef)(c);} |
Definition at line 287 of file deflate.h.
Referenced by bi_flush(), bi_windup(), deflate(), and putShortMSB().
#define WIN_INIT MAX_MATCH |
Definition at line 300 of file deflate.h.
Referenced by fill_window().
typedef struct internal_state deflate_state |
typedef struct static_tree_desc_s static_tree_desc |
typedef struct tree_desc_s tree_desc |
void ZLIB_INTERNAL _tr_align | ( | deflate_state * | s | ) |
Definition at line 886 of file trees.c.
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 878 of file trees.c.
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 995 of file trees.c.
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::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::strm, internal_state::sym_next, Tracev, Z_FIXED, and Z_UNKNOWN.
void ZLIB_INTERNAL _tr_init | ( | deflate_state * | s | ) |
Definition at line 455 of file trees.c.
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 858 of file trees.c.
References bi_windup(), internal_state::pending, internal_state::pending_buf, put_short, send_bits, STORED_BLOCK, and zmemcpy().
Referenced by _tr_flush_block(), deflate(), and deflate_stored().
int ZLIB_INTERNAL _tr_tally | ( | deflate_state * | s, |
unsigned | dist, | ||
unsigned | lc | ||
) |
Definition at line 1093 of file trees.c.
References _length_code, Assert, d_code, internal_state::dyn_dtree, internal_state::dyn_ltree, LITERALS, internal_state::matches, MAX_DIST, MAX_MATCH, internal_state::sym_buf, internal_state::sym_end, and internal_state::sym_next.
uch ZLIB_INTERNAL _dist_code[] |
Definition at line 98 of file trees.c.
Referenced by tr_static_init().
uch ZLIB_INTERNAL _length_code[] |
Definition at line 104 of file trees.c.
Referenced by _tr_tally(), compress_block(), and tr_static_init().