Commit graph

463 commits

Author SHA1 Message Date
Gregory Maxwell
5f2a74b38b Adding a floating point interface to encode and decode 2008-08-12 00:14:33 -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
6775de3eae Unified allocation of fine energy and pulses. 2008-08-02 08:14:42 -04:00
Jean-Marc Valin
c890b58b69 Completed the separation of coarse and fine energy quantisation 2008-08-01 22:26:49 -04:00
Jean-Marc Valin
6361ad8d41 Simplified the folding normalisation by creating renormalise_vector(). 2008-07-20 23:14:31 -04:00
Jean-Marc Valin
7028d62f85 Do not encode the short-window bit when not applicable. 2008-07-10 23:06:58 -04:00
Jean-Marc Valin
bd7de0a7d5 cleaned up transient_analysis() and replaced the algorithm with a simpler one
based on the max absolute value in a range.
2008-07-06 10:57:26 -04:00
Jean-Marc Valin
f457819668 fixed-point: conversion of pre-echo avoidance now complete. 2008-07-04 16:47:28 -04:00
Jean-Marc Valin
0ceccb2dbd fixed-point: more work on the time window (almost done) 2008-07-03 20:41:06 -04:00
Jean-Marc Valin
e4aeb47277 More fixed-point conversion of the time window. 2008-06-29 12:06:05 +10:00
Jean-Marc Valin
528f4b8660 More fixed-point work on the time window -- including conversion of the gain
to power-of-two.
2008-06-29 03:46:39 +10:00
Jean-Marc Valin
9375aa4faa Cleaned up the pre-echo avoidance code so it works when compiled as fixed-point
(still requires float ops though). Also, removed the per-band IDCT.
2008-06-27 07:57:35 +10: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
Jean-Marc Valin
12b22484e2 Implemented two pre-echo avoidance techniques: time-domain pre-emphasis and
per-band IDCT.
2008-06-16 14:13:05 +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
c6ca49923e Infrastructure work for a psy model 2008-06-01 23:19:16 +10:00
Jean-Marc Valin
f4f5dac8ba Doing mid-side stereo when not doing intensity. 2008-05-23 17:27:39 +10:00
Jean-Marc Valin
bf2d648bbd Implemented intensity stereo, which required changes all over the place
to make sure that stereo coupling is done at the band level. Previously
the stereo coupling was done all at once, but there were all kinds of
interactions with the prediction and folding.
2008-05-23 16:57:34 +10:00
Jean-Marc Valin
7bd2b9e001 More stereo infrastructure 2008-05-23 14:23:22 +10:00
Jean-Marc Valin
ad6371906a Implemented rate-dependant allocation for the fine energy quantisation. 2008-05-07 13:44:39 +10:00
Jean-Marc Valin
827f93175b Packing the pitch parameters first to improve robustness to bit errors with
(hopefully) no other side effect
2008-05-06 23:21:55 +10:00
Jean-Marc Valin
24c9cdaca1 Fixed a bug in the PLC and added code to estimate the pitch from the synthesis
instead of relying on the one previously transmitted by the encoder.
2008-05-02 10:34:07 +10:00
Jean-Marc Valin
c95ab8ccb2 mdct_overlap no longer needed 2008-04-28 13:14:08 +10:00
Jean-Marc Valin
ef1002746c SHORTCUTS now disables the encoder's de-emphasis (i.e. can't check encoder
against the decoder)
2008-04-24 08:29:25 +10:00
Jean-Marc Valin
4ce9205f38 Optimisation: caching the divisions used in the Laplace encoder. 2008-04-23 13:42:10 +10:00
Jean-Marc Valin
8ddd7f400d mdct_backward now does the WOLA, so there isn't much left in compute_inv_mdcts 2008-04-22 13:37:16 +10:00
Jean-Marc Valin
4989c1212a Moved the windowing from compute_inv_mdcts() to mdct_backward() 2008-04-22 12:18:36 +10:00
Jean-Marc Valin
ef0d5f15c7 Further simplifications to the forward mdct 2008-04-22 09:49:22 +10:00
Jean-Marc Valin
41880805ab non-negative mdct input index 2008-04-22 07:50:50 +10:00
Jean-Marc Valin
30e1b4d36c Moved the windowing operation from compute_mdcts() to mdct_forward() in an
attempt to reduce copying.
2008-04-22 00:10:52 +10:00
Jean-Marc Valin
2146e649c8 Disabling pitch when gain is very small. 2008-04-21 15:08:57 +10:00
Jean-Marc Valin
50bf8b0121 Removing some unnecessary initialisations to zero. 2008-04-21 12:14:16 +10:00
Jean-Marc Valin
7aa9d8c7ae Saved some memory by reducing the size of some arrays to only what's needed.
Typically saves 768 bytes.
2008-04-21 00:04:23 +10:00
Jean-Marc Valin
6229006510 Better indexing of pre/de-emphasis in celt_{en|de}code(). 2008-04-20 22:16:02 +10:00
Jean-Marc Valin
1a3ed79cbe Saved two copies when computing MDCTs of mono signals 2008-04-20 20:39:53 +10:00
Jean-Marc Valin
bdb58836ce more use of CELT_COPY in celt_encode(). Also fixed a stack size bug for stereo 2008-04-20 17:42:10 +10:00
Jean-Marc Valin
65fb92e824 more restricted pointers in celt.c 2008-04-19 22:24:53 +10:00
Jean-Marc Valin
91ecf24ebb encoder pre-emphasis now in 16-bits 2008-04-19 19:44:58 +10:00
Jean-Marc Valin
f11d6f49f9 optimisation: giving more hints to the compiler about the sizes in
find_spectral_pitch()
2008-04-18 23:13:14 +10:00
Jean-Marc Valin
abdfc38837 Saturation in SIG2INT16 using MIN/MAX 2008-04-18 15:57:18 +10:00
Jean-Marc Valin
57e004bf74 More use of CELT_MEMSET 2008-04-16 11:58:48 +10:00
Jean-Marc Valin
b18ec0b08d Reworked the static modes. Now, if all static modes have the same frame size,
overlap or number of channels, we can pass the hint to the compiler.
2008-04-11 04:07:52 +10:00
Jean-Marc Valin
05e56c4d6c Defining DISABLE_STEREO now optimises for the mono case 2008-04-10 09:13:05 +10:00
Jean-Marc Valin
bd2828f64b Decision on whether to use pitch is now taken only based on energy in the
first three bands (instead of total MDCT window energy)
2008-03-26 08:10:27 +11:00
Jean-Marc Valin
b886ddc08c Removed support for more than one MDCT blocks per frame. I don't think there's
a use for that anymore now that the overlap can be less than one frame.
2008-03-25 14:38:55 +11:00
Jean-Marc Valin
3203474732 Using restrict to make it clear there's no aliasing issues in the mdct. 2008-03-22 11:23:57 +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
c7e0b76c06 Making sure not to use the C library calls directly 2008-03-16 07:55:29 +11:00
Jean-Marc Valin
679f5cc675 Enabling warnings and restricting symbol visibility 2008-03-13 17:39:55 +11:00