FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dsputil_init.c File Reference
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/internal.h"
#include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h"
#include "libavcodec/dsputil.h"
#include "libavcodec/simple_idct.h"
#include "libavcodec/version.h"
#include "dsputil_x86.h"
#include "idct_xvid.h"

Go to the source code of this file.

Macros

#define ff_put_no_rnd_pixels16_mmxext   ff_put_pixels16_mmxext
 
#define ff_put_no_rnd_pixels8_mmxext   ff_put_pixels8_mmxext
 
#define SET_QPEL_FUNCS(PFX, IDX, SIZE, CPU, PREFIX)
 

Functions

void ff_put_pixels8_l2_mmxext (uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h)
 
void ff_put_no_rnd_pixels8_l2_mmxext (uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h)
 
void ff_avg_pixels8_l2_mmxext (uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h)
 
void ff_put_pixels16_l2_mmxext (uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h)
 
void ff_avg_pixels16_l2_mmxext (uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h)
 
void ff_put_no_rnd_pixels16_l2_mmxext (uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h)
 
void ff_put_mpeg4_qpel16_h_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
 
void ff_avg_mpeg4_qpel16_h_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
 
void ff_put_no_rnd_mpeg4_qpel16_h_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
 
void ff_put_mpeg4_qpel8_h_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
 
void ff_avg_mpeg4_qpel8_h_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
 
void ff_put_no_rnd_mpeg4_qpel8_h_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
 
void ff_put_mpeg4_qpel16_v_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride)
 
void ff_avg_mpeg4_qpel16_v_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride)
 
void ff_put_no_rnd_mpeg4_qpel16_v_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride)
 
void ff_put_mpeg4_qpel8_v_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride)
 
void ff_avg_mpeg4_qpel8_v_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride)
 
void ff_put_no_rnd_mpeg4_qpel8_v_lowpass_mmxext (uint8_t *dst, uint8_t *src, int dstStride, int srcStride)
 
int32_t ff_scalarproduct_int16_mmxext (const int16_t *v1, const int16_t *v2, int order)
 
int32_t ff_scalarproduct_int16_sse2 (const int16_t *v1, const int16_t *v2, int order)
 
int32_t ff_scalarproduct_and_madd_int16_mmxext (int16_t *v1, const int16_t *v2, const int16_t *v3, int order, int mul)
 
int32_t ff_scalarproduct_and_madd_int16_sse2 (int16_t *v1, const int16_t *v2, const int16_t *v3, int order, int mul)
 
int32_t ff_scalarproduct_and_madd_int16_ssse3 (int16_t *v1, const int16_t *v2, const int16_t *v3, int order, int mul)
 
void ff_bswap32_buf_ssse3 (uint32_t *dst, const uint32_t *src, int w)
 
void ff_bswap32_buf_sse2 (uint32_t *dst, const uint32_t *src, int w)
 
void ff_add_hfyu_median_prediction_mmxext (uint8_t *dst, const uint8_t *top, const uint8_t *diff, int w, int *left, int *left_top)
 
int ff_add_hfyu_left_prediction_ssse3 (uint8_t *dst, const uint8_t *src, int w, int left)
 
int ff_add_hfyu_left_prediction_sse4 (uint8_t *dst, const uint8_t *src, int w, int left)
 
void ff_vector_clip_int32_mmx (int32_t *dst, const int32_t *src, int32_t min, int32_t max, unsigned int len)
 
void ff_vector_clip_int32_sse2 (int32_t *dst, const int32_t *src, int32_t min, int32_t max, unsigned int len)
 
void ff_vector_clip_int32_int_sse2 (int32_t *dst, const int32_t *src, int32_t min, int32_t max, unsigned int len)
 
void ff_vector_clip_int32_sse4 (int32_t *dst, const int32_t *src, int32_t min, int32_t max, unsigned int len)
 
static av_cold void dsputil_init_mmx (DSPContext *c, AVCodecContext *avctx, int cpu_flags)
 
static av_cold void dsputil_init_mmxext (DSPContext *c, AVCodecContext *avctx, int cpu_flags)
 
static av_cold void dsputil_init_sse (DSPContext *c, AVCodecContext *avctx, int cpu_flags)
 
static av_cold void dsputil_init_sse2 (DSPContext *c, AVCodecContext *avctx, int cpu_flags)
 
static av_cold void dsputil_init_ssse3 (DSPContext *c, AVCodecContext *avctx, int cpu_flags)
 
static av_cold void dsputil_init_sse4 (DSPContext *c, AVCodecContext *avctx, int cpu_flags)
 
