libmpcdec: include/mpcdec/huffman.h File Reference

Main Page | Class List | Directories | File List | Class Members | File Members | Related Pages

# huffman.h File Reference

`#include "mpcdec/config_types.h"`
`#include "decoder.h"`

Go to the source code of this file.

## Classes

struct | huffman_type_t
| Huffman table entry. More...

## Typedefs

typedef huffman_type_t | HuffmanTyp
| Huffman table entry.

## Functions

void | mpc_decoder_resort_huff_tables (const mpc_uint32_t elements, HuffmanTyp *Table, const mpc_int32_t offset)
| Sorts huffman-tables by codeword.
void | mpc_decoder_init_huffman_sv6 (struct mpc_decoder_t *d)
| Initializes sv6 huffman decoding structures.
void | mpc_decoder_init_huffman_sv6_tables (struct mpc_decoder_t *d)
| Initializes sv6 huffman decoding tables.
void | mpc_decoder_init_huffman_sv7 (struct mpc_decoder_t *d)
| Initializes sv7 huffman decoding structures.
void | mpc_decoder_init_huffman_sv7_tables (struct mpc_decoder_t *d)
| Initializes sv7 huffman decoding tables.

## Detailed Description

Data structures and functions for huffman coding.

Definition in file huffman.h.

## Function Documentation

void mpc_decoder_resort_huff_tables | ( | const mpc_uint32_t | elements,
|  | HuffmanTyp * | Table,
|  | const mpc_int32_t | offset
| ) |

Sorts huffman-tables by codeword.

offset resulting value.

Parameters:

  | elements |
  | Table | table to sort
  | offset | offset of resulting sort

Definition at line 187 of file mpc_decoder.c.

References huffman_type_t::Code, huffman_type_t::Length, and huffman_type_t::Value.

Referenced by mpc_decoder_init_huffman_sv6(), and mpc_decoder_init_huffman_sv7().