26#ifndef AVCODEC_HUFFMAN_H
27#define AVCODEC_HUFFMAN_H
39#define FF_HUFFMAN_FLAG_HNODE_FIRST 0x01
40#define FF_HUFFMAN_FLAG_ZERO_COUNT 0x02
42typedef int (*
HuffCmp)(
const void *va,
const void *vb);
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define flags(name, subs,...)
static CheckasmStats stats
int ff_huff_gen_len_table(uint8_t *dst, const uint64_t *stats, int n, int skip0)
int(* HuffCmp)(const void *va, const void *vb)
int ff_huff_build_tree(void *logctx, 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
static av_always_inline int cmp(MPVEncContext *const 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...