diff options
| author | Mohamed Tarek <mt@rockbox.org> | 2010-07-05 22:33:37 +0000 |
|---|---|---|
| committer | Mohamed Tarek <mt@rockbox.org> | 2010-07-05 22:33:37 +0000 |
| commit | d884af2b9992f12e98a3e8548aff76b232b5bfb3 (patch) | |
| tree | d3aefbc2195382025105b252c16b00087778beed /apps/codecs/libwmapro/mdct.c | |
| parent | 6a04479d63dd4d7dfc54849e4c925d360d55fa9c (diff) | |
| download | rockbox-d884af2b9992f12e98a3e8548aff76b232b5bfb3.zip rockbox-d884af2b9992f12e98a3e8548aff76b232b5bfb3.tar.gz rockbox-d884af2b9992f12e98a3e8548aff76b232b5bfb3.tar.bz2 rockbox-d884af2b9992f12e98a3e8548aff76b232b5bfb3.tar.xz | |
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/mdct.c')
| -rw-r--r-- | apps/codecs/libwmapro/mdct.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/libwmapro/mdct.c b/apps/codecs/libwmapro/mdct.c index 9d0a59d..03e067f 100644 --- a/apps/codecs/libwmapro/mdct.c +++ b/apps/codecs/libwmapro/mdct.c @@ -121,7 +121,7 @@ av_cold int ff_mdct_init(FFTContext *s, int nbits, int inverse, double scale) * @param output N/2 samples * @param input N/2 samples */ -void ff_imdct_half_c(FFTContext *s, FFTSample *output, const FFTSample *input) +void fff_imdct_half_c(FFTContext *s, FFTSample *output, const FFTSample *input) { int k, n8, n4, n2, n, j; const uint16_t *revtab = s->revtab; @@ -144,8 +144,8 @@ void ff_imdct_half_c(FFTContext *s, FFTSample *output, const FFTSample *input) in1 += 2; in2 -= 2; } - ff_fft_calc(s, z); + fff_fft_calc(s, z); /* post rotation + reordering */ for(k = 0; k < n8; k++) { FFTSample r0, i0, r1, i1; @@ -170,7 +170,7 @@ void ff_imdct_calc_c(FFTContext *s, FFTSample *output, const FFTSample *input) int n2 = n >> 1; int n4 = n >> 2; - ff_imdct_half_c(s, output+n4, input); + fff_imdct_half_c(s, output+n4, input); for(k = 0; k < n4; k++) { output[k] = -output[n2-k-1]; @@ -211,7 +211,7 @@ void ff_mdct_calc_c(FFTContext *s, FFTSample *out, const FFTSample *input) CMUL(x[j].re, x[j].im, re, im, -tcos[n8 + i], tsin[n8 + i]); } - ff_fft_calc(s, x); + fff_fft_calc(s, x); /* post rotation */ for(i=0;i<n8;i++) { |