X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fhuffman.h;h=043e6e399136dc1966c1abc84da737bb871f252d;hb=7288b345850792430302a8f85a4b29140b770497;hp=5625313ac7dd6d4752c342424d2e35ed9bc1186a;hpb=6168781f70ebac7da557207750d14f57c3cd4cb3;p=ffmpeg diff --git a/libavcodec/huffman.h b/libavcodec/huffman.h index 5625313ac7d..043e6e39913 100644 --- a/libavcodec/huffman.h +++ b/libavcodec/huffman.h @@ -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 */