int inverse;
uint16_t *revtab;
struct fft_complex *exptab;
- struct fft_complex *tmp_buf;
};
struct mdct_context {
s->nbits = nbits;
n = 1 << nbits;
- s->tmp_buf = NULL;
s->exptab = para_malloc((n / 2) * sizeof(struct fft_complex));
s->revtab = para_malloc(n * sizeof(uint16_t));
s->inverse = inverse;
for (i = 0; i < n; i++)
s->revtab[-split_radix_permutation(
i, n, s->inverse) & (n - 1)] = i;
- s->tmp_buf = para_malloc(n * sizeof(struct fft_complex));
return 0;
}
{
freep(&ctx->revtab);
freep(&ctx->exptab);
- freep(&ctx->tmp_buf);
}
DECLARE_ALIGNED(16, float, ff_sine_128[128]);