Commit graph

14 commits

Author SHA1 Message Date
Jean-Marc Valin
6218cba258 Making decode_pulses() compute the L2-norm on the fly 2014-01-21 15:17:01 -05:00
Jean-Marc Valin
0c7c425431 oops, fix previous commit 2013-11-16 13:33:38 -05:00
Jean-Marc Valin
2c37846249 Make CELT_PVQ_U_ROW static 2013-11-16 03:54:58 -05:00
Gregory Maxwell
7830cf1bd2 Replace "inline" with OPUS_INLINE.
Newer versions of MSVC are unhappy with the strategy of the build
 environment redefining "inline" (even though they don't support the
 actual keyword). Instead we define OPUS_INLINE to the right thing
 in opus_defines.h.

This is the same approach we use for restrict.
2013-10-28 10:18:54 -07:00
Jean-Marc Valin
157fd8f948 Fixes MSVC warning 2013-06-27 13:03:33 -04:00
Timothy B. Terriberry
ce15e65319 Split cwrsi() by pulses vs. dimensions.
This lets us cut out a bunch of work in the large _n, small _k case
 where most of the dimensions won't have any pulses.
It also gets rid of all remaining usage of CELT_PVQ_U() in cwrsi(),
 leaving just a single test instead of lots of mins and maxes, and
 makes a bunch of the jump threading more obvious.

This is a 1.6% decoder speedup on a 96 kbps comp48-stereo encode on
 a Cortex A8.
2013-06-15 03:06:57 -04:00
Timothy B. Terriberry
63f744d583 Further speedup in cwrsi() by using the special case for n=2 2013-06-15 02:01:03 -04:00
Timothy B. Terriberry
533dbe705b Further optimization to cwrsi()
Makes it possible to skip the first loop in some cases.
2013-06-15 01:37:20 -04:00
Jean-Marc Valin
bc469b8e44 Splits cwrsi() inner loop in two to avoid the min/max and some load chains 2013-06-15 00:42:38 -04:00
Timothy B. Terriberry
006273c59f Use a table for PVQ encoding/decoding.
58.4% speedup (2.4x faster) on test_unit_cwrs32 (no custom modes).
Gives a 3.2% speedup on
 ./opus_demo restricted-lowdelay 48000 2 96000 comp48-stereo.sw /dev/null
 on a 600 MHz Cortex A8.
2013-05-21 18:16:13 -07:00
Ralph Giles
3aa264732c Fix an indentation issue. 2012-10-17 11:12:55 -07:00
Gregory Maxwell
66d429ab53 log2_frac optimization from Simon Hosie back in Aug 2011. 2012-07-24 17:56:49 -04:00
Jean-Marc Valin
cb05e7cd96 s/FOUNDATION/COPYRIGHT OWNER/ in CELT code and "glue code"
Also added 3rd clause to "master" COPYING file
2012-04-20 16:41:42 -04:00
Jean-Marc Valin
c37499090b renames the libcelt/ directory to celt/ 2011-09-13 18:21:18 -07:00
Renamed from libcelt/cwrs.c (Browse further)