Context algorithm
Semi-predictive context algorithm implementation
 All Data Structures Files Functions Variables Typedefs Macros Pages
encoder.h File Reference
#include "fsmTree.h"

Go to the source code of this file.

Functions

void encode (fsmTree_t, FILE *, const Uchar *text, const Uint textlen, const BOOL useSee)
 Encode the input data into the output file using the tree as model. More...
 
void encodeBin (fsmTree_t, FILE *, const Uchar *text, const Uint textlen)
 Encode the binary input data into the output file using the tree as model. More...
 

Function Documentation

void encode ( fsmTree_t  tree,
FILE *  compressedFile,
const Uchar text,
const Uint  textlen,
const BOOL  useSee 
)

Encode the input data into the output file using the tree as model.

Parameters
[in]treemodel tree.
[in]compressedFilefile to output the compressed data.
[in]texttext to compress.
[in]textlenlength of the text to compress
[in]useSeeif see will be used

Definition at line 126 of file encoder.c.

void encodeBin ( fsmTree_t  ,
FILE *  ,
const Uchar text,
const Uint  textlen 
)

Encode the binary input data into the output file using the tree as model.