libavcodec/huffman.h File Reference

huffman tree builder and VLC generator More...

#include "avcodec.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  Node

Defines

#define FF_HUFFMAN_FLAG_HNODE_FIRST   0x01
#define FF_HUFFMAN_FLAG_ZERO_COUNT   0x02

Typedefs

typedef int(* HuffCmp )(const void *va, const void *vb)

Functions

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


Detailed Description

huffman tree builder and VLC generator

Definition in file huffman.h.


Define Documentation

#define FF_HUFFMAN_FLAG_HNODE_FIRST   0x01

Definition at line 38 of file huffman.h.

Referenced by ff_huff_build_tree(), and vp6_build_huff_tree().

#define FF_HUFFMAN_FLAG_ZERO_COUNT   0x02

Definition at line 39 of file huffman.h.

Referenced by build_huff_tree(), and fraps2_decode_plane().


Typedef Documentation

typedef int(* HuffCmp)(const void *va, const void *vb)

Definition at line 41 of file huffman.h.


Function Documentation

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().


Generated on Fri Oct 26 02:46:08 2012 for FFmpeg by  doxygen 1.5.8