av_cold void ff_dsputil_init_x86 (DSPContext *c, AVCodecContext *avctx)
 

Macro Definition Documentation

#define ff_put_no_rnd_pixels16_mmxext   ff_put_pixels16_mmxext

Definition at line 73 of file dsputil_init.c.

#define ff_put_no_rnd_pixels8_mmxext   ff_put_pixels8_mmxext

Definition at line 74 of file dsputil_init.c.

#define SET_QPEL_FUNCS (   PFX,
  IDX,
  SIZE,
  CPU,
  PREFIX 
)
Value:
do { \
c->PFX ## _pixels_tab[IDX][ 0] = PREFIX ## PFX ## SIZE ## _mc00_ ## CPU; \
c->PFX ## _pixels_tab[IDX][ 1] = PREFIX ## PFX ## SIZE ## _mc10_ ## CPU; \
c->PFX ## _pixels_tab[IDX][ 2] = PREFIX ## PFX ## SIZE ## _mc20_ ## CPU; \
c->PFX ## _pixels_tab[IDX][ 3] = PREFIX ## PFX ## SIZE ## _mc30_ ## CPU; \
c->PFX ## _pixels_tab[IDX][ 4] = PREFIX ## PFX ## SIZE ## _mc01_ ## CPU; \
c->PFX ## _pixels_tab[IDX][ 5] = PREFIX ## PFX ## SIZE ## _mc11_ ## CPU; \
c->PFX ## _pixels_tab[IDX][ 6] = PREFIX ## PFX ## SIZE ## _mc21_ ## CPU; \
c->PFX ## _pixels_tab[IDX][ 7] = PREFIX ## PFX ## SIZE ## _mc31_ ## CPU; \
c->PFX ## _pixels_tab[IDX][ 8] = PREFIX ## PFX ## SIZE ## _mc02_ ## CPU; \
c->PFX ## _pixels_tab[IDX][ 9] = PREFIX ## PFX ## SIZE ## _mc12_ ## CPU; \
c->PFX ## _pixels_tab[IDX][10] = PREFIX ## PFX ## SIZE ## _mc22_ ## CPU; \
c->PFX ## _pixels_tab[IDX][11] = PREFIX ## PFX ## SIZE ## _mc32_ ## CPU; \
c->PFX ## _pixels_tab[IDX][12] = PREFIX ## PFX ## SIZE ## _mc03_ ## CPU; \
c->PFX ## _pixels_tab[IDX][13] = PREFIX ## PFX ## SIZE ## _mc13_ ## CPU; \
c->PFX ## _pixels_tab[IDX][14] = PREFIX ## PFX ## SIZE ## _mc23_ ## CPU; \
c->PFX ## _pixels_tab[IDX][15] = PREFIX ## PFX ## SIZE ## _mc33_ ## CPU; \
} while (0)

Definition at line 501 of file dsputil_init.c.

Referenced by dsputil_init_mmxext().

Function Documentation

void ff_put_pixels8_l2_mmxext ( uint8_t dst,
uint8_t src1,
uint8_t src2,
int  dstStride,
int  src1Stride,
int  h 
)
void ff_put_no_rnd_pixels8_l2_mmxext ( uint8_t dst,
uint8_t src1,
uint8_t src2,
int  dstStride,
int  src1Stride,
int  h 
)
void ff_avg_pixels8_l2_mmxext ( uint8_t dst,
uint8_t src1,
uint8_t src2,
int  dstStride,
int  src1Stride,
int  h 
)
void ff_put_pixels16_l2_mmxext ( uint8_t dst,
uint8_t src1,
uint8_t src2,
int  dstStride,
int  src1Stride,
int  h 
)
void ff_avg_pixels16_l2_mmxext ( uint8_t dst,
uint8_t src1,
uint8_t src2,
int  dstStride,
int  src1Stride,
int  h 
)
void ff_put_no_rnd_pixels16_l2_mmxext ( uint8_t dst,
uint8_t src1,
uint8_t src2,
int  dstStride,
int  src1Stride,
int  h 
)
void ff_put_mpeg4_qpel16_h_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
void ff_avg_mpeg4_qpel16_h_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
void ff_put_no_rnd_mpeg4_qpel16_h_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
void ff_put_mpeg4_qpel8_h_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
void ff_avg_mpeg4_qpel8_h_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
void ff_put_no_rnd_mpeg4_qpel8_h_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
void ff_put_mpeg4_qpel16_v_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride 
)
void ff_avg_mpeg4_qpel16_v_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride 
)
void ff_put_no_rnd_mpeg4_qpel16_v_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride 
)
void ff_put_mpeg4_qpel8_v_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride 
)
void ff_avg_mpeg4_qpel8_v_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride 
)
void ff_put_no_rnd_mpeg4_qpel8_v_lowpass_mmxext ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride 
)
int32_t ff_scalarproduct_int16_mmxext ( const int16_t *  v1,
const int16_t *  v2,
int  order 
)

