/**
- * @file huffman.h
+ * @file libavcodec/huffman.h
* huffman tree builder and VLC generator
* Copyright (C) 2007 Aurelien Jacobs <aurel@gnuage.org>
*
#define AVCODEC_HUFFMAN_H
#include "avcodec.h"
+#include "get_bits.h"
typedef struct {
int16_t sym;
uint32_t count;
} Node;
-typedef int (*huff_cmp_t)(const void *va, const void *vb);
+#define FF_HUFFMAN_FLAG_HNODE_FIRST 0x01
+#define FF_HUFFMAN_FLAG_ZERO_COUNT 0x02
+
+typedef int (*HuffCmp)(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, HuffCmp cmp, int flags);
#endif /* AVCODEC_HUFFMAN_H */