Commit graph

30 commits

Author SHA1 Message Date
Jean-Marc Valin
c5f2a9d988 Latest psychoacoustics work -- still highly experimental 2008-10-26 22:00:26 -04:00
Jean-Marc Valin
dffd9449b5 Tonality estimation code 2008-10-15 07:29:58 -04:00
Jean-Marc Valin
c6ca49923e Infrastructure work for a psy model 2008-06-01 23:19:16 +10:00
Jean-Marc Valin
54e860dc04 Brought the mdct masking function up-to-date 2008-05-30 15:48:09 +10:00
Jean-Marc Valin
5de868c6d3 A bunch of pointers marked as "restrict" to ease the job of the compiler 2008-03-25 22:38:58 +11:00
Jean-Marc Valin
1bc8a2e4b1 optimisation: spreading_func now in-place with no branch in the loop and half
the multiplications
2008-03-25 22:09:32 +11:00
Jean-Marc Valin
a536f77202 Added a few "restrict" keywords and changed some divisions to shifts 2008-03-22 09:01:50 +11:00
Jean-Marc Valin
949902fd1b const correctness. celt_mode_create() now makes a copy of the static mode
(if STATIC_MODES is defined) instead of attempting to modify read-only
storage.
2008-03-11 10:43:06 +11:00
Jean-Marc Valin
5588d52e94 Psychoacoustic decay coefficients can now be included in the static modes 2008-03-10 15:07:58 +11:00
Jean-Marc Valin
29f52990b9 Moved the psycoacoustics data to the mode struct 2008-03-10 13:34:52 +11:00
Jean-Marc Valin
defa357525 Simplified spreading function so that only one set of coefficients (the right
slope is required).
2008-03-10 13:17:58 +11:00
Jean-Marc Valin
c4a40c65c5 doing spreading function and gain quantisation in-place 2008-03-05 23:22:00 +11:00
Jean-Marc Valin
f93747c44a fixed-point: changed find_spectral_pitch() to use single-precision (16-bit) FFT.
This involved adding kfft_single.[ch] that redefines kiss_fft a second time
with a different prefix. All this is still a bit of a mess now. The mask
had to be converted to 16-bit input, but we're still using floats to apply it.
2008-03-05 17:20:30 +11:00
Jean-Marc Valin
b624cdd2ce fixed-point: masking curve computation now converted. ***Fixed a bug in the
handling of the left side slope of the spreading function (right-side coef
was used)
2008-03-05 13:40:20 +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
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
9a5f3d2e6d 16-bit fixes and warning fixes 2008-02-26 10:38:17 +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
37d13ceebe Adding celt_sig_t where needed 2008-02-22 14:45:58 +11:00
Jean-Marc Valin
0bb05bc5ea Another bunch of C99 array conversions (few more to go) 2008-02-20 13:43:40 +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
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
5b50f4bf81 Decays corresponding to the psychoacoustic spreading function are now
pre-computed (instead of computing tons of pow() uselessly all the time)
2008-02-11 11:50:20 +11:00
Jean-Marc Valin
7351e286c8 Everything converted to use kiss-fft. Got rid of smallft and fftwrap.
Code much leaner now.
2008-02-08 15:09:45 +11:00
Jean-Marc Valin
0a3e79aa11 Pseudo-masking curve for the MDCT 2008-01-07 13:36:01 +11:00
Jean-Marc Valin
14bccef8e7 Comments on the spreading function 2007-12-10 13:13:58 +11:00
Jean-Marc Valin
991410be59 Added a simple psychoacoustic model (still needs a lot of work). 2007-12-10 01:28:34 +11:00