X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmdct_fixed.c;h=94527f9e856a89d51fbff7b7bfe00dadd291247c;hb=d1c4ec7f5e9af61067bc1a604e29e465038be63a;hp=19c8039e04c84a8dbdfad61eeb8d5eb5ba3e2cde;hpb=7087ce08c84dd20404ba258096530cc547d25c15;p=ffmpeg diff --git a/libavcodec/mdct_fixed.c b/libavcodec/mdct_fixed.c index 19c8039e04c..94527f9e856 100644 --- a/libavcodec/mdct_fixed.c +++ b/libavcodec/mdct_fixed.c @@ -18,3 +18,47 @@ #define CONFIG_FFT_FLOAT 0 #include "mdct.c" + +/* same as ff_mdct_calcw_c with double-width unscaled output */ +void ff_mdct_calcw_c(FFTContext *s, FFTDouble *out, const FFTSample *input) +{ + int i, j, n, n8, n4, n2, n3; + FFTDouble re, im; + const uint16_t *revtab = s->revtab; + const FFTSample *tcos = s->tcos; + const FFTSample *tsin = s->tsin; + FFTComplex *x = s->tmp_buf; + FFTDComplex *o = (FFTDComplex *)out; + + n = 1 << s->mdct_bits; + n2 = n >> 1; + n4 = n >> 2; + n8 = n >> 3; + n3 = 3 * n4; + + /* pre rotation */ + for(i=0;ifft_calc(s, x); + + /* post rotation */ + for(i=0;i