NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | config |
Macros | |
#define | HASH_BITS 15 |
#define | HASH_SIZE (Uint4)(1<<HASH_BITS) |
#define | HASH_MASK (HASH_SIZE-1) |
#define | WMASK (WSIZE-1) |
#define | NIL 0 /* Tail of hash chains */ |
#define | FAST 4 |
#define | SLOW 2 |
#define | TOO_FAR 4096 |
#define | H_SHIFT ((HASH_BITS+MIN_MATCH-1)/MIN_MATCH) |
#define | max_insert_length max_lazy_match |
#define | EQUAL 0 |
#define | UPDATE_HASH(h, c) (h = (((h)<<H_SHIFT) ^ (c)) & HASH_MASK) |
#define | INSERT_STRING(s, match_head) |
#define | FLUSH_BLOCK(eof) |
Typedefs | |
typedef unsigned short | Pos |
typedef Uint4 | IPos |
typedef struct config | config |
Functions | |
static void | fill_window (void) |
static ulg | deflate_fast (void) |
static int | longest_match (IPos cur_match) |
void | Nlmzip_lm_init (int pack_level, ush *flags) |
ulg | Nlmzip_deflate (void) |
#define EQUAL 0 |
Definition at line 109 of file ct_nlmzip_deflate.cpp.
#define FAST 4 |
Definition at line 86 of file ct_nlmzip_deflate.cpp.
#define FLUSH_BLOCK | ( | eof | ) |
Definition at line 135 of file ct_nlmzip_deflate.cpp.
Definition at line 99 of file ct_nlmzip_deflate.cpp.
#define HASH_BITS 15 |
Definition at line 66 of file ct_nlmzip_deflate.cpp.
#define HASH_MASK (HASH_SIZE-1) |
Definition at line 80 of file ct_nlmzip_deflate.cpp.
Definition at line 79 of file ct_nlmzip_deflate.cpp.
#define INSERT_STRING | ( | s, | |
match_head | |||
) |
Definition at line 126 of file ct_nlmzip_deflate.cpp.
#define max_insert_length max_lazy_match |
Definition at line 106 of file ct_nlmzip_deflate.cpp.
#define NIL 0 /* Tail of hash chains */ |
Definition at line 83 of file ct_nlmzip_deflate.cpp.
#define SLOW 2 |
Definition at line 87 of file ct_nlmzip_deflate.cpp.
#define TOO_FAR 4096 |
Definition at line 92 of file ct_nlmzip_deflate.cpp.
Definition at line 116 of file ct_nlmzip_deflate.cpp.
#define WMASK (WSIZE-1) |
Definition at line 81 of file ct_nlmzip_deflate.cpp.
Definition at line 149 of file ct_nlmzip_deflate.cpp.
typedef unsigned short Pos |
Definition at line 148 of file ct_nlmzip_deflate.cpp.
Definition at line 399 of file ct_nlmzip_deflate.cpp.
References eofile, fill_window(), FLUSH_BLOCK, ins_h, INSERT_STRING, longest_match(), lookahead, match_start, MAX_DIST, max_insert_length, MIN_LOOKAHEAD, MIN_MATCH, NIL, Nlmzip_block_start, Nlmzip_ct_tally(), Nlmzip_strstart, Nlmzip_window, prev_length, and UPDATE_HASH.
Referenced by Nlmzip_deflate().
|
static |
Definition at line 335 of file ct_nlmzip_deflate.cpp.
References eofile, HASH_SIZE, head, lookahead, match_start, MAX_DIST, n, NIL, Nlmzip_block_start, Nlmzip_prev, Nlmzip_ReadData(), Nlmzip_strstart, Nlmzip_window, window_size, and WSIZE.
Referenced by deflate_fast(), Nlmzip_deflate(), and Nlmzip_lm_init().
Definition at line 249 of file ct_nlmzip_deflate.cpp.
References good_match, int, len, match(), match_start, max_chain_length, MAX_DIST, MAX_MATCH, nice_match, NIL, Nlmzip_prev, Nlmzip_strstart, Nlmzip_window, prev_length, and WMASK.
Referenced by deflate_fast(), and Nlmzip_deflate().
ulg Nlmzip_deflate | ( | void | ) |
Definition at line 561 of file ct_nlmzip_deflate.cpp.
References compr_level, deflate_fast(), eofile, fill_window(), FLUSH_BLOCK, INSERT_STRING, longest_match(), lookahead, match_start, MAX_DIST, max_lazy_match, MIN_LOOKAHEAD, MIN_MATCH, NIL, Nlmzip_block_start, Nlmzip_ct_tally(), Nlmzip_strstart, Nlmzip_window, prev_length, and TOO_FAR.
Referenced by Nlmzip_Compress().
Definition at line 494 of file ct_nlmzip_deflate.cpp.
References compr_level, configuration_table, eofile, FAST, fill_window(), flags, config::good_length, good_match, HASH_SIZE, head, ins_h, lookahead, config::max_chain, max_chain_length, config::max_lazy, max_lazy_match, MIN_LOOKAHEAD, MIN_MATCH, config::nice_length, nice_match, Nlmzip_block_start, Nlmzip_ReadData(), Nlmzip_strstart, Nlmzip_window, SLOW, UPDATE_HASH, URCOMPRERR, and WSIZE.
Referenced by Nlmzip_Compress().
|
static |
Definition at line 191 of file ct_nlmzip_deflate.cpp.
Referenced by Nlmzip_deflate(), and Nlmzip_lm_init().
|
static |
Definition at line 209 of file ct_nlmzip_deflate.cpp.
Referenced by Nlmzip_lm_init().
|
static |
Definition at line 174 of file ct_nlmzip_deflate.cpp.
Referenced by deflate_fast(), fill_window(), Nlmzip_deflate(), and Nlmzip_lm_init().
|
static |
Definition at line 194 of file ct_nlmzip_deflate.cpp.
Referenced by longest_match(), and Nlmzip_lm_init().
|
static |
Definition at line 166 of file ct_nlmzip_deflate.cpp.
Referenced by deflate_fast(), fill_window(), and Nlmzip_lm_init().
|
static |
Definition at line 175 of file ct_nlmzip_deflate.cpp.
Referenced by deflate_fast(), fill_window(), Nlmzip_deflate(), and Nlmzip_lm_init().
|
static |
Definition at line 173 of file ct_nlmzip_deflate.cpp.
Referenced by deflate_fast(), fill_window(), longest_match(), Nlmzip_deflate(), and CCompareSeq_locs::x_ComputeOverlapValues().
|
static |
Definition at line 181 of file ct_nlmzip_deflate.cpp.
Referenced by longest_match(), and Nlmzip_lm_init().
|
static |
Definition at line 188 of file ct_nlmzip_deflate.cpp.
Referenced by Nlmzip_deflate(), and Nlmzip_lm_init().
|
static |
Definition at line 197 of file ct_nlmzip_deflate.cpp.
Referenced by longest_match(), and Nlmzip_lm_init().
|
static |
Definition at line 171 of file ct_nlmzip_deflate.cpp.
Referenced by compile_regex(), deflate_fast(), longest_match(), and Nlmzip_deflate().
Definition at line 164 of file ct_nlmzip_deflate.cpp.
Referenced by BLAST_FillInitialWordOptions(), BLAST_GetSuggestedWindowSize(), BOOST_AUTO_TEST_CASE(), CalculateLinkHSPCutoffs(), CProSplignTrimmer::CutFromLeft(), CProSplignTrimmer::CutFromRight(), fill_window(), CContigAssembly::FindDiagFromAlignSet(), s_BlastDiagHashInsert(), s_BlastDiagTableNew(), s_BlastEvenGapLinkHSPs(), s_BlastnDiagHashExtendInitialHit(), s_BlastnDiagTableExtendInitialHit(), and CScoringJob::x_WindowAvgScores().