Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
huffencode.cpp File Reference
#include <string.h>
#include "codex.h"
#include "huffcodex.h"

Go to the source code of this file.

Classes

struct  HUFFMemStruct
 
struct  HuffEncodeContext
 

Macros

#define __HUFWRITE   1
 
#define HUFFBIGNUM   32000
 
#define HUFFTREESIZE   520
 
#define HUFFCODES   256
 
#define HUFFMAXBITS   16
 
#define HUFFREPTBL   252
 

Functions

int GCALL HUFF_encode (void *compresseddata, const void *source, int sourcesize, int *opts)
 

Macro Definition Documentation

◆ __HUFWRITE

#define __HUFWRITE   1

Definition at line 22 of file huffencode.cpp.

◆ HUFFBIGNUM

#define HUFFBIGNUM   32000

Definition at line 38 of file huffencode.cpp.

◆ HUFFCODES

#define HUFFCODES   256

Definition at line 40 of file huffencode.cpp.

◆ HUFFMAXBITS

#define HUFFMAXBITS   16

Definition at line 41 of file huffencode.cpp.

◆ HUFFREPTBL

#define HUFFREPTBL   252

Definition at line 42 of file huffencode.cpp.

◆ HUFFTREESIZE

#define HUFFTREESIZE   520

Definition at line 39 of file huffencode.cpp.

Function Documentation

◆ HUFF_encode()

int GCALL HUFF_encode ( void * compresseddata,
const void * source,
int sourcesize,
int * opts )

Definition at line 1179 of file huffencode.cpp.