Commit graph

141 commits

Author SHA1 Message Date
Jean-Marc Valin
ce4dd367c2 More work on variable frame size (getting rid of FRAMESIZE() ) 2010-05-07 21:20:22 -04:00
Jean-Marc Valin
811f21ab76 Fix for very short frame size (M=1) 2010-05-07 21:20:22 -04:00
Jean-Marc Valin
073d0bc925 Yet another step towards variable frame size 2010-05-07 21:20:22 -04:00
Jean-Marc Valin
7f1c9427e5 Allocation table stored with BITRES accuracy based on the short block size 2010-05-07 21:20:21 -04:00
Jean-Marc Valin
5f633543c7 shortWindow hadn't been used for a while 2010-05-07 21:20:21 -04:00
Jean-Marc Valin
65ee67ac55 Making the band definition the same at all frame sizes. 2010-04-26 07:08:44 -04:00
Jean-Marc Valin
be8d1259af Minor tweak to the band layout offset 2010-04-21 18:09:07 -04:00
Jean-Marc Valin
4fb9568709 Bands are now (again) a multiple of the number of short MDCTs 2010-04-20 23:30:22 -04:00
Jean-Marc Valin
3ff5e4c2dc Making sure compute_allocation_table() doesn't overrun at lower sampling rates 2010-04-14 18:02:09 -04:00
Jean-Marc Valin
137f3366bc Changed compute_allocation_table() so it handles ebands that start and end in the same allocation band. Also fixed a minor C89 issue. 2010-04-14 17:42:22 -04:00
Jean-Marc Valin
31bec963bb Fix small mode leak (forgot to free the new logN array). 2010-04-07 18:30:28 -04:00
Jean-Marc Valin
f400a3c573 Caching log2_frac(N, BITRES) in the more data to save some CPU 2010-04-06 20:33:50 -04:00
Jean-Marc Valin
8974f00d53 fixed-point: improving accuracy of the energy prediction 2010-03-20 00:41:39 -04:00
Jean-Marc Valin
6d584acd95 Renamed MDCT functions to avoid symbol clashes with Vorbis 2009-11-21 21:57:44 -05:00
Jean-Marc Valin
9319e3e6df Removing original freq-domain pitch code 2009-11-09 13:51:54 +09:00
Jean-Marc Valin
328b8bd7fc fixed a few trivial bugs: exporting celt_strerror(), changed DB_SCALING to a
shift and removed the chec for DISABLE_STEREO in the mode creation.
2009-10-19 19:07:38 -04:00
Jean-Marc Valin
234969c903 Removed the _t from all the celt*_t types to avoid clashing with POSIX 2009-10-17 22:12:42 -04:00
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