Commit graph

39 commits

Author SHA1 Message Date
Jean-Marc Valin
f5b0587bd2 s/ROUND/ROUND16/ 2008-03-21 10:46:17 +11:00
Jean-Marc Valin
c7e0b76c06 Making sure not to use the C library calls directly 2008-03-16 07:55:29 +11:00
Jean-Marc Valin
a82dfdd240 Adjusting/fixing warnings 2008-03-13 23:01:55 +11:00
Jean-Marc Valin
31b79d1993 Changed definition of VARDECL to make it more flexible. No actual code change. 2008-03-12 17:17:23 +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
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
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
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
508de38d22 Trying to be nice with 16-bit chips. 2008-02-26 10:28:20 +11:00
Jean-Marc Valin
9a0bba183c Everything should now compile with a C89 compiler. 2008-02-20 14:08:50 +11:00
Jean-Marc Valin
02fa913c32 More C89 fixes, making sure to include config.h from all source files. 2008-02-20 12:09:29 +11:00
Jean-Marc Valin
a85657bd29 removed // comments and added stack_alloc.h (not used everywhere yet)
to make the code more C89-friendly.
2008-02-20 11:59:30 +11:00
Jean-Marc Valin
6da36c0452 Experimental ld51 mode (needs more work) 2008-02-15 14:20:29 +11:00
Jean-Marc Valin
0df0eb4c67 doing the folding properly. 2008-02-13 16:00:10 +11:00
Jean-Marc Valin
356437048f scales down even further in bit-rate 2008-02-13 12:12:16 +11:00
Jean-Marc Valin
c9cc6d3e34 Introducing a (very) crude budget for the energy encoder. 2008-02-13 11:37:41 +11:00
Jean-Marc Valin
cb7a2a3d52 Re-ordered the parameters in the stream: [energy, pitch index, pitch gains]
Also fixed a bug that was exposed by the change (and removed some warnings)
2008-02-11 16:44:48 +11:00
Jean-Marc Valin
66fa639c53 More flexible energy quantisation with nearly no penalty. 2008-02-11 10:53:11 +11:00
Jean-Marc Valin
a4833ffada Stereo decoding working again (fixed a few issues in the encoder at the same
time)
2008-01-10 15:34:00 +11:00
Jean-Marc Valin
021478e252 More stereo work (doing mid-side quantisation of the energy) 2008-01-09 15:31:43 +11:00
Jean-Marc Valin
36d78e6f74 Band energy quantisation info now in the mode directly 2007-12-13 14:59:30 +11:00
Jean-Marc Valin
98d2a4917e No more cheating, everything fully quantised 2007-12-07 22:46:47 +11:00
Jean-Marc Valin
fc43dbb7d6 A bit of probability tuning to reduce bit-rate variations 2007-12-07 19:12:51 +11:00
Jean-Marc Valin
c57ac95f17 Actually enabled the probability model 2007-12-07 17:58:44 +11:00
Jean-Marc Valin
143fbc3138 Decent starting point for energy probabilities 2007-12-07 17:48:18 +11:00
Jean-Marc Valin
e38c7c18f7 Energy is now Laplace-encoded (very poorly for now) 2007-12-07 17:10:14 +11:00
Jean-Marc Valin
8143be3026 energy decoding partially done (cheating a bit) 2007-12-07 16:40:39 +11:00
Jean-Marc Valin
aeb4467d7f improved energy quantisation/prediction 2007-12-06 13:50:14 +11:00
Jean-Marc Valin
06311335b5 More energy quantisation work 2007-12-06 11:13:56 +11:00
Jean-Marc Valin
8b0137aa42 Quantisation of band energies (adding files) 2007-12-06 07:51:53 +11:00