Go to the documentation of this file.
19 #ifndef AVCODEC_ME_CMP_H
20 #define AVCODEC_ME_CMP_H
52 const uint8_t *blk2 , ptrdiff_t
stride,
me_cmp_func hadamard8_diff[6]
void ff_me_cmp_init_x86(MECmpContext *c, AVCodecContext *avctx)
#define attribute_visibility_hidden
int(* sum_abs_dctelem)(const int16_t *block)
void ff_me_cmp_init_ppc(MECmpContext *c, AVCodecContext *avctx)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
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...
void ff_me_cmp_init_alpha(MECmpContext *c, AVCodecContext *avctx)
void ff_me_cmp_init_aarch64(MECmpContext *c, AVCodecContext *avctx)
me_cmp_func median_sad[6]
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
void ff_me_cmp_init_mips(MECmpContext *c, AVCodecContext *avctx)
me_cmp_func frame_skip_cmp[6]
void ff_me_cmp_init_arm(MECmpContext *c, AVCodecContext *avctx)
me_cmp_func pix_abs[2][4]
int ff_set_cmp(MECmpContext *c, me_cmp_func *cmp, int type)
void ff_me_cmp_init(MECmpContext *c, AVCodecContext *avctx)
me_cmp_func me_sub_cmp[6]
const uint32_t attribute_visibility_hidden ff_square_tab[512]
int(* me_cmp_func)(struct MpegEncContext *c, const uint8_t *blk1, const uint8_t *blk2, ptrdiff_t stride, int h)
me_cmp_func me_pre_cmp[6]
me_cmp_func dct264_sad[6]
main external API structure.
void ff_me_cmp_init_riscv(MECmpContext *c, AVCodecContext *avctx)
me_cmp_func quant_psnr[6]
void ff_dsputil_init_dwt(MECmpContext *c)
The exact code depends on how similar the blocks are and how related they are to the block