00001 00023 #ifndef FFMPEG_HUFFMAN_H 00024 #define FFMPEG_HUFFMAN_H 00025 00026 #include "avcodec.h" 00027 #include "bitstream.h" 00028 00029 typedef struct { 00030 int16_t sym; 00031 int16_t n0; 00032 uint32_t count; 00033 } Node; 00034 00035 typedef int (*huff_cmp_t)(const void *va, const void *vb); 00036 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, 00037 Node *nodes, huff_cmp_t cmp, int hnode_first); 00038 00039 #endif /* FFMPEG_HUFFMAN_H */