libavcodec/x86/mpegaudiodec_mmx.c File Reference

#include "libavutil/cpu.h"
#include "libavutil/x86_cpu.h"
#include "libavcodec/dsputil.h"
#include "libavcodec/mpegaudiodsp.h"

Go to the source code of this file.

Defines

#define MACS(rt, ra, rb)   rt+=(ra)*(rb)
#define MLSS(rt, ra, rb)   rt-=(ra)*(rb)
#define SUM8(op, sum, w, p)
#define MULT(a, b)
#define SUMS(suma, sumb, sumc, sumd, out1, out2)

Functions

static void apply_window (const float *buf, const float *win1, const float *win2, float *sum1, float *sum2, int len)
static void apply_window_mp3 (float *in, float *win, int *unused, float *out, int incr)
void ff_mpadsp_init_mmx (MPADSPContext *s)


Define Documentation

#define MACS ( rt,
ra,
rb   )     rt+=(ra)*(rb)

Definition at line 27 of file mpegaudiodec_mmx.c.

#define MLSS ( rt,
ra,
rb   )     rt-=(ra)*(rb)

Definition at line 28 of file mpegaudiodec_mmx.c.

#define MULT ( a,
 ) 

Value:

"movaps " #a "(%1,%0), %%xmm1           \n\t"  \
    "movaps " #a "(%3,%0), %%xmm2           \n\t"  \
    "mulps         %%xmm2, %%xmm1           \n\t"  \
    "subps         %%xmm1, %%xmm0           \n\t"  \
    "mulps  " #b "(%2,%0), %%xmm2           \n\t"  \
    "subps         %%xmm2, %%xmm4           \n\t"  \

#define SUM8 ( op,
sum,
w,
 ) 

Value:

{                                         \
    op(sum, (w)[0 * 64], (p)[0 * 64]);    \
    op(sum, (w)[1 * 64], (p)[1 * 64]);    \
    op(sum, (w)[2 * 64], (p)[2 * 64]);    \
    op(sum, (w)[3 * 64], (p)[3 * 64]);    \
    op(sum, (w)[4 * 64], (p)[4 * 64]);    \
    op(sum, (w)[5 * 64], (p)[5 * 64]);    \
    op(sum, (w)[6 * 64], (p)[6 * 64]);    \
    op(sum, (w)[7 * 64], (p)[7 * 64]);    \
}

Definition at line 30 of file mpegaudiodec_mmx.c.

#define SUMS ( suma,
sumb,
sumc,
sumd,
out1,
out2   ) 

Value:

"movups " #sumd "(%4),       %%xmm0          \n\t" \
            "shufps         $0x1b,       %%xmm0, %%xmm0  \n\t" \
            "subps  " #suma "(%1),       %%xmm0          \n\t" \
            "movaps        %%xmm0," #out1 "(%0)          \n\t" \
\
            "movups " #sumc "(%3),       %%xmm0          \n\t" \
            "shufps         $0x1b,       %%xmm0, %%xmm0  \n\t" \
            "addps  " #sumb "(%2),       %%xmm0          \n\t" \
            "movaps        %%xmm0," #out2 "(%0)          \n\t"

Referenced by apply_window_mp3().


Function Documentation

static void apply_window ( const float *  buf,
const float *  win1,
const float *  win2,
float *  sum1,
float *  sum2,
int  len 
) [static]

Definition at line 42 of file mpegaudiodec_mmx.c.

static void apply_window_mp3 ( float *  in,
float *  win,
int *  unused,
float *  out,
int  incr 
) [static]

Definition at line 86 of file mpegaudiodec_mmx.c.

void ff_mpadsp_init_mmx ( MPADSPContext s  ) 

Definition at line 150 of file mpegaudiodec_mmx.c.

Referenced by ff_mpadsp_init().


Generated on Fri Oct 26 02:39:47 2012 for FFmpeg by  doxygen 1.5.8