Referenced by dsputil_init_mmxext().

int32_t ff_scalarproduct_int16_sse2 ( const int16_t *  v1,
const int16_t *  v2,
int  order 
)

Referenced by dsputil_init_sse2().

int32_t ff_scalarproduct_and_madd_int16_mmxext ( int16_t *  v1,
const int16_t *  v2,
const int16_t *  v3,
int  order,
int  mul 
)

Referenced by dsputil_init_mmxext().

int32_t ff_scalarproduct_and_madd_int16_sse2 ( int16_t *  v1,
const int16_t *  v2,
const int16_t *  v3,
int  order,
int  mul 
)

Referenced by dsputil_init_sse2().

int32_t ff_scalarproduct_and_madd_int16_ssse3 ( int16_t *  v1,
const int16_t *  v2,
const int16_t *  v3,
int  order,
int  mul 
)

Referenced by dsputil_init_ssse3().

void ff_bswap32_buf_ssse3 ( uint32_t *  dst,
const uint32_t *  src,
int  w 
)

Referenced by dsputil_init_ssse3().

void ff_bswap32_buf_sse2 ( uint32_t *  dst,
const uint32_t *  src,
int  w 
)

Referenced by dsputil_init_sse2().

void ff_add_hfyu_median_prediction_mmxext ( uint8_t dst,
const uint8_t top,
const uint8_t diff,
int  w,
int *  left,
int *  left_top 
)

Referenced by dsputil_init_mmxext().

int ff_add_hfyu_left_prediction_ssse3 ( uint8_t dst,
const uint8_t src,
int  w,
int  left 
)

Referenced by dsputil_init_ssse3().

int ff_add_hfyu_left_prediction_sse4 ( uint8_t dst,
const uint8_t src,
int  w,
int  left 
)

Referenced by dsputil_init_ssse3().

void ff_vector_clip_int32_mmx ( int32_t dst,
const int32_t src,
int32_t  min,
int32_t  max,
unsigned int  len 
)

Referenced by dsputil_init_mmx().

void ff_vector_clip_int32_sse2 ( int32_t dst,
const int32_t src,
int32_t  min,
int32_t  max,
unsigned int  len 
)

Referenced by dsputil_init_sse2().

void ff_vector_clip_int32_int_sse2 ( int32_t dst,
const int32_t src,
int32_t  min,
int32_t  max,
unsigned int  len 
)

Referenced by dsputil_init_sse2().

void ff_vector_clip_int32_sse4 ( int32_t dst,
const int32_t src,
int32_t  min,
int32_t  max,
unsigned int  len 
)

Referenced by dsputil_init_sse4().

static av_cold void dsputil_init_mmx ( DSPContext c,
AVCodecContext avctx,
int  cpu_flags 
)
static

Definition at line 521 of file dsputil_init.c.

Referenced by ff_dsputil_init_x86().

static av_cold void dsputil_init_mmxext ( DSPContext c,
AVCodecContext avctx,
int  cpu_flags 
)
static

Definition at line 549 of file dsputil_init.c.

Referenced by ff_dsputil_init_x86().

static av_cold void dsputil_init_sse ( DSPContext c,
AVCodecContext avctx,
int  cpu_flags 
)
static

Definition at line 580 of file dsputil_init.c.

Referenced by ff_dsputil_init_x86().

static av_cold void dsputil_init_sse2 ( DSPContext c,
AVCodecContext avctx,
int  cpu_flags 
)
static

Definition at line 605 of file dsputil_init.c.

Referenced by ff_dsputil_init_x86().

static av_cold void dsputil_init_ssse3 ( DSPContext c,
AVCodecContext avctx,
int  cpu_flags 
)
static

Definition at line 631 of file dsputil_init.c.

Referenced by ff_dsputil_init_x86().

static av_cold void dsputil_init_sse4 ( DSPContext c,
AVCodecContext avctx,
int  cpu_flags 
)
static

Definition at line 645 of file dsputil_init.c.

Referenced by ff_dsputil_init_x86().

av_cold void ff_dsputil_init_x86 ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 653 of file dsputil_init.c.

Referenced by ff_dsputil_init().