Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
blast.c File Reference
#include <setjmp.h>
#include "blast.h"
Include dependency graph for blast.c:

Go to the source code of this file.

Classes

struct  state
 
struct  huffman
 

Macros

#define local   static /* for local function definitions */
 
#define MAXBITS   13 /* maximum code length */
 
#define MAXWIN   4096 /* maximum window size */
 

Functions

static int bits (struct state *s, int need)
 
static int decode (struct state *s, struct huffman *h)
 
static int construct (struct huffman *h, const unsigned char *rep, int n)
 
static int decomp (struct state *s)
 
int blast (blast_in infun, void *inhow, blast_out outfun, void *outhow)
 

Class Documentation

struct state

Definition at line 37 of file blast.c.

Collaboration diagram for state:
Collaboration graph
Class Members
int bitbuf
int bitcnt
jmp_buf env
int first
unsigned char * in
const unsigned char * in
unsigned long incnt
blast_in infun
void * inhow
unsigned long inlen
unsigned left
unsigned next
unsigned char out[4096]
unsigned char * out
unsigned long outcnt
blast_out outfun
void * outhow
unsigned long outlen
struct huffman

Definition at line 99 of file blast.c.

Collaboration diagram for huffman:
Collaboration graph
Class Members
short * count
short * symbol

Macro Definition Documentation

#define local   static /* for local function definitions */

Definition at line 32 of file blast.c.

#define MAXBITS   13 /* maximum code length */

Definition at line 33 of file blast.c.

#define MAXWIN   4096 /* maximum window size */

Definition at line 34 of file blast.c.

Function Documentation

static int bits ( struct state s,
int  need 
)
static

Definition at line 68 of file blast.c.

int blast ( blast_in  infun,
void *  inhow,
blast_out  outfun,
void *  outhow 
)

Definition at line 379 of file blast.c.

static int construct ( struct huffman h,
const unsigned char *  rep,
int  n 
)
static

Definition at line 187 of file blast.c.

static int decode ( struct state s,
struct huffman h 
)
static

Definition at line 125 of file blast.c.

static int decomp ( struct state s)
static

Definition at line 278 of file blast.c.