26 #ifndef AVCODEC_HUFFMAN_H
27 #define AVCODEC_HUFFMAN_H
38 #define FF_HUFFMAN_FLAG_HNODE_FIRST 0x01
39 #define FF_HUFFMAN_FLAG_ZERO_COUNT 0x02
40 #define FF_HUFFMAN_BITS 10
int ff_huff_gen_len_table(uint8_t *dst, const uint64_t *stats, int n, int skip0)
int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, int nb_bits, Node *nodes, HuffCmp cmp, int flags)
nodes size must be 2*nb_codes first nb_codes nodes.count must be set
int(* HuffCmp)(const void *va, const void *vb)
static av_always_inline int cmp(MpegEncContext *s, const int x, const int y, const int subx, const int suby, const int size, const int h, int ref_index, int src_index, me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, const int flags)
compares a block (either a full macroblock or a partition thereof) against a proposed motion-compensa...
Libavcodec external API header.
main external API structure.
static void stats(const struct CachedBuf *in, int n_in, unsigned *_max, unsigned *_sum)