Commit graph

1584 commits

Author SHA1 Message Date
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
Jean-Marc Valin
017d4455da pitch gain is now celt_pgain_t 2008-02-26 16:19:03 +11:00
Jean-Marc Valin
b60340f7e3 fixed-point: band energy now a 32-bit value. It might have (barely) fix into
16-bit, but at this point, it's not worth the trouble and loss of accuracy.
2008-02-26 15:41:51 +11:00
Jean-Marc Valin
e901fe35b8 fixed-point: added a celt_ener_t type for band energy. 2008-02-26 14:46:26 +11:00
Jean-Marc Valin
e046c18acf Minus a bunch of warnings when enabling alloca() 2008-02-26 13:51:53 +11:00
Jean-Marc Valin
e995c31f44 Put the channel count outside of the energy calculation. Increased the allowed
range for the mono encoder.
2008-02-26 13:48:16 +11:00
Jean-Marc Valin
2fa8affdc5 fixed-point: celt_norm_t now a 16-bit value. 2008-02-26 12:21:58 +11:00
Jean-Marc Valin
9a5f3d2e6d 16-bit fixes and warning fixes 2008-02-26 10:38:17 +11:00
Jean-Marc Valin
508de38d22 Trying to be nice with 16-bit chips. 2008-02-26 10:28:20 +11:00
Jean-Marc Valin
65d79e4419 Corrected the last digit of pi after massive public outcry :-) 2008-02-26 07:38:27 +11:00
Jean-Marc Valin
b5a4c40dd8 Ogg decoder does gapless for the beginning of the file. 2008-02-25 17:58:21 +11:00
Jean-Marc Valin
b4dfce4665 fixed-point: Using a NORM_SCALING of 16384, sig_norm_t is still a float though. 2008-02-25 17:41:30 +11:00
Jean-Marc Valin
5c032a4cb4 fixed-point: celt_sig_t now a 32-bit value. 2008-02-25 14:55:09 +11:00
Jean-Marc Valin
49ca99efa5 fixed-point: initial support for using the fixed-point MDCT (rest is still all
float)
2008-02-25 14:12:10 +11:00
Jean-Marc Valin
bd43729ecd MDCT is in fixed-point now 2008-02-25 12:07:13 +11:00
Jean-Marc Valin
2e8a3b20d0 MDCT conversion, part I. 2008-02-25 11:49:38 +11:00
Jean-Marc Valin
42667b0a5f real fft no longer needs an internal buffer. 2008-02-25 09:47:25 +11:00
Jean-Marc Valin
4508ebd585 real fft snr comparison testcase includes DC 2008-02-24 23:48:15 +11:00
Jean-Marc Valin
44830b0440 Float FFT now does the same scaling as the fixed-point FFT 2008-02-24 22:36:05 +11:00
Jean-Marc Valin
e8b6830f53 minor tweak to FFT 2008-02-24 22:06:04 +11:00
Jean-Marc Valin
d911bc4d0d Added a mixed-precision version of the FFT with 32-bit data and 16-bit twiddles. 2008-02-24 17:16:47 +11:00
Jean-Marc Valin
9ced5d042d Created an separate kiss_twiddle_cpx type to make it possible to use
different precision for twiddles and data.
2008-02-24 13:46:30 +11:00