]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/huffman.h
ff_parse_close() is not the correct function for H264Context.
[ffmpeg] / libavcodec / huffman.h
index ec3c0c9ab1b708fd6b34cbfe1c9530ee364fb43f..0b11af8b45dc8a01c129b9285c23a5d52673a9ac 100644 (file)
@@ -24,6 +24,7 @@
 #define AVCODEC_HUFFMAN_H
 
 #include "avcodec.h"
+#include "bitstream.h"
 
 typedef struct {
     int16_t  sym;
@@ -31,8 +32,11 @@ typedef struct {
     uint32_t count;
 } Node;
 
+#define FF_HUFFMAN_FLAG_HNODE_FIRST 0x01
+#define FF_HUFFMAN_FLAG_ZERO_COUNT  0x02
+
 typedef int (*huff_cmp_t)(const void *va, const void *vb);
 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes,
-                       Node *nodes, huff_cmp_t cmp, int hnode_first);
+                       Node *nodes, huff_cmp_t cmp, int flags);
 
 #endif /* AVCODEC_HUFFMAN_H */