Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
infback.c File Reference
#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"
Include dependency graph for infback.c:

Go to the source code of this file.

Macros

#define LOAD()
 
#define RESTORE()
 
#define INITBITS()
 
#define PULL()
 
#define PULLBYTE()
 
#define NEEDBITS(n)
 
#define BITS(n)   ((unsigned)hold & ((1U << (n)) - 1))
 
#define DROPBITS(n)
 
#define BYTEBITS()
 
#define ROOM()
 

Functions

static void fixedtables ()
 
int inflateBackInit_ (z_streamp strm, int windowBits, unsigned char *window, char *version, int stream_size)
 
static void fixedtables (struct inflate_state *state)
 
int inflateBack (z_streamp strm, in_func in, void *in_desc, out_func out, void *out_desc)
 
int inflateBackEnd (z_streamp strm)
 

Macro Definition Documentation

#define BITS (   n)    ((unsigned)hold & ((1U << (n)) - 1))

Definition at line 190 of file infback.c.

#define BYTEBITS ( )
Value:
do { \
hold >>= bits & 7; \
bits -= bits & 7; \
} while (0)
static int bits(struct state *s, int need)
Definition: blast.c:68

Definition at line 201 of file infback.c.

#define DROPBITS (   n)
Value:
do { \
hold >>= (n); \
bits -= (unsigned)(n); \
} while (0)

Definition at line 194 of file infback.c.

#define INITBITS ( )
Value:
do { \
hold = 0; \
bits = 0; \
} while (0)

Definition at line 150 of file infback.c.

#define LOAD ( )
Value:
do { \
put = strm->next_out; \
left = strm->avail_out; \
next = strm->next_in; \
have = strm->avail_in; \
hold = state->hold; \
bits = state->bits; \
} while (0)
Definition: blast.c:37

Definition at line 128 of file infback.c.

#define NEEDBITS (   n)
Value:
do { \
while (bits < (unsigned)(n)) \
PULLBYTE(); \
} while (0)
static int bits(struct state *s, int need)
Definition: blast.c:68

Definition at line 183 of file infback.c.

#define PULL ( )
Value:
do { \
if (have == 0) { \
have = in(in_desc, &next); \
if (have == 0) { \
next = Z_NULL; \
ret = Z_BUF_ERROR; \
goto inf_leave; \
} \
} \
} while (0)
#define Z_BUF_ERROR
Definition: zlib.h:180
static unsigned in(void *in_desc, z_const unsigned char **buf)
Definition: gun.c:89
#define Z_NULL
Definition: zlib.h:208

Definition at line 158 of file infback.c.

#define PULLBYTE ( )
Value:
do { \
PULL(); \
have--; \
hold += (unsigned long)(*next++) << bits; \
bits += 8; \
} while (0)
static int bits(struct state *s, int need)
Definition: blast.c:68

Definition at line 172 of file infback.c.

#define RESTORE ( )
Value:
do { \
strm->next_out = put; \
strm->avail_out = left; \
strm->next_in = next; \
strm->avail_in = have; \
state->hold = hold; \
state->bits = bits; \
} while (0)
static int bits(struct state *s, int need)
Definition: blast.c:68

Definition at line 139 of file infback.c.

#define ROOM ( )
Value:
do { \
if (left == 0) { \
put = state->window; \
left = state->wsize; \
state->whave = left; \
if (out(out_desc, put, left)) { \
ret = Z_BUF_ERROR; \
goto inf_leave; \
} \
} \
} while (0)
Definition: blast.c:37
static int out(void *out_desc, unsigned char *buf, unsigned len)
Definition: gun.c:131
#define Z_BUF_ERROR
Definition: zlib.h:180

Definition at line 210 of file infback.c.

Function Documentation

static void fixedtables ( )
static
static void fixedtables ( struct inflate_state state)
static

Definition at line 82 of file infback.c.

int inflateBack ( z_streamp  strm,
in_func  in,
void *  in_desc,
out_func  out,
void *  out_desc 
)

Definition at line 250 of file infback.c.

int inflateBackEnd ( z_streamp  strm)

Definition at line 631 of file infback.c.

int inflateBackInit_ ( z_streamp  strm,
int  windowBits,
unsigned char *  window,
char *  version,
int  stream_size 
)

Definition at line 28 of file infback.c.