openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
huffman.cpp File Reference
#include <stdio.h>
#include <strings.h>
#include <memory.h>
#include <malloc.h>
#include <lib/base/huffman.h>
#include <lib/base/eerror.h>

Macros

#define HUFFMAN_MAX_SIZE   4096
 

Functions

bool huffman_read_dictionary (char *file)
 
void huffman_free_dictionary ()
 
void huffman_free_node (type_huffman_node *node)
 
bool huffman_decode (const unsigned char *data, int length, char *result, int result_max_length, bool huffman_debug)
 

Variables

type_huffman_node huffman_root
 

Macro Definition Documentation

◆ HUFFMAN_MAX_SIZE

#define HUFFMAN_MAX_SIZE   4096

Function Documentation

◆ huffman_decode()

bool huffman_decode ( const unsigned char *  data,
int  length,
char *  result,
int  result_max_length,
bool  huffman_debug 
)

◆ huffman_free_dictionary()

void huffman_free_dictionary ( )

◆ huffman_free_node()

void huffman_free_node ( type_huffman_node node)

◆ huffman_read_dictionary()

bool huffman_read_dictionary ( char *  file)

Variable Documentation

◆ huffman_root

type_huffman_node huffman_root