zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
deflate.h File Reference
#include "zutil.h"

Go to the source code of this file.

Classes

struct  ct_data_s
 
struct  tree_desc_s
 

Macros

#define _tr_tally_dist(s, distance, length, flush)
 
#define _tr_tally_lit(s, c, flush)
 
#define BL_CODES   19
 
#define BUSY_STATE   113
 
#define Code   fc.code
 
#define COMMENT_STATE   91
 
#define d_code(dist)   ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
 
#define D_CODES   30
 
#define Dad   dl.dad
 
#define EXTRA_STATE   69
 
#define FINISH_STATE   666
 
#define Freq   fc.freq
 
#define GZIP
 
#define HCRC_STATE   103
 
#define HEAP_SIZE   (2*L_CODES+1)
 
#define INIT_STATE   42
 
#define L_CODES   (LITERALS+1+LENGTH_CODES)
 
#define Len   dl.len
 
#define LENGTH_CODES   29
 
#define LITERALS   256
 
#define MAX_BITS   15
 
#define MAX_DIST(s)   ((s)->w_size-MIN_LOOKAHEAD)
 
#define max_insert_length   max_lazy_match
 
#define MIN_LOOKAHEAD   (MAX_MATCH+MIN_MATCH+1)
 
#define NAME_STATE   73
 
#define put_byte(s, c)   {s->pending_buf[s->pending++] = (c);}
 
#define WIN_INIT   MAX_MATCH
 

Typedefs

typedef struct ct_data_s ct_data
 
typedef struct internal_state deflate_state
 
typedef unsigned IPos
 
typedef ush Pos
 
typedef Pos FAR Posf
 
typedef struct static_tree_desc_s static_tree_desc
 
typedef struct tree_desc_s tree_desc
 

Functions

void ZLIB_INTERNAL _tr_init OF ((deflate_state *s))
 
int ZLIB_INTERNAL _tr_tally OF ((deflate_state *s, unsigned dist, unsigned lc))
 
void ZLIB_INTERNAL _tr_flush_block OF ((deflate_state *s, charf *buf, ulg stored_len, int last))
 

Variables

uch ZLIB_INTERNAL _dist_code []
 
uch ZLIB_INTERNAL _length_code []
 

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); \
}
GLdouble s
Definition: glew.h:1376
GLenum GLsizei len
Definition: glew.h:7035
#define LITERALS
Definition: deflate.h:33
unsigned char uch
Definition: zutil.h:34
GLsizei GLsizei * length
Definition: gl2ext.h:792
GLsizei GLsizei GLfloat distance
Definition: glew.h:12423
unsigned short ush
Definition: zutil.h:36
#define d_code(dist)
Definition: deflate.h:301
int flush
Definition: zlib.h:309
uch ZLIB_INTERNAL _length_code[]
Definition: trees.c:109

Definition at line 326 of file deflate.h.

Referenced by deflate_fast(), deflate_rle(), and deflate_slow().

#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); \
}
GLdouble s
Definition: glew.h:1376
unsigned char uch
Definition: zutil.h:34
const GLfloat * c
Definition: glew.h:14913
int flush
Definition: zlib.h:309

Definition at line 319 of file deflate.h.

Referenced by deflate_fast(), deflate_huff(), deflate_rle(), and deflate_slow().

#define BL_CODES   19

Definition at line 42 of file deflate.h.

Referenced by build_bl_tree(), init_block(), and send_all_trees().

#define BUSY_STATE   113

Definition at line 56 of file deflate.h.

Referenced by deflate(), deflateEnd(), and deflateReset().

#define Code   fc.code

Definition at line 74 of file deflate.h.

Referenced by gen_codes().

#define COMMENT_STATE   91

Definition at line 54 of file deflate.h.

Referenced by deflate(), and deflateEnd().

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

Definition at line 301 of file deflate.h.

Referenced by _tr_tally(), and compress_block().

#define D_CODES   30

Definition at line 39 of file deflate.h.

Referenced by _tr_tally(), init_block(), and tr_static_init().

#define Dad   dl.dad

Definition at line 75 of file deflate.h.

#define EXTRA_STATE   69

Definition at line 52 of file deflate.h.

Referenced by deflate(), and deflateEnd().

#define FINISH_STATE   666

Definition at line 57 of file deflate.h.

Referenced by deflate(), deflateEnd(), and deflateInit2_().

#define Freq   fc.freq

Definition at line 73 of file deflate.h.

Referenced by build_tree().

#define GZIP

Definition at line 23 of file deflate.h.

Referenced by gz_head(), and gz_make().

#define HCRC_STATE   103

Definition at line 55 of file deflate.h.

Referenced by deflate(), and deflateEnd().

#define HEAP_SIZE   (2*L_CODES+1)

Definition at line 45 of file deflate.h.

Referenced by build_tree(), and gen_bitlen().

#define INIT_STATE   42

Definition at line 51 of file deflate.h.

Referenced by deflate(), deflateEnd(), deflateReset(), and deflateSetDictionary().

#define L_CODES   (LITERALS+1+LENGTH_CODES)

Definition at line 36 of file deflate.h.

Referenced by init_block(), and tr_static_init().

#define Len   dl.len

Definition at line 76 of file deflate.h.

Referenced by gen_bitlen().

#define LENGTH_CODES   29

Definition at line 30 of file deflate.h.

Referenced by tr_static_init().

#define LITERALS   256

Definition at line 33 of file deflate.h.

Referenced by _tr_tally(), compress_block(), and detect_data_type().

#define MAX_BITS   15

Definition at line 48 of file deflate.h.

Referenced by gen_bitlen(), gen_codes(), and tr_static_init().

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

Definition at line 176 of file deflate.h.

#define MIN_LOOKAHEAD   (MAX_MATCH+MIN_MATCH+1)

Definition at line 278 of file deflate.h.

Referenced by deflate_fast(), deflate_slow(), fill_window(), and longest_match().

#define NAME_STATE   73

Definition at line 53 of file deflate.h.

Referenced by deflate(), and deflateEnd().

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

Definition at line 275 of file deflate.h.

Referenced by bi_flush(), bi_windup(), copy_block(), deflate(), and putShortMSB().

#define WIN_INIT   MAX_MATCH

Definition at line 288 of file deflate.h.

Referenced by fill_window().

Typedef Documentation

typedef struct ct_data_s ct_data
typedef struct internal_state deflate_state
typedef unsigned IPos

Definition at line 88 of file deflate.h.

typedef ush Pos

Definition at line 86 of file deflate.h.

typedef Pos FAR Posf

Definition at line 87 of file deflate.h.

typedef struct static_tree_desc_s static_tree_desc

Definition at line 78 of file deflate.h.

typedef struct tree_desc_s tree_desc

Function Documentation

int ZLIB_INTERNAL _tr_tally OF ( (deflate_state *s, unsigned dist, unsigned lc)  )
void ZLIB_INTERNAL _tr_flush_block OF ( (deflate_state *s, charf *buf, ulg stored_len, int last)  )

Variable Documentation

uch ZLIB_INTERNAL _dist_code[]

Definition at line 103 of file trees.c.

Referenced by tr_static_init().

uch ZLIB_INTERNAL _length_code[]

Definition at line 109 of file trees.c.

Referenced by _tr_tally(), compress_block(), and tr_static_init().