RetroArch
Classes | Macros | Typedefs | Enumerations | Functions
huffman.h File Reference
#include "bitstream.h"
Include dependency graph for huffman.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  node_t
 
struct  huffman_decoder
 

Macros

#define __HUFFMAN_H__
 

Typedefs

typedef uint16_t lookup_value
 

Enumerations

enum  huffman_error {
  HUFFERR_NONE = 0, HUFFERR_TOO_MANY_BITS, HUFFERR_INVALID_DATA, HUFFERR_INPUT_BUFFER_TOO_SMALL,
  HUFFERR_OUTPUT_BUFFER_TOO_SMALL, HUFFERR_INTERNAL_INCONSISTENCY, HUFFERR_TOO_MANY_CONTEXTS
}
 

Functions

struct huffman_decodercreate_huffman_decoder (int numcodes, int maxbits)
 
void delete_huffman_decoder (struct huffman_decoder *decoder)
 
uint32_t huffman_decode_one (struct huffman_decoder *decoder, struct bitstream *bitbuf)
 
enum huffman_error huffman_import_tree_rle (struct huffman_decoder *decoder, struct bitstream *bitbuf)
 
enum huffman_error huffman_import_tree_huffman (struct huffman_decoder *decoder, struct bitstream *bitbuf)
 
int huffman_build_tree (struct huffman_decoder *decoder, uint32_t totaldata, uint32_t totalweight)
 
enum huffman_error huffman_assign_canonical_codes (struct huffman_decoder *decoder)
 
enum huffman_error huffman_compute_tree_from_histo (struct huffman_decoder *decoder)
 
void huffman_build_lookup_table (struct huffman_decoder *decoder)
 

Macro Definition Documentation

◆ __HUFFMAN_H__

#define __HUFFMAN_H__

Typedef Documentation

◆ lookup_value

Enumeration Type Documentation

◆ huffman_error

Enumerator
HUFFERR_NONE 
HUFFERR_TOO_MANY_BITS 
HUFFERR_INVALID_DATA 
HUFFERR_INPUT_BUFFER_TOO_SMALL 
HUFFERR_OUTPUT_BUFFER_TOO_SMALL 
HUFFERR_INTERNAL_INCONSISTENCY 
HUFFERR_TOO_MANY_CONTEXTS 

Function Documentation

◆ create_huffman_decoder()

struct huffman_decoder* create_huffman_decoder ( int  numcodes,
int  maxbits 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ delete_huffman_decoder()

void delete_huffman_decoder ( struct huffman_decoder decoder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ huffman_assign_canonical_codes()

enum huffman_error huffman_assign_canonical_codes ( struct huffman_decoder decoder)
Here is the caller graph for this function:

◆ huffman_build_lookup_table()

void huffman_build_lookup_table ( struct huffman_decoder decoder)
Here is the caller graph for this function:

◆ huffman_build_tree()

int huffman_build_tree ( struct huffman_decoder decoder,
uint32_t  totaldata,
uint32_t  totalweight 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ huffman_compute_tree_from_histo()

enum huffman_error huffman_compute_tree_from_histo ( struct huffman_decoder decoder)
Here is the call graph for this function:

◆ huffman_decode_one()

uint32_t huffman_decode_one ( struct huffman_decoder decoder,
struct bitstream bitbuf 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ huffman_import_tree_huffman()

enum huffman_error huffman_import_tree_huffman ( struct huffman_decoder decoder,
struct bitstream bitbuf 
)
Here is the call graph for this function:

◆ huffman_import_tree_rle()

enum huffman_error huffman_import_tree_rle ( struct huffman_decoder decoder,
struct bitstream bitbuf 
)
Here is the call graph for this function:
Here is the caller graph for this function: