#include "dsputil_altivec.h"
#include "libavutil/ppc/util_altivec.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) |
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_altivec (MPADSPContext *s) |
#define MACS | ( | rt, | |||
ra, | |||||
rb | ) | rt+=(ra)*(rb) |
Definition at line 27 of file mpegaudiodec_altivec.c.
#define MLSS | ( | rt, | |||
ra, | |||||
rb | ) | rt-=(ra)*(rb) |
Definition at line 28 of file mpegaudiodec_altivec.c.
#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); \ }
Referenced by apply_window().
#define SUM8 | ( | op, | |||
sum, | |||||
w, | |||||
p | ) |
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_altivec.c.
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_altivec.c.
static void apply_window_mp3 | ( | float * | in, | |
float * | win, | |||
int * | unused, | |||
float * | out, | |||
int | incr | |||
) | [static] |
Definition at line 87 of file mpegaudiodec_altivec.c.
Referenced by ff_mpadsp_init_altivec(), and ff_mpadsp_init_mmx().
void ff_mpadsp_init_altivec | ( | MPADSPContext * | s | ) |