Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
blast.c File Reference
#include <setjmp.h>
#include "blast.h"

Go to the source code of this file.

Macros

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

Functions

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

Macro Definition Documentation

◆ local

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

Definition at line 32 of file blast.c.

Referenced by blast().

◆ MAXBITS

#define MAXBITS   13 /* maximum code length */

Definition at line 33 of file blast.c.

Referenced by construct(), decode(), and decomp().

◆ MAXWIN

#define MAXWIN   4096 /* maximum window size */

Definition at line 34 of file blast.c.

Referenced by decomp().

Function Documentation

◆ bits()

local int bits ( struct state *  s,
int  need 
)

Definition at line 68 of file blast.c.

References int.

Referenced by decomp().

◆ blast()

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

Definition at line 379 of file blast.c.

References blast(), CHUNK, decomp(), EOF, inf(), local, and main().

Referenced by blast().

◆ construct()

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

Definition at line 187 of file blast.c.

References for(), and MAXBITS.

Referenced by decomp().

◆ decode()

local int decode ( struct state *  s,
struct huffman *  h 
)

Definition at line 125 of file blast.c.

References code, and MAXBITS.

Referenced by decomp().

◆ decomp()

local int decomp ( struct state *  s)

Definition at line 278 of file blast.c.

References bits(), construct(), decode(), MAXBITS, and MAXWIN.

Referenced by blast().