Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
defutil.h File Reference

Go to the source code of this file.

Data Structures

struct  ct_data_s
 
struct  tree_desc_s
 
struct  deflate_state
 
struct  deflate_workspace
 

Macros

#define Assert(err, str)
 
#define Trace(dummy)
 
#define Tracev(dummy)
 
#define Tracecv(err, dummy)
 
#define Tracevv(dummy)
 
#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 INIT_STATE   42
 
#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 zlib_deflate_window_memsize(windowBits)   (2 * (1 << (windowBits)) * sizeof(Byte))
 
#define zlib_deflate_prev_memsize(windowBits)   ((1 << (windowBits)) * sizeof(Pos))
 
#define zlib_deflate_head_memsize(memLevel)   ((1 << ((memLevel)+7)) * sizeof(Pos))
 
#define zlib_deflate_overlay_memsize(memLevel)   ((1 << ((memLevel)+6)) * (sizeof(ush)+2))
 
#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 put_short(s, w)
 

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 unsigned IPos
 
typedef struct deflate_state deflate_state
 
typedef struct deflate_workspace deflate_workspace
 

Functions

void zlib_tr_init (deflate_state *s)
 
int zlib_tr_tally (deflate_state *s, unsigned dist, unsigned lc)
 
ulg zlib_tr_flush_block (deflate_state *s, char *buf, ulg stored_len, int eof)
 
void zlib_tr_align (deflate_state *s)
 
void zlib_tr_stored_block (deflate_state *s, char *buf, ulg stored_len, int eof)
 
void zlib_tr_stored_type_only (deflate_state *)
 

Macro Definition Documentation

#define Assert (   err,
  str 
)

Definition at line 4 of file defutil.h.

#define BL_CODES   19

Definition at line 24 of file defutil.h.

#define BUSY_STATE   113

Definition at line 34 of file defutil.h.

#define Code   fc.code

Definition at line 52 of file defutil.h.

#define D_CODES   30

Definition at line 21 of file defutil.h.

#define Dad   dl.dad

Definition at line 53 of file defutil.h.

#define FINISH_STATE   666

Definition at line 35 of file defutil.h.

#define Freq   fc.freq

Definition at line 51 of file defutil.h.

#define HEAP_SIZE   (2*L_CODES+1)

Definition at line 27 of file defutil.h.

#define INIT_STATE   42

Definition at line 33 of file defutil.h.

#define L_CODES   (LITERALS+1+LENGTH_CODES)

Definition at line 18 of file defutil.h.

#define Len   dl.len

Definition at line 54 of file defutil.h.

#define LENGTH_CODES   29

Definition at line 12 of file defutil.h.

#define LITERALS   256

Definition at line 15 of file defutil.h.

#define MAX_BITS   15

Definition at line 30 of file defutil.h.

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

Definition at line 270 of file defutil.h.

#define max_insert_length   max_lazy_match

Definition at line 152 of file defutil.h.

#define MIN_LOOKAHEAD   (MAX_MATCH+MIN_MATCH+1)

Definition at line 265 of file defutil.h.

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

Definition at line 262 of file defutil.h.

#define put_short (   s,
  w 
)
Value:
{ \
put_byte(s, (uch)((w) & 0xff)); \
put_byte(s, (uch)((ush)(w) >> 8)); \
}

Definition at line 290 of file defutil.h.

#define Trace (   dummy)

Definition at line 5 of file defutil.h.

#define Tracecv (   err,
  dummy 
)

Definition at line 7 of file defutil.h.

#define Tracev (   dummy)

Definition at line 6 of file defutil.h.

#define Tracevv (   dummy)

Definition at line 8 of file defutil.h.

#define zlib_deflate_head_memsize (   memLevel)    ((1 << ((memLevel)+7)) * sizeof(Pos))

Definition at line 254 of file defutil.h.

#define zlib_deflate_overlay_memsize (   memLevel)    ((1 << ((memLevel)+6)) * (sizeof(ush)+2))

Definition at line 256 of file defutil.h.

#define zlib_deflate_prev_memsize (   windowBits)    ((1 << (windowBits)) * sizeof(Pos))

Definition at line 252 of file defutil.h.

#define zlib_deflate_window_memsize (   windowBits)    (2 * (1 << (windowBits)) * sizeof(Byte))

Definition at line 250 of file defutil.h.

Typedef Documentation

typedef unsigned IPos

Definition at line 65 of file defutil.h.

typedef ush Pos

Definition at line 64 of file defutil.h.

Definition at line 56 of file defutil.h.

Function Documentation

void zlib_tr_align ( deflate_state s)

Definition at line 829 of file deftree.c.

ulg zlib_tr_flush_block ( deflate_state s,
char buf,
ulg  stored_len,
int  eof 
)

Definition at line 856 of file deftree.c.

void zlib_tr_init ( deflate_state s)

Definition at line 295 of file deftree.c.

void zlib_tr_stored_block ( deflate_state s,
char buf,
ulg  stored_len,
int  eof 
)

Definition at line 792 of file deftree.c.

void zlib_tr_stored_type_only ( deflate_state )

Definition at line 808 of file deftree.c.

int zlib_tr_tally ( deflate_state s,
unsigned  dist,
unsigned  lc 
)

Definition at line 969 of file deftree.c.