ref: eedb42282acee422d311919c2979a2353cd15a22
parent: 933dd833b86667967e3d1bdcc2ca54ae4cada1cd
author: Jean-Marc Valin <[email protected]>
date: Sat Oct 23 20:22:45 EDT 2010
Further simplications to compute_mdcts()
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -253,7 +253,6 @@
int N = mode->shortMdctSize<<LM;
int B = 1;
int b, c;
- VARDECL(celt_word32, x);
VARDECL(celt_word32, tmp);
SAVE_STACK;
if (shortBlocks)
@@ -262,7 +261,6 @@
N = mode->shortMdctSize;
B = shortBlocks;
}
- ALLOC(x, N+overlap, celt_word32);
ALLOC(tmp, N, celt_word32);
for (c=0;c<C;c++)
{
@@ -269,9 +267,7 @@
for (b=0;b<B;b++)
{
int j;
- for (j=0;j<N+overlap;j++)
- x[j] = in[(b*N+j)+c*(B*N+overlap)];
- clt_mdct_forward(&mode->mdct, x, tmp, mode->window, overlap, shortBlocks ? mode->maxLM : mode->maxLM-LM);
+ clt_mdct_forward(&mode->mdct, in+c*(B*N+overlap)+b*N, tmp, mode->window, overlap, shortBlocks ? mode->maxLM : mode->maxLM-LM);
/* Interleaving the sub-frames */
for (j=0;j<N;j++)
out[(j*B+b)+c*N*B] = tmp[j];