]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/huffman.h
cook: use AVCodecContext.channels instead of keeping a private copy
[ffmpeg] / libavcodec / huffman.h
index 5625313ac7dd6d4752c342424d2e35ed9bc1186a..043e6e399136dc1966c1abc84da737bb871f252d 100644 (file)
@@ -29,7 +29,7 @@
 #include "avcodec.h"
 #include "get_bits.h"
 
-typedef struct {
+typedef struct Node {
     int16_t  sym;
     int16_t  n0;
     uint32_t count;
@@ -42,4 +42,6 @@ typedef int (*HuffCmp)(const void *va, const void *vb);
 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes,
                        Node *nodes, HuffCmp cmp, int flags);
 
+void ff_huff_gen_len_table(uint8_t *dst, const uint64_t *stats);
+
 #endif /* AVCODEC_HUFFMAN_H */