diff options
author | Nedeljko Babic <nbabic@mips.com> | 2013-06-03 16:11:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-04 14:01:41 +0200 |
commit | 18d7074b4e5a1112cfa6a53dde0faa25d2bd0b15 (patch) | |
tree | 0d23cbed3eb59d91ba5c734a7222a6ae02c72cba /libavcodec/mdct.c | |
parent | 27cc3e72f8502d6239dcd0f1dd3fe73f1c85355d (diff) | |
download | ffmpeg-18d7074b4e5a1112cfa6a53dde0faa25d2bd0b15.tar.gz |
libavcodec: Implementation of 32 bit fixed point FFT
Iterative implementation of 32 bit fixed point split-radix FFT.
Max FFT that can be calculated currently is 2^12.
Signed-off-by: Nedeljko Babic <nbabic@mips.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mdct.c')
-rw-r--r-- | libavcodec/mdct.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mdct.c b/libavcodec/mdct.c index 22320240de..922d577e3e 100644 --- a/libavcodec/mdct.c +++ b/libavcodec/mdct.c @@ -34,7 +34,11 @@ #if CONFIG_FFT_FLOAT # define RSCALE(x) (x) #else +#if CONFIG_FFT_FIXED_32 +# define RSCALE(x) (((x) + 32) >> 6) +#else /* CONFIG_FFT_FIXED_32 */ # define RSCALE(x) ((x) >> 1) +#endif /* CONFIG_FFT_FIXED_32 */ #endif /** |