summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro/fft.c
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2010-07-05 22:33:37 +0000
committerMohamed Tarek <mt@rockbox.org>2010-07-05 22:33:37 +0000
commitd884af2b9992f12e98a3e8548aff76b232b5bfb3 (patch)
treed3aefbc2195382025105b252c16b00087778beed /apps/codecs/libwmapro/fft.c
parent6a04479d63dd4d7dfc54849e4c925d360d55fa9c (diff)
downloadrockbox-d884af2b9992f12e98a3e8548aff76b232b5bfb3.tar.gz
rockbox-d884af2b9992f12e98a3e8548aff76b232b5bfb3.zip
Partial conversion of the wmapro decoder to fixed point arithmetic. Currently inverse quantization & rescaling,
imdct and windowing are all in fixed point. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27302 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro/fft.c')
-rw-r--r--apps/codecs/libwmapro/fft.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libwmapro/fft.c b/apps/codecs/libwmapro/fft.c
index b0e6e11cd3..0b43fea1a3 100644
--- a/apps/codecs/libwmapro/fft.c
+++ b/apps/codecs/libwmapro/fft.c
@@ -101,10 +101,10 @@ av_cold int ff_fft_init(FFTContext *s, int nbits, int inverse)
101 s2 = inverse ? 1.0 : -1.0; 101 s2 = inverse ? 1.0 : -1.0;
102 102
103 s->fft_permute = ff_fft_permute_c; 103 s->fft_permute = ff_fft_permute_c;
104 s->fft_calc = ff_fft_calc_c; 104 s->fft_calc = fff_fft_calc_c;
105//#if CONFIG_MDCT 105//#if CONFIG_MDCT
106 s->imdct_calc = ff_imdct_calc_c; 106 s->imdct_calc = ff_imdct_calc_c;
107 s->imdct_half = ff_imdct_half_c; 107 s->imdct_half = fff_imdct_half_c;
108 s->mdct_calc = ff_mdct_calc_c; 108 s->mdct_calc = ff_mdct_calc_c;
109//#endif 109//#endif
110 s->exptab1 = NULL; 110 s->exptab1 = NULL;
@@ -361,7 +361,7 @@ static void (* const fft_dispatch[])(FFTComplex*) = {
361 fft2048, fft4096, fft8192, fft16384, fft32768, fft65536, 361 fft2048, fft4096, fft8192, fft16384, fft32768, fft65536,
362}; 362};
363 363
364void ff_fft_calc_c(FFTContext *s, FFTComplex *z) 364void fff_fft_calc_c(FFTContext *s, FFTComplex *z)
365{ 365{
366 fft_dispatch[s->nbits-2](z); 366 fft_dispatch[s->nbits-2](z);
367} 367}