GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LDT / V0-3-3
Constituent: encdec_unit_test     Tag: linux-gcc
#include "LDT/BA.h"
#include "PBI/Endianness.h"
Include dependency graph for HUFF.h:
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | _HUFF_code |
Structure to contain the Huffman code, both the bit pattern and its length. More... | |
struct | _HUFF_symbol_bf |
The information associate with a decoded symbol. More... | |
union | _HUFF_symbol |
Defines | |
#define | HUFF_N_WA(_cnt) (HUFF_N_HEAP(_cnt) + HUFF_N_PARENTS(_cnt)) |
Gives the number of elements needed by the temporary wa array based of the number of elements in the frequency table. | |
#define | HUFF_ENCODE(_out, _buffer, _togo, _codes, _sym) |
Macro to encode one symbol using the specified code table. | |
Typedefs | |
typedef _HUFF_dtable | HUFF_dtable |
typedef _HUFF_code | HUFF_code |
Typedef for struct _HUFF_code. | |
typedef _HUFF_symbol_bf | HUFF_symbol_bf |
typedef _HUFF_symbol | HUFF_symbol |
Functions | |
int | HUFF_build (HUFF_code *codes, const unsigned int *freqs, int count, unsigned int *wa) |
int | HUFF_buildDense (HUFF_code *codes, const unsigned int *freq, const unsigned int *valid, int nvalid, unsigned int *wa) |
int | HUFF_buildSparse (HUFF_code *codes, const unsigned int *freq, const unsigned int *valid, int nvalid, unsigned int *wa) |
int | HUFF_bcompress (void *out, unsigned int boff, void *max, const HUFF_code *codes, const unsigned char *in, int cnt, int *unencoded) |
int | HUFF_size (const HUFF_code *codes, const unsigned int *freqs, int count) |
int | HUFF_sizeDense (const HUFF_code *codes, const unsigned int *freq, const unsigned int *valid, int nvalid) |
int | HUFF_sizeSparse (const HUFF_code *codes, const unsigned int *freq, const unsigned int *valid, int nvalid) |
int | HUFF_dtableSizeof (int nsymbols) |
void | HUFF_dtableBuild (HUFF_dtable *dtable, const unsigned char *sym_lens, int nsymbols) |
void | HUFF_dtableBiase (HUFF_dtable *dtable, int biase) |
void | HUFF_dtablePrint (const HUFF_dtable *dtable) |
unsigned int | HUFF_decode (const HUFF_dtable *dtable, const unsigned int *src, unsigned int boff) |
int | HUFF_decompressBytes (unsigned char *dst, int cnt, const void *src, unsigned int boff, const HUFF_dtable *dtable) |
int | HUFF_decompressShorts (unsigned short int *dst, int cnt, const void *src, unsigned int boff, const HUFF_dtable *dtable) |
int | HUFF_decompressLongs (unsigned int *dst, int cnt, const void *src, unsigned int boff, const HUFF_dtable *dtable) |
void | HUFF_codesPrint (const HUFF_code *codes, int ncodes) |
CVS $Id
|
Value: { \ HUFF_code code = _codes[_sym]; \ int len = code.len; \ unsigned int pat = code.pat; \ BA_WRITE_R(_out, _buffer, _togo, pat, len); \ }
|
|
Gives the number of elements needed by the temporary wa array based of the number of elements in the frequency table.
|