mpegaudiodec_altivec.c File Reference
Include dependency graph for mpegaudiodec_altivec.c:

Go to the source code of this file.

Macros

#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)
 

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)
 
av_cold void ff_mpadsp_init_altivec (MPADSPContext *s)
 

Macro Definition Documentation

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

Definition at line 28 of file mpegaudiodec_altivec.c.

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

Definition at line 29 of file mpegaudiodec_altivec.c.

Referenced by apply_window_mp3().

#define MULT (   a,
  b 
)
Value:
{ \
v1 = vec_ld(a, win1a); \
v2 = vec_ld(b, win2a); \
v3 = vec_ld(a, bufa); \
v0 = vec_madd(v3, v1, v0); \
v4 = vec_madd(v2, v3, v4); \
}
#define b
Definition: input.c:42
#define v0
Definition: regdef.h:26

Referenced by apply_window().

#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]); \
}
output residual component w
static int op(uint8_t **dst, const uint8_t *dst_end, GetByteContext *gb, int pixel, int count, int *x, int width, int linesize)
Perform decode operation.

Definition at line 31 of file mpegaudiodec_altivec.c.

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 43 of file mpegaudiodec_altivec.c.

Referenced by apply_window_mp3().

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

Definition at line 88 of file mpegaudiodec_altivec.c.

Referenced by ff_mpadsp_init_altivec(), and ff_mpadsp_init_x86().

av_cold void ff_mpadsp_init_altivec ( MPADSPContext s)

Definition at line 127 of file mpegaudiodec_altivec.c.

Referenced by ff_mpadsp_init().