LMMS
Loading...
Searching...
No Matches
deflate.h File Reference
#include "zutil.h"

Go to the source code of this file.

Classes

struct  ct_data_s
struct  tree_desc_s
struct  internal_state

Macros

#define GZIP
#define NO_DUMMY_DECL
#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 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)
#define MIN_LOOKAHEAD   (MAX_MATCH+MIN_MATCH+1)
#define MAX_DIST(s)
#define d_code(dist)
#define _tr_tally_lit(s, c, flush)
#define _tr_tally_dist(s, distance, length, flush)

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 Pos FAR Posf
typedef unsigned IPos
typedef struct internal_state deflate_state

Functions

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

Variables

uch _length_code []
uch _dist_code []

Macro Definition Documentation

◆ _tr_tally_dist

#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); \
}
unsigned s
Definition inflate.c:1555
uch _length_code[]
Definition trees.c:108
#define LITERALS
Definition deflate.h:35
#define d_code(dist)
Definition deflate.h:292
png_uint_32 length
Definition png.c:2247
int flush(__G__ rawbuf, size, unshrink) __GDEF uch *rawbuf
unsigned short ush
Definition unzip.h:402
unsigned char uch
Definition unzip.h:401

◆ _tr_tally_lit

#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); \
}
return c
Definition crypt.c:175

◆ BL_CODES

#define BL_CODES   19

◆ BUSY_STATE

#define BUSY_STATE   113

◆ Code

#define Code   fc.code

◆ COMMENT_STATE

#define COMMENT_STATE   91

◆ d_code

#define d_code ( dist)
Value:
((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
uch _dist_code[]
Definition trees.c:102

◆ D_CODES

#define D_CODES   30

◆ Dad

#define Dad   dl.dad

◆ EXTRA_STATE

#define EXTRA_STATE   69

◆ FINISH_STATE

#define FINISH_STATE   666

◆ Freq

#define Freq   fc.freq

◆ GZIP

#define GZIP

◆ HCRC_STATE

#define HCRC_STATE   103

◆ HEAP_SIZE

#define HEAP_SIZE   (2*L_CODES+1)

◆ INIT_STATE

#define INIT_STATE   42

◆ L_CODES

#define L_CODES   (LITERALS+1+LENGTH_CODES)

◆ Len

#define Len   dl.len

◆ LENGTH_CODES

#define LENGTH_CODES   29

◆ LITERALS

#define LITERALS   256

◆ MAX_BITS

#define MAX_BITS   15

◆ MAX_DIST

#define MAX_DIST ( s)
Value:
((s)->w_size-MIN_LOOKAHEAD)
#define MIN_LOOKAHEAD
Definition deflate.c:113

◆ max_insert_length

#define max_insert_length   max_lazy_match

◆ MIN_LOOKAHEAD

#define MIN_LOOKAHEAD   (MAX_MATCH+MIN_MATCH+1)

◆ NAME_STATE

#define NAME_STATE   73

◆ NO_DUMMY_DECL

#define NO_DUMMY_DECL

◆ put_byte

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

Typedef Documentation

◆ ct_data

typedef struct ct_data_s ct_data

◆ deflate_state

typedef struct internal_state deflate_state

◆ IPos

typedef unsigned IPos

◆ Pos

typedef ush Pos

◆ Posf

typedef Pos FAR Posf

◆ static_tree_desc

◆ tree_desc

typedef struct tree_desc_s tree_desc

Function Documentation

◆ OF() [1/3]

◆ OF() [2/3]

void _tr_flush_block OF ( (deflate_state *s, charf *buf, ulg stored_len, int eof) )

◆ OF() [3/3]

int _tr_tally OF ( (deflate_state *s, unsigned dist, unsigned lc) )

Variable Documentation

◆ _dist_code

uch _dist_code[]
extern

◆ _length_code

uch _length_code[]
extern