Commit graph

283 commits

Author SHA1 Message Date
Jean-Marc Valin
94216aeba4 Allocation adjustment code in quand_band(). 2010-05-10 21:27:00 -04:00
Jean-Marc Valin
2123f358b1 Cleaning up the folding code.
Folding now moved to alg_quant() and alg_unquant(). No more funny short block
alignment checks because bands now have to be aligned.
2010-05-09 19:45:31 -04:00
Jean-Marc Valin
e949b72049 Fixed pitchEnd wrt to variable frame size. It should (sort of) all work now 2010-05-07 21:20:22 -04:00
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
017fa85775 Changing the encoder API to add the frame size 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
3b918bac54 replaced instances of mode->nbShortMdcts by the dynamic number of MDCTs (M) 2010-05-07 21:20:22 -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
6578ea0e26 Re-enabled special stereo code for N=2 2010-04-20 23:52:31 -04:00
Jean-Marc Valin
b8ba70c99b Disabling resynthesis when not needed (need to remove folding for this to work) 2010-04-18 22:10:24 -04:00
Jean-Marc Valin
628c025373 Converted a few double-precision constants to single precision 2010-04-16 20:57:56 -04:00
Jean-Marc Valin
64209a3edf A few minor optimisations (compute_allocation, denormalise_bands,
deemphasis)
2010-04-06 20:33:50 -04:00
Jean-Marc Valin
70bdf9bf39 fixed-point: reducing the mismatch in the folded part 2010-03-15 20:50:30 -04:00
Jean-Marc Valin
e45ccb1693 Fix quant_bands() for start != 0 2010-03-01 07:09:46 -05:00
Jean-Marc Valin
3a0bc3d95c Allowing CELT to skip the low frequencies 2010-02-25 22:46:55 -05:00
Jean-Marc Valin
f81edea012 removing more unused code 2009-10-23 22:33:25 -04:00
Jean-Marc Valin
a3bba38b49 This should prevent a rare divide-by-zero in the pitch gain code 2009-10-20 07:13:35 -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
d35d677543 Constrain the pitch gain to prevent potential instabilities. 2009-10-16 23:16:47 -04:00
Jean-Marc Valin
bf2398b049 first step for removing the number of channels from the mode 2009-10-15 07:28:19 -04:00
Jean-Marc Valin
a9947c480c merged the code for quant_bands() and unquant_bands() 2009-10-08 23:10:45 -04:00
Jean-Marc Valin
f7a1e165aa Renamed mix_pitch_and_residual() to normalise_residual(), after minor
simplification.
2009-10-07 06:56:03 -04:00
Jean-Marc Valin
8861955d86 Doing the mdct shaping in the normalised domain, so that energy is preserved 2009-10-04 22:43:27 -04:00
Jean-Marc Valin
aa4f58bde9 Simplifications to the code 2009-10-03 09:27:59 -04:00
Jean-Marc Valin
40fc679331 more stereo simplifications 2009-10-03 00:33:16 -04:00
Jean-Marc Valin
abd67230c1 No longer interleaving channels of the normalised spectrum. Also fixed the
indexing of the pitch code for stereo
2009-10-03 00:25:15 -04:00
Jean-Marc Valin
676c5fd5d3 simplifications to the stereo code 2009-10-02 23:50:05 -04:00
Jean-Marc Valin
4213a7254c Demoved the divisions from the inner pitch prediction loops, bumped the version
and bit-stream version
2009-10-01 19:42:18 -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
7013db7ca4 Fix stereo mismatch problem 2009-09-29 23:45:03 -04:00
Jean-Marc Valin
4834c92e2b More simplifications from denorm pitch 2009-09-28 19:17:34 -04:00
Jean-Marc Valin
095c1782c5 Removed code that is no longer necessary with denorm pitch and spreading 2009-09-17 22:38:34 -04:00
Jean-Marc Valin
92ae37027f enabling denorm pitch only at low bit-rate 2009-09-16 07:57:17 -04:00
Jean-Marc Valin
00fb6b0765 fixed-point: denorm pitch converted 2009-09-15 23:41:05 -04:00
Jean-Marc Valin
ab220aa212 denorm pitch works in fixed-point (though there's still some floats left) 2009-09-15 22:38:40 -04:00
Jean-Marc Valin
4c77ea96d0 doing pitch in denormalized domain 2009-09-14 22:51:55 -04:00
Jean-Marc Valin
3aa3afe74f Only calling intra_fold() when there's no pulse allocated 2009-09-11 20:28:29 -04:00
Jean-Marc Valin
a7750b90cc Re-introducing the successive rotations as a way to control low-bitrate
tonal artefacts. This replaces folding for all cases where we have at least
one pulse.
2009-08-29 22:52:03 +01:00
Jean-Marc Valin
79b361991e Forcing side to be orthogonal to mid for N=2. This saves one degree of freedom. 2009-08-09 19:18:22 -04:00
Jean-Marc Valin
5a70097d79 C89 and 16-bit fixes 2009-08-08 13:23:03 -04:00
Jean-Marc Valin
91f07dc125 Changing some code to use BITRES directly instead of its value. 2009-07-25 20:42:24 -04:00
Jean-Marc Valin
798ab38b27 Using normalised M/S stereo data for folding and use separate folding gains
for M and S.
2009-07-12 20:41:29 -04:00
Jean-Marc Valin
4da9e94c98 Using MS stereo for all bands, fixing a few bugs in the stereo folding 2009-07-12 00:58:50 -04:00
Jean-Marc Valin
ece2cfa2d2 removed useless comments 2009-07-04 22:46:38 -04:00
Jean-Marc Valin
cd29b02773 fixed-point: fixing two overflows that didn't really affect quality 2009-07-01 09:59:21 -04:00
Gregory Maxwell
a80958b025 Note some more platforms where float-approx is tested, fix a bug in the prediction ctl,
and remove some dead code from bands.c.
2009-06-29 12:48:57 -04:00
Jean-Marc Valin
0dd2cd4958 Simplifies the stereo mixing code, throwing away some old code. 2009-06-18 23:18:39 -04:00
Jean-Marc Valin
08a82ffb45 More de-interleaving: denormalised MDCT no longer stored with interleaved
channels. Fixed two stereo bugs in the process: one in the handling of
mdct_weight_shift and one in the PLC.
2009-06-14 14:20:44 -04:00