abc-master
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "misc/util/abc_global.h"
#include "deflate.h"
Go to the source code of this file.
Data Structures | |
struct | config_s |
struct | static_tree_desc_s |
Macros | |
#define | NIL 0 |
#define | TOO_FAR 4096 |
#define | EQUAL 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 } |
Variables | |
ABC_NAMESPACE_IMPL_START const char | deflate_copyright [] |
local const config | configuration_table [10] |
#define CLEAR_HASH | ( | s | ) |
#define FLUSH_BLOCK | ( | s, | |
last | |||
) |
#define FLUSH_BLOCK_ONLY | ( | s, | |
last | |||
) |
#define INSERT_STRING | ( | s, | |
str, | |||
match_head | |||
) |
#define UPDATE_HASH | ( | s, | |
h, | |||
c | |||
) | (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask) |
ZEXTERN uLong ZEXPORT crc32_combine64 OF | ( | (deflate_state *s, int flush) | ) |
enum block_state |
Enumerator | |
---|---|
need_more | |
block_done | |
finish_started | |
finish_done |
Definition at line 555 of file deflate.c.
local block_state deflate_fast | ( | deflate_state * | s, |
int | flush | ||
) |
local block_state deflate_huff | ( | deflate_state * | s, |
int | flush | ||
) |
local block_state deflate_rle | ( | deflate_state * | s, |
int | flush | ||
) |
local block_state deflate_slow | ( | deflate_state * | s, |
int | flush | ||
) |
local block_state deflate_stored | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 464 of file deflate.c.
Definition at line 900 of file deflate.c.
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 213 of file deflate.c.
Definition at line 205 of file deflate.c.
Definition at line 398 of file deflate.c.
Definition at line 345 of file deflate.c.
Definition at line 306 of file deflate.c.
int ZEXPORT deflateSetHeader | ( | z_streamp | strm, |
gz_headerp | head | ||
) |
int ZEXPORT deflateTune | ( | z_streamp | strm, |
int | good_length, | ||
int | max_lazy, | ||
int | nice_length, | ||
int | max_chain | ||
) |
Definition at line 434 of file deflate.c.
local void fill_window | ( | deflate_state * | s | ) |
Definition at line 1262 of file deflate.c.
Definition at line 536 of file deflate.c.
local void lm_init | ( | deflate_state * | s | ) |
local uInt longest_match | ( | deflate_state * | s, |
IPos | cur_match | ||
) |
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 960 of file deflate.c.
ABC_NAMESPACE_IMPL_START const char deflate_copyright[] |