huffman tree builder and VLC generator More...
Go to the source code of this file.
Macros | |
#define | HNODE -1 |
Functions | |
static void | get_tree_codes (uint32_t *bits, int16_t *lens, uint8_t *xlat, Node *nodes, int node, uint32_t pfx, int pl, int *pos, int no_zero_count) |
static int | build_huff_tree (VLC *vlc, Node *nodes, int head, int flags) |
int | ff_huff_build_tree (AVCodecContext *avctx, VLC *vlc, int nb_codes, Node *nodes, HuffCmp cmp, int flags) |
nodes size must be 2*nb_codes first nb_codes nodes.count must be set |
#define HNODE -1 |
Definition at line 31 of file huffman.c.
Referenced by ff_huff_build_tree(), and get_tree_codes().
Definition at line 55 of file huffman.c.
Referenced by ff_huff_build_tree().
int ff_huff_build_tree | ( | AVCodecContext * | avctx, |
VLC * | vlc, | ||
int | nb_codes, | ||
Node * | nodes, | ||
HuffCmp | cmp, | ||
int | flags | ||
) |
nodes size must be 2*nb_codes first nb_codes nodes.count must be set
Definition at line 72 of file huffman.c.
Referenced by fraps2_decode_plane(), and vp6_build_huff_tree().
|
static |
Definition at line 34 of file huffman.c.
Referenced by build_huff_tree().