Mercurial > libavcodec.hg
comparison huffman.h @ 6473:e0cd9697ac6d libavcodec
huffman: add a zero_count flag and use it in fraps
fixes issue349
author | aurel |
---|---|
date | Sat, 08 Mar 2008 18:08:16 +0000 |
parents | e39e03d99d24 |
children | c4a4495715dd |
comparison
equal
deleted
inserted
replaced
6472:e39e03d99d24 | 6473:e0cd9697ac6d |
---|---|
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 | 35 #define FF_HUFFMAN_FLAG_HNODE_FIRST 0x01 |
36 #define FF_HUFFMAN_FLAG_ZERO_COUNT 0x02 | |
36 | 37 |
37 typedef int (*huff_cmp_t)(const void *va, const void *vb); | 38 typedef int (*huff_cmp_t)(const void *va, const void *vb); |
38 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, | 39 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, |
39 Node *nodes, huff_cmp_t cmp, int flags); | 40 Node *nodes, huff_cmp_t cmp, int flags); |
40 | 41 |