Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

include/huffman.h File Reference


Detailed Description

Huffman compression.

See also:
src/huffman.c

Definition in file huffman.h.

#include "substdio.h"

Go to the source code of this file.

Data Structures

struct  hufftable
struct  huffdecompresstable_entry
struct  huffdecompresstable

Typedefs

typedef hufftable hufftable
typedef huffdecompresstable_entry huffdecompresstable_entry
typedef huffdecompresstable huffdecompresstable

Functions

void fhuffmaninit_write (void)
void fhuffmanflush (FILE *f)
void fhuffmaninit_read (void)
void fhuffmanputc (unsigned char c, FILE *f)
char fhuffmangetc (FILE *f)


Typedef Documentation

typedef struct huffdecompresstable huffdecompresstable
 

typedef struct huffdecompresstable_entry huffdecompresstable_entry
 

typedef struct hufftable hufftable
 


Function Documentation

void fhuffmanflush FILE *  f  ) 
 

Definition at line 59 of file huffman.c.

References _hp_pending, and _hp_pending_length.

Referenced by fhuffmanputc(), save_game(), and save_level().

char fhuffmangetc FILE *  f  ) 
 

Definition at line 81 of file huffman.c.

References _hg_pending, _hg_pending_length, huffdecompresstable_entry::binrep, huffdecompresstable_entry::binreplen, huffdecompresstable_entry::byterep, huffdecompresstable::entries, and huff_decompress.

Referenced by _rleread_huffman().

void fhuffmaninit_read void   ) 
 

Definition at line 75 of file huffman.c.

References _hg_pending, and _hg_pending_length.

Referenced by load_level(), and restore_game().

void fhuffmaninit_write void   ) 
 

Definition at line 40 of file huffman.c.

References _hp_pending, and _hp_pending_length.

Referenced by save_game(), and save_level().

void fhuffmanputc unsigned char  c,
FILE *  f
 

Definition at line 46 of file huffman.c.

References _hp_pending, _hp_pending_length, fhuffmanflush(), huff_compress, hufftable::rep, and hufftable::replen.

Referenced by save_game(), and save_level().


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6