FFmpeg
Data Structures | Typedefs | Functions | Variables
me_cmp.h File Reference
#include <stdint.h>
#include "libavutil/attributes_internal.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  MECmpContext
 

Typedefs

typedef int(* me_cmp_func) (struct MpegEncContext *c, const uint8_t *blk1, const uint8_t *blk2, ptrdiff_t stride, int h)
 

Functions

void ff_me_cmp_init (MECmpContext *c, AVCodecContext *avctx)
 
void ff_me_cmp_init_aarch64 (MECmpContext *c, AVCodecContext *avctx)
 
void ff_me_cmp_init_alpha (MECmpContext *c, AVCodecContext *avctx)
 
void ff_me_cmp_init_arm (MECmpContext *c, AVCodecContext *avctx)
 
void ff_me_cmp_init_ppc (MECmpContext *c, AVCodecContext *avctx)
 
void ff_me_cmp_init_riscv (MECmpContext *c, AVCodecContext *avctx)
 
void ff_me_cmp_init_x86 (MECmpContext *c, AVCodecContext *avctx)
 
void ff_me_cmp_init_mips (MECmpContext *c, AVCodecContext *avctx)
 
int ff_set_cmp (const MECmpContext *c, me_cmp_func *cmp, int type, int mpvenc)
 Fill the function pointer array cmp[6] with me_cmp_funcs from c based upon type. More...
 
void ff_dsputil_init_dwt (MECmpContext *c)
 

Variables

const uint32_t attribute_visibility_hidden ff_square_tab [512]
 

Typedef Documentation

◆ me_cmp_func

typedef int(* me_cmp_func) (struct MpegEncContext *c, const uint8_t *blk1, const uint8_t *blk2, ptrdiff_t stride, int h)

Definition at line 50 of file me_cmp.h.

Function Documentation

◆ ff_me_cmp_init()

void ff_me_cmp_init ( MECmpContext c,
AVCodecContext avctx 
)

◆ ff_me_cmp_init_aarch64()

void ff_me_cmp_init_aarch64 ( MECmpContext c,
AVCodecContext avctx 
)

Definition at line 87 of file me_cmp_init_aarch64.c.

Referenced by ff_me_cmp_init().

◆ ff_me_cmp_init_alpha()

void ff_me_cmp_init_alpha ( MECmpContext c,
AVCodecContext avctx 
)

◆ ff_me_cmp_init_arm()

void ff_me_cmp_init_arm ( MECmpContext c,
AVCodecContext avctx 
)

Definition at line 41 of file me_cmp_init_arm.c.

Referenced by ff_me_cmp_init().

◆ ff_me_cmp_init_ppc()

void ff_me_cmp_init_ppc ( MECmpContext c,
AVCodecContext avctx 
)

Definition at line 726 of file me_cmp.c.

Referenced by ff_me_cmp_init().

◆ ff_me_cmp_init_riscv()

void ff_me_cmp_init_riscv ( MECmpContext c,
AVCodecContext avctx 
)

Definition at line 80 of file me_cmp_init.c.

Referenced by ff_me_cmp_init().

◆ ff_me_cmp_init_x86()

void ff_me_cmp_init_x86 ( MECmpContext c,
AVCodecContext avctx 
)

Referenced by ff_me_cmp_init().

◆ ff_me_cmp_init_mips()

void ff_me_cmp_init_mips ( MECmpContext c,
AVCodecContext avctx 
)

Definition at line 25 of file me_cmp_init_mips.c.

Referenced by ff_me_cmp_init().

◆ ff_set_cmp()

int ff_set_cmp ( const MECmpContext c,
me_cmp_func cmp,
int  type,
int  mpvenc 
)

Fill the function pointer array cmp[6] with me_cmp_funcs from c based upon type.

If mpvenc is not set, an error is returned if the type of comparison functions requires an initialized MpegEncContext.

Definition at line 478 of file me_cmp.c.

Referenced by dvvideo_encode_init(), ff_me_init(), and me_cmp_init().

◆ ff_dsputil_init_dwt()

void ff_dsputil_init_dwt ( MECmpContext c)

Definition at line 843 of file snow_dwt.c.

Referenced by ff_me_cmp_init().

Variable Documentation

◆ ff_square_tab

const uint32_t attribute_visibility_hidden ff_square_tab[512]

Definition at line 37 of file me_cmp.c.

Referenced by pix_norm1(), pix_norm1_c(), sse(), sse16_c(), sse4_c(), and sse8_c().