FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dsputil_mmx.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "libavcodec/dsputil.h"
#include "libavutil/x86/asm.h"

Go to the source code of this file.

Data Structures

struct  xmm_reg
 

Macros

#define SBUTTERFLY(a, b, t, n, m)
 
#define TRANSPOSE4(a, b, c, d, t)
 
#define MOVQ_WONE(regd)
 

Functions

void ff_dsputilenc_init_mmx (DSPContext *c, AVCodecContext *avctx)
 
void ff_dsputil_init_pix_mmx (DSPContext *c, AVCodecContext *avctx)
 
void ff_add_pixels_clamped_mmx (const int16_t *block, uint8_t *pixels, int line_size)
 
void ff_put_pixels_clamped_mmx (const int16_t *block, uint8_t *pixels, int line_size)
 
void ff_put_signed_pixels_clamped_mmx (const int16_t *block, uint8_t *pixels, int line_size)
 
void ff_avg_pixels8_mmxext (uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
 
void ff_put_cavs_qpel8_mc00_mmxext (uint8_t *dst, uint8_t *src, int stride)
 
void ff_avg_cavs_qpel8_mc00_mmxext (uint8_t *dst, uint8_t *src, int stride)
 
void ff_put_cavs_qpel16_mc00_mmxext (uint8_t *dst, uint8_t *src, int stride)
 
void ff_avg_cavs_qpel16_mc00_mmxext (uint8_t *dst, uint8_t *src, int stride)
 
void ff_put_vc1_mspel_mc00_mmx (uint8_t *dst, const uint8_t *src, int stride, int rnd)
 
void ff_put_rv40_qpel8_mc33_mmx (uint8_t *block, uint8_t *pixels, int line_size)
 
void ff_put_rv40_qpel16_mc33_mmx (uint8_t *block, uint8_t *pixels, int line_size)
 
void ff_avg_rv40_qpel8_mc33_mmx (uint8_t *block, uint8_t *pixels, int line_size)
 
void ff_avg_rv40_qpel16_mc33_mmx (uint8_t *block, uint8_t *pixels, int line_size)
 
void ff_mmx_idct (int16_t *block)
 
void ff_mmxext_idct (int16_t *block)
 
void ff_deinterlace_line_mmx (uint8_t *dst, const uint8_t *lum_m4, const uint8_t *lum_m3, const uint8_t *lum_m2, const uint8_t *lum_m1, const uint8_t *lum, int size)
 
void ff_deinterlace_line_inplace_mmx (const uint8_t *lum_m4, const uint8_t *lum_m3, const uint8_t *lum_m2, const uint8_t *lum_m1, const uint8_t *lum, int size)
 

Variables

const uint64_t ff_bone
 
const uint64_t ff_wtwo
 
const xmm_reg ff_pw_3
 
const xmm_reg ff_pw_4
 
const xmm_reg ff_pw_5
 
const xmm_reg ff_pw_8
 
const uint64_t ff_pw_15
 
const xmm_reg ff_pw_16
 
const xmm_reg ff_pw_18
 
const uint64_t ff_pw_20
 
const xmm_reg ff_pw_27
 
const xmm_reg ff_pw_28
 
const xmm_reg ff_pw_32
 
const uint64_t ff_pw_42
 
const uint64_t ff_pw_53
 
const xmm_reg ff_pw_63
 
const xmm_reg ff_pw_64
 
const uint64_t ff_pw_96
 
const uint64_t ff_pw_128
 
const uint64_t ff_pw_255
 
const xmm_reg ff_pb_1
 
const xmm_reg ff_pb_3
 
const uint64_t ff_pb_7
 
const uint64_t ff_pb_1F
 
const uint64_t ff_pb_3F
 
const uint64_t ff_pb_81
 
const xmm_reg ff_pb_A1
 
const xmm_reg ff_pb_F8
 
const uint64_t ff_pb_FC
 
const xmm_reg ff_pb_FE
 
const double ff_pd_1 [2]
 
const double ff_pd_2 [2]
 

Macro Definition Documentation

#define SBUTTERFLY (   a,
  b,
  t,
  n,
  m 
)
Value:
"mov" #m " " #a ", " #t " \n\t" /* abcd */\
"punpckl" #n " " #b ", " #a " \n\t" /* aebf */\
"punpckh" #n " " #b ", " #t " \n\t" /* cgdh */\

Definition at line 69 of file dsputil_mmx.h.

#define TRANSPOSE4 (   a,
  b,
  c,
  d,
  t 
)
Value:
SBUTTERFLY(a,b,t,wd,q) /* a=aebf t=cgdh */\
SBUTTERFLY(c,d,b,wd,q) /* c=imjn b=kolp */\
SBUTTERFLY(a,c,d,dq,q) /* a=aeim d=bfjn */\
SBUTTERFLY(t,b,c,dq,q) /* t=cgko c=dhlp */

Definition at line 74 of file dsputil_mmx.h.

