Commit graph

124 commits

Author SHA1 Message Date
Jean-Marc Valin
8b2ff0da5a Updated copyright notices 2009-10-17 21:40:10 -04:00
Jean-Marc Valin
30f7f813ea Changed all the celt*int*_t types to remove the _t suffix, which is reserved
by POSIX. The other _t types that are not part of the API are still there
for now. Also, got rid of all that was left of the 64-bit types.
2009-10-17 14:35:13 -04:00
Jean-Marc Valin
80ed147663 The number of channels is now set when creating the states rather than when
creating the mode. This means that the same mode can be shared for mono and
stereo.
2009-10-15 21:45:32 -04:00
Jean-Marc Valin
6a97802280 Adjusting the allocation for stereo directly in the alloc function rather than
in the table.
2009-10-13 20:35:21 -04:00
Jean-Marc Valin
39f68ac997 making compute_ebands() a tiny bit less stupid. 2009-10-03 23:27:52 -04:00
Jean-Marc Valin
d5e5436e07 Fix for folding_decision() in stereo mode and more cleaning up of the code
now that we no longer do normalized pitch
2009-09-30 20:50:41 -04:00
Jean-Marc Valin
6db9e6eff8 Bringing back min_bins=3 for now 2009-09-29 23:16:26 -04:00
Jean-Marc Valin
4834c92e2b More simplifications from denorm pitch 2009-09-28 19:17:34 -04:00
Jean-Marc Valin
9714f66d5f Disabling some checks for the C55 2009-08-12 20:29:57 -04:00
Jean-Marc Valin
fbfddf7041 Making sure each band has a width that's a multiple of the number of MDCTs 2009-08-09 19:18:16 -04:00
Jean-Marc Valin
e6d832a721 Allowing frame sizes up to 1024, with pitch enabled only up to 512 2009-07-08 22:21:31 -04:00
Jean-Marc Valin
ece2cfa2d2 removed useless comments 2009-07-04 22:46:38 -04:00
Christopher Montgomery
8e511a816b Increasing allocation to the low-mid frequencies 2009-07-03 02:10:17 -04:00
Jean-Marc Valin
08192e317c ietf doc: more source code formatting changes, got rid of float_cast.h 2009-07-02 13:29:33 -04:00
Gregory Maxwell
849669547e Update valgrind support to match the latest valgrind API.
Adjust valgrind mode to insert padding between every allocation to increase sensitivity.
2009-06-30 16:54:00 -04:00
Jean-Marc Valin
640f7fd8e3 Gives an error when trying to create a stereo mode with DISABLE_STEREO defined. 2009-06-21 09:47:51 -04:00
Jean-Marc Valin
9dff02188c Minor stuff: preventing float underflow in celt_exp2(), preventing the use of
intra energy for low bitrates, and a bit of very high bitrate tuning
2009-06-15 22:40:06 -04:00
Jean-Marc Valin
f43488cdc2 Fix non-C90 declaration after statement 2009-06-05 11:10:50 -04:00
Gregory Maxwell
dc67fa9a4c Handle malloc failure in mode_create gracefully without leaking memory. 2009-06-04 21:51:12 -04:00
Gregory Maxwell
d9458cd0b3 Add a mode_info call to obtain the sampling rate of the current mode. 2009-05-30 17:10:53 -04:00
Jean-Marc Valin
18c1c22e16 Fix for a mode memory leak -- was still allocating memory for the energy
allocator which was removed a while ago.
2009-05-30 09:50:47 -04:00
Gregory Maxwell
ec836da27c Reduce rounding in the mode allocator and remove a scaling loop.
This breaks the bitstream.
2009-05-04 23:49:14 -04:00
Jean-Marc Valin
d27e6e34a5 Cleanup: getting rid of some old bits of stereo code that are no longer useful 2009-03-29 22:29:52 -04:00
Gregory Maxwell
54547f16d5 Miscellaneous comment, copyright notice, readme updates. 2009-02-16 19:52:02 -05:00
Jean-Marc Valin
d539ad5f93 Fixed an overflow in the bit allocation table for large frame stereo
(need to make that a bit better)
2009-02-09 23:54:52 -05:00
Jean-Marc Valin
fda0e10f01 Better allocation rounding as suggested by derf 2009-02-09 23:17:44 -05:00
Jean-Marc Valin
9a6c496630 Changed the allocator to be smarter about the way it allocates
fine energy bits. Also, doing better rounding of the bits.
2009-02-09 00:45:48 -05:00
Gregory Maxwell
fea148f284 Additional copyright notices. 2009-02-03 23:09:52 -05:00
Gregory Maxwell
8ed865813e Support for 96kHz. 2008-12-02 13:32:11 -05:00
Jean-Marc Valin
b6f9061343 celt_encoder_ctl() is a bit more type-safe. 2008-10-05 22:39:13 -04:00
Jean-Marc Valin
25ec9ac39a Fixed support for STATIC_MODES 2008-10-04 22:37:11 -04:00
Gregory Maxwell
b6a3b0c464 Fix stereo support; correctly deallocate bits_stereo. 2008-10-04 00:39:17 -04:00
Jean-Marc Valin
60d0837ea0 lookahead no longer defined when creating a mode 2008-10-03 07:30:08 -04:00
Jean-Marc Valin
b0bef8564e compute_alloc_cache() isn't defined when STATIC_MODES is. 2008-10-02 23:52:46 -04:00
Jean-Marc Valin
c18fb1d031 Added celt_encoder_ctl() and CELT_SET_COMPLEXITY 2008-09-30 07:36:54 -04:00
Gregory Maxwell
cbaf67e836 Fix support for sample rates between 32kHz and 40kHz (lower rates are currently rejected, but work okay). 2008-09-28 08:17:42 -04:00
Gregory Maxwell
23e654ff82 Allow all even frame sizes, change the selection of number of short MDCTs per frame to be more intelligent. 2008-09-27 21:23:54 -04:00
Jean-Marc Valin
f61be66f42 Some more tuning 2008-09-22 10:46:55 -04:00
Jean-Marc Valin
c24b518fb0 Some bit-allocation tuning 2008-09-19 16:49:26 -04:00
Jean-Marc Valin
c994394fc3 Added signalling bits for enabling/disabling pitch, short blocks, and folding.
Also, making it possible to disable pitch for all frames.
2008-08-30 00:55:07 -04:00
Jean-Marc Valin
504f8c2597 some tuning to fine energy allocation and prevent it from going above 7 bits
(at which point, it causes problems)
2008-08-05 20:39:53 -04:00
Jean-Marc Valin
9c70906fdb Changing the allocation algorithm to better take into account the fixed cost
per frames for each mode.
2008-08-03 22:07:06 -04:00
Jean-Marc Valin
36e6e01ada Merged compute_allocation_table() and compute_energy_allocation_table() 2008-08-02 22:25:19 -04:00
Jean-Marc Valin
9eba823cf7 Turns out that the worse case of the vector split is the same as that of the
pulse split. Also, added an allocation line for even higher bit-rates
2008-08-02 20:51:44 -04:00
Jean-Marc Valin
6775de3eae Unified allocation of fine energy and pulses. 2008-08-02 08:14:42 -04:00
Jean-Marc Valin
5c0d486fe1 Better bit allocation for all frame sizes that are not equal to 256. 2008-07-24 08:49:34 -04:00
Jean-Marc Valin
16ca18b9b0 Automatically choosing the overlap based on the frame size. 2008-06-18 23:44:48 +10:00
Jean-Marc Valin
9d1decd1bb short-block MDCT 2008-06-17 13:28:13 +10:00
Peter Kirk
19f9dc98ee Use EXPORT macro in a way compatible with win32 2008-06-07 13:13:59 +10:00
Jean-Marc Valin
96748cf309 Allowing frames up to 512 samples 2008-06-06 17:04:07 +10:00