Commit graph

2791 commits

Author SHA1 Message Date
Jean-Marc Valin
a82dfdd240 Adjusting/fixing warnings 2008-03-13 23:01:55 +11:00
Jean-Marc Valin
2b35de9164 fixed-point: Using reciproqual instead of DIV32_16 for find_spectral_pitch() 2008-03-13 17:55:03 +11:00
Jean-Marc Valin
679f5cc675 Enabling warnings and restricting symbol visibility 2008-03-13 17:39:55 +11:00
Jean-Marc Valin
92518982cc Added mathops-test 2008-03-13 17:20:08 +11:00
Jean-Marc Valin
9d5b4a6f56 fixed-point: simplification of the gain in mix_pitch_and_residual() 2008-03-13 11:36:45 +11:00
Jean-Marc Valin
19ae9fc944 fixed-point: simplifying the arithmetic in alg_quant() 2008-03-13 11:18:15 +11:00
Jean-Marc Valin
3ec78b173b More accurate sqrt approximation using MULT16_16_Q15() instead of Q14. 2008-03-12 23:00:42 +11:00
Jean-Marc Valin
f823f409a8 TODO update 2008-03-12 22:21:46 +11:00
Jean-Marc Valin
887ad9ff29 Increased accuracy of the reciprocal approximation and made it use
MULT16_16_Q15() instead of Q14 (should be faster).
2008-03-12 21:34:50 +11:00
Jean-Marc Valin
0ac437b82d Testcases should now work even when symbols aren't visible in the dso 2008-03-12 18:04:27 +11:00
Jean-Marc Valin
7f38906f50 Added info for properly exporting symbols 2008-03-12 17:46:04 +11:00
Jean-Marc Valin
31b79d1993 Changed definition of VARDECL to make it more flexible. No actual code change. 2008-03-12 17:17:23 +11:00
Jean-Marc Valin
d857ac48de Using reciprocal approximation instead of full 32-bit division in alg_quant() 2008-03-12 13:26:37 +11:00
Jean-Marc Valin
980ad38495 configure update (MIXED_PRECISION and STATIC_MODES can now be used) 2008-03-12 11:47:19 +11:00
Jean-Marc Valin
931db72e75 Defined the celt_rcp() reciprocal approximation 2008-03-12 11:28:26 +11:00
Jean-Marc Valin
3c7ae6c3b9 __GNUC_PREREQ should be causing problems anymore. 2008-03-12 10:42:24 +11:00
Jean-Marc Valin
72e8003f75 Added macro definitions for the TI C5x family (untested) 2008-03-12 10:16:26 +11:00
Jean-Marc Valin
493b38d48f Better heuristic for deciding when to use the 32-bit version of the cwrs code. 2008-03-11 15:24:07 +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
88b7abb6ac oops, forgot to disable the main() 2008-03-10 16:44:07 +11:00
Jean-Marc Valin
db0141e766 Changed some of the mode data from int to celt_int16_t to save memory. 2008-03-10 16:37:37 +11:00
Jean-Marc Valin
6a0d97ebbc No longer include redundent entries in the bit allocation cache 2008-03-10 16:10:15 +11:00
Jean-Marc Valin
b76ee70606 Allocation cache can now be pre-computed as well. 2008-03-10 15:42:35 +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
680a9ec54b Improvements to static modes 2008-03-10 14:52:18 +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
f39e869c9f Initial support for static modes (defined STATIC_MODES) 2008-03-10 12:13:23 +11:00
Jean-Marc Valin
2b361230b3 fixed-point: done converting find_spectral_pitch() 2008-03-10 10:41:13 +11:00
Jean-Marc Valin
7dbe0ca375 fixed some build problems 2008-03-10 10:25:40 +11:00
Jean-Marc Valin
2472dd7c89 testcelt no longer attempts to use ALLOC() 2008-03-09 19:27:58 +11:00
Jean-Marc Valin
7b5dc851ce manual stack allocator should now work for sizeof(char)!=1 2008-03-09 17:18:39 +11:00
Jean-Marc Valin
ecd214d585 fixed-point: stereo_mix() converted. 2008-03-08 20:17:12 +11:00
Jean-Marc Valin
3dbc1d0df9 cleaning up some of the mode stuff 2008-03-08 15:21:24 +11:00
Jean-Marc Valin
03f9ed3005 oops, forgot an int sampling rate somewhere 2008-03-08 10:02:30 +11:00
Jean-Marc Valin
d0f57874ef sampling rate has to be int32 2008-03-08 07:39:47 +11:00
Jean-Marc Valin
2a6039b3f4 Adding code to dump the contents of a mode struct to a C file that can be
compiled without having to use the initialisation code.
2008-03-07 22:25:27 +11:00
Jean-Marc Valin
c209c342bf fixed-point: defined HALF32() and used it for the forward mdct. 2008-03-07 17:50:45 +11:00
Jean-Marc Valin
957a4fae0e fixed-point: real FFT no longer needs float ops when MIXED_PRECISION is enabled. 2008-03-07 17:46:00 +11:00
Jean-Marc Valin
3e65097528 Bit of cleaning up. No real code change (well, I hope so!). 2008-03-07 17:38:58 +11:00
Jean-Marc Valin
a1d95d70ca fixed-point: removed the last float op in celt.c 2008-03-07 17:33:58 +11:00
Jean-Marc Valin
03892c18d4 fixed-point: finished intra_prediction(). No float ops left in vq.c 2008-03-07 17:25:47 +11:00
Jean-Marc Valin
9455d1b13c fixed-point: converting intra-frame predictor (checkpoint #1). 2008-03-07 17:17:37 +11:00
Jean-Marc Valin
ec9b6df35d fixed-point: intra_fold() converted 2008-03-07 17:05:47 +11:00
Jean-Marc Valin
000973f7e2 fixed-point: compute_band_energies() converted. Had to add some tiny bias to
make sure never to end up with a pitch vector with >1 norm.
2008-03-07 16:42:31 +11:00
Jean-Marc Valin
0668b8ea5e fixed-point: converted normalise_bands (had to split implementation) 2008-03-07 15:33:32 +11:00
Jean-Marc Valin
cefc5ca26d Revert "compute_band_energies() merged with normalised_bands()"
This reverts commit a1bc18a388.
I think it's easier for now to deal with two functions here, even though they
could be merged.
2008-03-07 14:53:17 +11:00
Jean-Marc Valin
f8eb420a09 Changed the pulse spreading rotations so that the number of iterations is
variable instead of the angle. Should now be both less CPU-intensive and
makes fixed-point code simpler.
2008-03-07 14:44:56 +11:00
Jean-Marc Valin
ba8e2f7b29 fixed-point: done converting quant_bands() and unquant_bands() 2008-03-07 00:21:40 +11:00
Jean-Marc Valin
c81330822b Add option to #include "custom_support.h" 2008-03-06 00:12:27 +11:00