Optimizes _celt_autocorr() by using pitch_xcorr()
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Sat, 25 May 2013 06:14:25 +0000 (02:14 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Sat, 25 May 2013 06:14:25 +0000 (02:14 -0400)
commite8e57a32f6e9e11998e60272f131880c95de271f
tree3a63fc88f7d8f3edd66e8aa930a02fb41431f9d3
parentfbf99981a6a5acdb032f42d6377ca5b5dff19a20
Optimizes _celt_autocorr() by using pitch_xcorr()

Computes most of the auto-correlation by reusing pitch_xcorr(). We only
need lag*(lag-1)/2 MACs to complete the calculations.
To do this, pitch_xcorr() was modified so that it no longer truncates the
length to a multiple of 4. Also, the xcorr didn't need the floor at -1.
As a side benefit, this speeds up the PLC, which uses a higher order LPC
filter.
celt/celt_lpc.c
celt/pitch.c
celt/pitch.h