Mercurial > libavcodec.hg
comparison huffman.h @ 6472:e39e03d99d24 libavcodec
huffman: pass hnode_first as a flag instead of as an argument on its own
author | aurel |
---|---|
date | Sat, 08 Mar 2008 17:57:13 +0000 |
parents | aa110f457c5a |
children | e0cd9697ac6d |
comparison
equal
deleted
inserted
replaced
6471:b72f6c4cee12 | 6472:e39e03d99d24 |
---|---|
30 int16_t sym; | 30 int16_t sym; |
31 int16_t n0; | 31 int16_t n0; |
32 uint32_t count; | 32 uint32_t count; |
33 } Node; | 33 } Node; |
34 | 34 |
35 #define FF_HUFFMAN_FLAG_HNODE_FIRST 0x01 | |
36 | |
35 typedef int (*huff_cmp_t)(const void *va, const void *vb); | 37 typedef int (*huff_cmp_t)(const void *va, const void *vb); |
36 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, | 38 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, |
37 Node *nodes, huff_cmp_t cmp, int hnode_first); | 39 Node *nodes, huff_cmp_t cmp, int flags); |
38 | 40 |
39 #endif /* FFMPEG_HUFFMAN_H */ | 41 #endif /* FFMPEG_HUFFMAN_H */ |