FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions | Variables
dsputil.h File Reference

DSP utils. More...

#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  DSPContext
 DSPContext. More...
 

Typedefs

typedef int(* me_cmp_func )(struct MpegEncContext *c, uint8_t *blk1, uint8_t *blk2, int line_size, int h)
 

Functions

void ff_dsputil_static_init (void)
 
void ff_dsputil_init (DSPContext *p, AVCodecContext *avctx)
 
void avpriv_dsputil_init (DSPContext *p, AVCodecContext *avctx)
 
attribute_deprecated void dsputil_init (DSPContext *c, AVCodecContext *avctx)
 
int ff_check_alignment (void)
 
void ff_set_cmp (DSPContext *c, me_cmp_func *cmp, int type)
 
void ff_dsputil_init_alpha (DSPContext *c, AVCodecContext *avctx)
 
void ff_dsputil_init_arm (DSPContext *c, AVCodecContext *avctx)
 
void ff_dsputil_init_ppc (DSPContext *c, AVCodecContext *avctx)
 
void ff_dsputil_init_x86 (DSPContext *c, AVCodecContext *avctx)
 
void ff_dsputil_init_dwt (DSPContext *c)
 

Variables

uint32_t ff_square_tab [512]
 

Detailed Description

DSP utils.

Note, many functions in here may use MMX which trashes the FPU state, it is absolutely necessary to call emms_c() between DSP & float/double code.

Definition in file dsputil.h.

Typedef Documentation

typedef int(* me_cmp_func)(struct MpegEncContext *c, uint8_t *blk1, uint8_t *blk2, int line_size, int h)

Definition at line 57 of file dsputil.h.

Function Documentation

void ff_dsputil_static_init ( void  )

Definition at line 911 of file dsputil.c.

Referenced by avcodec_init().

void ff_dsputil_init ( DSPContext p,
AVCodecContext avctx 
)
void avpriv_dsputil_init ( DSPContext p,
AVCodecContext avctx 
)

Definition at line 1005 of file dsputil.c.

Referenced by config_input(), config_props(), and init().

attribute_deprecated void dsputil_init ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 1000 of file dsputil.c.

int ff_check_alignment ( void  )

Definition at line 919 of file dsputil.c.

Referenced by encode_thread(), estimate_motion_thread(), ff_dsputil_init(), and mb_var_thread().

void ff_set_cmp ( DSPContext c,
me_cmp_func cmp,
int  type 
)

Definition at line 373 of file dsputil.c.

Referenced by dvvideo_encode_init(), encode_init(), ff_init_me(), and ff_MPV_encode_init().

void ff_dsputil_init_alpha ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 99 of file dsputil_alpha.c.

Referenced by ff_dsputil_init().

void ff_dsputil_init_arm ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 31 of file dsputil_init_arm.c.

Referenced by ff_dsputil_init().

void ff_dsputil_init_ppc ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 747 of file dsputil_altivec.c.

Referenced by ff_dsputil_init().

void ff_dsputil_init_x86 ( DSPContext c,
AVCodecContext avctx 
)

Referenced by ff_dsputil_init().

void ff_dsputil_init_dwt ( DSPContext c)

Definition at line 847 of file snow_dwt.c.

Referenced by ff_dsputil_init().

Variable Documentation

uint32_t ff_square_tab[512]

Definition at line 37 of file dsputil.c.

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