Go to the documentation of this file.
33 #define MACS(rt, ra, rb) rt+=(ra)*(rb)
34 #define MLSS(rt, ra, rb) rt-=(ra)*(rb)
36 #define SUM8(op, sum, w, p) \
38 op(sum, (w)[0 * 64], (p)[0 * 64]); \
39 op(sum, (w)[1 * 64], (p)[1 * 64]); \
40 op(sum, (w)[2 * 64], (p)[2 * 64]); \
41 op(sum, (w)[3 * 64], (p)[3 * 64]); \
42 op(sum, (w)[4 * 64], (p)[4 * 64]); \
43 op(sum, (w)[5 * 64], (p)[5 * 64]); \
44 op(sum, (w)[6 * 64], (p)[6 * 64]); \
45 op(sum, (w)[7 * 64], (p)[7 * 64]); \
48 static void apply_window(
const float *buf,
const float *win1,
49 const float *win2,
float *sum1,
float *sum2,
int len)
51 const vector
float *win1a = (
const vector
float *) win1;
52 const vector
float *win2a = (
const vector
float *) win2;
53 const vector
float *bufa = (
const vector
float *) buf;
54 vector
float *sum1a = (vector
float *) sum1;
55 vector
float *sum2a = (vector
float *) sum2;
57 vector
float v1, v2, v3;
63 v1 = vec_ld(a, win1a); \
64 v2 = vec_ld(b, win2a); \
65 v3 = vec_ld(a, bufa); \
66 v0 = vec_madd(v3, v1, v0); \
67 v4 = vec_madd(v2, v3, v4); \
93 static void apply_window_mp3(
float *in,
float *
win,
int *unused,
float *
out,
103 float *out2 =
out + 32 * incr;
106 memcpy(in + 512, in, 32 *
sizeof(*in));
121 *
out = suma[ j] - sumd[16-j];
122 *out2 = -sumb[16-j] - sumc[ j];
140 s->apply_window_float = apply_window_mp3;
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
static float win(SuperEqualizerContext *s, float n, int N)
#define SUM8(op, sum, w, p)
#define LOCAL_ALIGNED_16(t, v,...)
#define PPC_ALTIVEC(flags)
av_cold void ff_mpadsp_init_ppc(MPADSPContext *s)
static void(*const apply_window[4])(AVFloatDSPContext *fdsp, SingleChannelElement *sce, const float *audio)