Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
deflate.h File Reference
#include "zutil.h"
Include dependency graph for deflate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ct_data
 
struct  tree_desc
 
struct  deflate_state
 
union  ct_data.fc
 
union  ct_data.dl
 

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
 
#define EXTRA_STATE   69
 
#define NAME_STATE   73
 
#define COMMENT_STATE   91
 
#define HCRC_STATE   103
 
#define BUSY_STATE   113
 
#define FINISH_STATE   666
 
#define Freq   fc.freq
 
#define Code   fc.code
 
#define Dad   dl.dad
 
#define Len   dl.len
 
#define max_insert_length   max_lazy_match
 
#define put_byte(s, c)   {s->pending_buf[s->pending++] = (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 ush Pos
 
typedef Pos Posf
 
typedef unsigned IPos
 

Functions

void _tr_init ()
 
int _tr_tally ()
 
void _tr_flush_block ()
 
void _tr_flush_bits ()
 
void _tr_align ()
 
void _tr_stored_block ()
 

Variables

uch _length_code []
 
uch _dist_code []
 

Class Documentation

struct ct_data

Definition at line 65 of file deflate.h.

Collaboration diagram for ct_data:
Collaboration graph
Class Members
union ct_data dl
union ct_data fc
struct tree_desc

Definition at line 83 of file deflate.h.

Collaboration diagram for tree_desc:
Collaboration graph
Class Members
ct_data * dyn_tree
int max_code
static_tree_desc * stat_desc
struct deflate_state

Definition at line 97 of file deflate.h.

Collaboration diagram for deflate_state:
Collaboration graph
Class Members
ush bi_buf
int bi_valid
ush bl_count[15+1]
struct tree_desc_s bl_desc
struct ct_data_s bl_tree[2 *19+1]
long block_start
ushf * d_buf
struct tree_desc_s d_desc
uch depth[2 *(256+1+29)+1]
struct ct_data_s dyn_dtree[2 *30+1]
struct ct_data_s dyn_ltree[(2 *(256+1+29)+1)]
uInt good_match
gz_headerp gzhead
uInt gzindex
uInt hash_bits
uInt hash_mask
uInt hash_shift
uInt hash_size
Posf * head
int heap[2 *(256+1+29)+1]
int heap_len
int heap_max
ulg high_water
uInt ins_h
uInt insert
uchf * l_buf
struct tree_desc_s l_desc
int last_flush
uInt last_lit
int level
uInt lit_bufsize
uInt lookahead
int match_available
uInt match_length
uInt match_start
uInt matches
uInt max_chain_length
uInt max_lazy_match
Byte method
int nice_match
ulg opt_len
uInt pending
Bytef * pending_buf
ulg pending_buf_size
Bytef * pending_out
Posf * prev
uInt prev_length
IPos prev_match
ulg static_len
int status
int strategy
z_streamp strm
uInt strstart
uInt w_bits
uInt w_mask
uInt w_size
Bytef * window
ulg window_size
int wrap
union ct_data.fc

Definition at line 66 of file deflate.h.

Collaboration diagram for ct_data.fc:
Collaboration graph
Class Members
ush code
ush freq
union ct_data.dl

Definition at line 70 of file deflate.h.

Collaboration diagram for ct_data.dl:
Collaboration graph
Class Members
ush dad
ush len

Macro Definition Documentation

#define _tr_tally_dist (   s,
  distance,
  length,
  flush 
)
Value:
{ uch len = (length); \
ush dist = (distance); \
s->d_buf[s->last_lit] = dist; \
s->l_buf[s->last_lit++] = len; \
dist--; \
s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
s->dyn_dtree[d_code(dist)].Freq++; \
flush = (s->last_lit == s->lit_bufsize-1); \
}
#define LITERALS
Definition: deflate.h:33
uch _length_code[]
Definition: trees.c:104
#define d_code(dist)
Definition: deflate.h:305
unsigned char uch
Definition: zutil.h:41

Definition at line 330 of file deflate.h.

#define _tr_tally_lit (   s,
  c,
  flush 
)
Value:
{ uch cc = (c); \
s->d_buf[s->last_lit] = 0; \
s->l_buf[s->last_lit++] = cc; \
s->dyn_ltree[cc].Freq++; \
flush = (s->last_lit == s->lit_bufsize-1); \
}
unsigned char uch
Definition: zutil.h:41

Definition at line 323 of file deflate.h.

#define BL_CODES   19

Definition at line 42 of file deflate.h.

#define Buf_size   16

Definition at line 51 of file deflate.h.

#define BUSY_STATE   113

Definition at line 59 of file deflate.h.

#define Code   fc.code

Definition at line 77 of file deflate.h.

#define COMMENT_STATE   91

Definition at line 57 of file deflate.h.

#define d_code (   dist)    ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])

Definition at line 305 of file deflate.h.

#define D_CODES   30

Definition at line 39 of file deflate.h.

#define Dad   dl.dad

Definition at line 78 of file deflate.h.

#define EXTRA_STATE   69

Definition at line 55 of file deflate.h.

#define FINISH_STATE   666

Definition at line 60 of file deflate.h.

#define Freq   fc.freq

Definition at line 76 of file deflate.h.

#define GZIP

Definition at line 23 of file deflate.h.

#define HCRC_STATE   103

Definition at line 58 of file deflate.h.

#define HEAP_SIZE   (2*L_CODES+1)

Definition at line 45 of file deflate.h.

#define INIT_STATE   42

Definition at line 54 of file deflate.h.

#define L_CODES   (LITERALS+1+LENGTH_CODES)

Definition at line 36 of file deflate.h.

#define Len   dl.len

Definition at line 79 of file deflate.h.

#define LENGTH_CODES   29

Definition at line 30 of file deflate.h.

#define LITERALS   256

Definition at line 33 of file deflate.h.

#define MAX_BITS   15

Definition at line 48 of file deflate.h.

#define MAX_DIST (   s)    ((s)->w_size-MIN_LOOKAHEAD)

Definition at line 286 of file deflate.h.

#define max_insert_length   max_lazy_match

Definition at line 179 of file deflate.h.

#define MIN_LOOKAHEAD   (MAX_MATCH+MIN_MATCH+1)

Definition at line 281 of file deflate.h.

#define NAME_STATE   73

Definition at line 56 of file deflate.h.

#define put_byte (   s,
 
)    {s->pending_buf[s->pending++] = (c);}

Definition at line 278 of file deflate.h.

#define WIN_INIT   MAX_MATCH

Definition at line 291 of file deflate.h.

Typedef Documentation

typedef unsigned IPos

Definition at line 91 of file deflate.h.

typedef ush Pos

Definition at line 89 of file deflate.h.

typedef Pos Posf

Definition at line 90 of file deflate.h.

Function Documentation

void _tr_align ( )
void _tr_flush_bits ( )
void _tr_flush_block ( )
void _tr_init ( )
void _tr_stored_block ( )
int _tr_tally ( )

Variable Documentation

uch _dist_code[]

Definition at line 98 of file trees.c.

uch _length_code[]

Definition at line 104 of file trees.c.