#define MOVQ_WONE (   regd)
Value:
__asm__ volatile ( \
"pcmpeqd %%" #regd ", %%" #regd " \n\t" \
"psrlw $15, %%" #regd ::)

Definition at line 80 of file dsputil_mmx.h.

Function Documentation

void ff_dsputilenc_init_mmx ( DSPContext c,
AVCodecContext avctx 
)

Referenced by ff_dsputil_init_mmx().

void ff_dsputil_init_pix_mmx ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 435 of file motion_est.c.

Referenced by hadamard_func().

void ff_add_pixels_clamped_mmx ( const int16_t *  block,
uint8_t pixels,
int  line_size 
)

Referenced by dsputil_init_mmx().

void ff_put_pixels_clamped_mmx ( const int16_t *  block,
uint8_t pixels,
int  line_size 
)

Referenced by dsputil_init_mmx().

void ff_put_signed_pixels_clamped_mmx ( const int16_t *  block,
uint8_t pixels,
int  line_size 
)

Referenced by dsputil_init_mmx().

void ff_avg_pixels8_mmxext ( uint8_t block,
const uint8_t pixels,
ptrdiff_t  line_size,
int  h 
)

Referenced by dsputil_init_mmxext().

void ff_put_cavs_qpel8_mc00_mmxext ( uint8_t dst,
uint8_t src,
int  stride 
)
void ff_avg_cavs_qpel8_mc00_mmxext ( uint8_t dst,
uint8_t src,
int  stride 
)
void ff_put_cavs_qpel16_mc00_mmxext ( uint8_t dst,
uint8_t src,
int  stride 
)
void ff_avg_cavs_qpel16_mc00_mmxext ( uint8_t dst,
uint8_t src,
int  stride 
)
void ff_put_vc1_mspel_mc00_mmx ( uint8_t dst,
const uint8_t src,
int  stride,
int  rnd 
)
void ff_put_rv40_qpel8_mc33_mmx ( uint8_t block,
uint8_t pixels,
int  line_size 
)

Referenced by ff_rv40dsp_init_x86().

void ff_put_rv40_qpel16_mc33_mmx ( uint8_t block,
uint8_t pixels,
int  line_size 
)

Referenced by ff_rv40dsp_init_x86().

void ff_avg_rv40_qpel8_mc33_mmx ( uint8_t block,
uint8_t pixels,
int  line_size 
)

Referenced by ff_rv40dsp_init_x86().

void ff_avg_rv40_qpel16_mc33_mmx ( uint8_t block,
uint8_t pixels,
int  line_size 
)

Referenced by ff_rv40dsp_init_x86().

void ff_mmx_idct ( int16_t *  block)
void ff_mmxext_idct ( int16_t *  block)
void ff_deinterlace_line_mmx ( uint8_t dst,
const uint8_t lum_m4,
const uint8_t lum_m3,
const uint8_t lum_m2,
const uint8_t lum_m1,
const uint8_t lum,
int  size 
)
void ff_deinterlace_line_inplace_mmx ( const uint8_t lum_m4,
const uint8_t lum_m3,
const uint8_t lum_m2,
const uint8_t lum_m1,
const uint8_t lum,
int  size 
)

Variable Documentation

const uint64_t ff_bone

Definition at line 41 of file dsputil_mmx.c.

const uint64_t ff_wtwo

Definition at line 42 of file dsputil_mmx.c.

const xmm_reg ff_pw_3

Definition at line 46 of file dsputil_mmx.c.

const xmm_reg ff_pw_4

Definition at line 47 of file dsputil_mmx.c.

const xmm_reg ff_pw_5

Definition at line 48 of file dsputil_mmx.c.

const xmm_reg ff_pw_8

Definition at line 49 of file dsputil_mmx.c.

const uint64_t ff_pw_15

Definition at line 51 of file dsputil_mmx.c.

const xmm_reg ff_pw_16

Definition at line 52 of file dsputil_mmx.c.

const xmm_reg ff_pw_18

Definition at line 54 of file dsputil_mmx.c.

const uint64_t ff_pw_20

Definition at line 55 of file dsputil_mmx.c.

const xmm_reg ff_pw_27

Definition at line 56 of file dsputil_mmx.c.

const xmm_reg ff_pw_28

Definition at line 57 of file dsputil_mmx.c.

const xmm_reg ff_pw_32

Definition at line 58 of file dsputil_mmx.c.

const uint64_t ff_pw_42

Definition at line 59 of file dsputil_mmx.c.

const uint64_t ff_pw_53

Definition at line 60 of file dsputil_mmx.c.

const xmm_reg ff_pw_63

Definition at line 61 of file dsputil_mmx.c.

const xmm_reg ff_pw_64

Definition at line 62 of file dsputil_mmx.c.

const uint64_t ff_pw_96

Definition at line 63 of file dsputil_mmx.c.

const uint64_t ff_pw_128

Definition at line 64 of file dsputil_mmx.c.

const uint64_t ff_pw_255

Definition at line 65 of file dsputil_mmx.c.

const xmm_reg ff_pb_1

Definition at line 70 of file dsputil_mmx.c.

const xmm_reg ff_pb_3

Definition at line 71 of file dsputil_mmx.c.

const uint64_t ff_pb_7

Definition at line 73 of file dsputil_mmx.c.

const uint64_t ff_pb_1F

Definition at line 74 of file dsputil_mmx.c.

const uint64_t ff_pb_3F

Definition at line 75 of file dsputil_mmx.c.

const uint64_t ff_pb_81

Definition at line 77 of file dsputil_mmx.c.

const xmm_reg ff_pb_A1

Definition at line 78 of file dsputil_mmx.c.

const xmm_reg ff_pb_F8

Definition at line 79 of file dsputil_mmx.c.

const uint64_t ff_pb_FC

Definition at line 80 of file dsputil_mmx.c.

const xmm_reg ff_pb_FE

Definition at line 81 of file dsputil_mmx.c.

const double ff_pd_1[2]

Definition at line 83 of file dsputil_mmx.c.

const double ff_pd_2[2]

Definition at line 84 of file dsputil_mmx.c.