Commit graph

1205 commits

Author SHA1 Message Date
Jean-Marc Valin
86cb7e8600 oops. Another 16-bit fix 2008-03-01 08:45:55 +11:00
Jean-Marc Valin
9e006b6dc0 16-bit fix 2008-03-01 08:33:51 +11:00
Jean-Marc Valin
d748cd5570 Another C90-fying pass. Fixed some warnings in the process. 2008-03-01 07:27:03 +11:00
Jean-Marc Valin
81b38c2295 Moved mdct state and window to the mode so it can be shared between multiple
encoders and decoders.
2008-02-29 21:08:49 +11:00
Jean-Marc Valin
37131e3ab3 Just realised half the twiddles in the real FFT weren't even used. Removing
them saves another 1kB for fixed-point (2kB for float or full precision)
2008-02-29 20:03:41 +11:00
Jean-Marc Valin
8d4ac155e6 Saved on stack usage by changing the order of the allocation 2008-02-29 17:24:02 +11:00
Jean-Marc Valin
9b9e98625c Bit of memory reduction in the pitch search. More needed. 2008-02-29 17:07:53 +11:00
Jean-Marc Valin
cac91ec4db Fixed temp arrays that were allocated too large (no change in peak mem) 2008-02-29 17:03:34 +11:00
Jean-Marc Valin
877b1975b6 fixed-point: converted intra prediction and folding, unb0rked mixed-precision 2008-02-29 16:40:39 +11:00
Jean-Marc Valin
2aaa0fee93 fixed-point: overflow debugging now works again. 2008-02-29 16:07:40 +11:00
Jean-Marc Valin
8600f69f79 Initial support for a managed stack/scratchpad. Still needs some work. 2008-02-29 15:14:12 +11:00
Jean-Marc Valin
8b2a59235f fixed-point: energy quantisation is entirely converted now. 2008-02-29 00:32:51 +11:00
Jean-Marc Valin
adf87e261c fixed-point: more energy quantisation stuff. 2008-02-29 00:15:10 +11:00
Jean-Marc Valin
47bf175f29 fixed-point: a few more bits converted from the energy quantisation. Almost done 2008-02-29 00:07:00 +11:00
Jean-Marc Valin
68b02b1025 fixed-point: copied the exp2 implementation from Speex, using it for dB2Amp() 2008-02-28 23:37:26 +11:00
Jean-Marc Valin
2eaba8ac1f fixed-point: log approximation 2008-02-28 22:14:54 +11:00
Jean-Marc Valin
98193470ec fixed-point: unquant_energy_mono() has received the fixed-point code from
quant_energy_mono()
2008-02-28 17:46:33 +11:00
Jean-Marc Valin
d03162010e fixed-point: second check-point on quant_energy_mono() 2008-02-28 16:52:44 +11:00
Jean-Marc Valin
43b3537d38 fixed-point: first check-point on quant_energy_mono() conversion 2008-02-28 16:41:56 +11:00
Jean-Marc Valin
4e1328b09d fixed-point: alg_quant() entirely converter -- may require revisiting... 2008-02-28 15:17:33 +11:00
Jean-Marc Valin
8b158f569a fixed-point: (hopefully) last check-point for alg_quant() conversion 2008-02-28 14:44:19 +11:00
Jean-Marc Valin
642ff944cf fixed-point: The cross-products in alg_quant() are now all converted. 2008-02-28 14:33:19 +11:00
Jean-Marc Valin
c9d606f517 fixed-point: third alg_quant() checkpoint 2008-02-28 13:46:20 +11:00
Jean-Marc Valin
ed9e4236c1 fixed-point: second check-point in the conversion of alg_quant() 2008-02-28 12:22:22 +11:00
Jean-Marc Valin
f675adce51 fixed-point: First check-point in alg_quant() conversion 2008-02-28 12:15:17 +11:00
Jean-Marc Valin
a02ca1ee35 fixed-point: Added a ROUND() operator, no real change to the code 2008-02-28 11:33:22 +11:00
Jean-Marc Valin
6ba69782fc Oops. Fixed a missing \ in a Makefile.am 2008-02-28 00:28:42 +11:00
Jean-Marc Valin
79fa8b6c3b Just in case sizeof(char)!=1 2008-02-28 00:14:02 +11:00
Jean-Marc Valin
5e171490a9 Removed some unused parameters and fixed a couple -W warnings 2008-02-28 00:07:23 +11:00
Jean-Marc Valin
3ca9b1d295 fixed-point: Moved sqrt and cos approximations to mathops.h 2008-02-27 23:50:31 +11:00
Jean-Marc Valin
a847b775c9 fixed-point: done with mix_pitch_and_residual() though a bit of cleaning up
wouldn't hurt
2008-02-27 17:46:49 +11:00
Jean-Marc Valin
1ca0722534 fixed-point: mix_pitch_and_residual() check-point #3 2008-02-27 17:23:04 +11:00
Jean-Marc Valin
b50c541d8b fixed-point: another mix_pitch_and_residual() check-point 2008-02-27 17:05:43 +11:00
Jean-Marc Valin
d17edd35fc fixed-point: half-way converting mix_pitch_and_residual() -- just check-pointing 2008-02-27 16:52:30 +11:00
Jean-Marc Valin
9d8d9b3f37 fixed-point: compression factor (alpha) now a 16-bit value (still internally
converted to float though)
2008-02-27 16:17:39 +11:00
Jean-Marc Valin
9fbb56a50e fixed-point: converted pitch_quant_bands() -- that one was an easy one-liner 2008-02-27 15:44:18 +11:00
Jean-Marc Valin
ff74e396e4 fixed-point: converted compute_pitch_gain() and removed the energy-based
weighting that didn't seem to help anyway.
2008-02-27 15:35:43 +11:00
Jean-Marc Valin
3f382caeb4 Fixing pi again before another massive public outcry 2008-02-27 14:07:45 +11:00
Jean-Marc Valin
387a20d740 fixed-point: exp_rotation() mostly converted (still need to convert the cos/sin) 2008-02-27 13:49:54 +11:00
Jean-Marc Valin
e40a19cbe9 fixed-point: no float vars left (and nearly no float ops left) in celt.c 2008-02-27 12:09:50 +11:00
Jean-Marc Valin
5d56183404 fixed-point: log-energy for previous frame now a 16-bit value. This currently
intruduces a bit of an encoder-decoder mismatch (Q8 in dB), but it'll be
reduced when the interals of quant_energy_mono() are properly converted to
fixed-point and oldEBands gets rounded instead of truncated.
2008-02-27 11:59:05 +11:00
Jean-Marc Valin
1d6ad108fb fixed-point: converted window to 16-bit value 2008-02-27 11:25:25 +11:00
Jean-Marc Valin
42074389bd fixed-point: pre/de-emphasis converted. 2008-02-27 11:08:53 +11:00
Jean-Marc Valin
d4018c3a22 Reduced code duplication in vq.c by adding mix_pitch_and_residual() which
is used by both by the encoding and decoding functions.
2008-02-27 10:09:48 +11:00
Jean-Marc Valin
2f5ccf60b1 C90-fying ectest 2008-02-27 07:48:48 +11:00
Jean-Marc Valin
7a455d4ef5 Another 16-bit fix. 2008-02-26 23:59:54 +11:00
Jean-Marc Valin
b30dd9e1bf fixed-point: got stereo to work again by fixing renormalise_bands() 2008-02-26 20:32:24 +11:00
Jean-Marc Valin
2805a14eca fixed-point: celt_pgain_t now a 16-bit value (Q15) 2008-02-26 17:02:08 +11:00
Jean-Marc Valin
5f09ea5659 celt_mask_t for masking curves 2008-02-26 16:43:04 +11:00
Jean-Marc Valin
8835a4df25 Removed useless masking curve for current frame and ignored Fs argument to
masking computation functions.
2008-02-26 16:35:19 +11:00