[xiph-commits] r11531 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Tue Jun 6 16:02:54 PDT 2006
Author: jm
Date: 2006-06-06 16:02:50 -0700 (Tue, 06 Jun 2006)
New Revision: 11531
Modified:
trunk/speex/libspeex/nb_celp.c
trunk/speex/libspeex/sb_celp.c
Log:
removed some unnecessary bisections
Modified: trunk/speex/libspeex/nb_celp.c
===================================================================
--- trunk/speex/libspeex/nb_celp.c 2006-06-06 03:03:36 UTC (rev 11530)
+++ trunk/speex/libspeex/nb_celp.c 2006-06-06 23:02:50 UTC (rev 11531)
@@ -315,7 +315,7 @@
/* Levinson-Durbin */
_spx_lpc(lpc, autocorr, st->lpcSize);
/* LPC to LSPs (x-domain) transform */
- roots=lpc_to_lsp (lpc, st->lpcSize, lsp, 15, LSP_DELTA1, stack);
+ roots=lpc_to_lsp (lpc, st->lpcSize, lsp, 10, LSP_DELTA1, stack);
/* Check if we found all the roots */
if (roots!=st->lpcSize)
{
Modified: trunk/speex/libspeex/sb_celp.c
===================================================================
--- trunk/speex/libspeex/sb_celp.c 2006-06-06 03:03:36 UTC (rev 11530)
+++ trunk/speex/libspeex/sb_celp.c 2006-06-06 23:02:50 UTC (rev 11531)
@@ -445,10 +445,10 @@
_spx_lpc(st->lpc, st->autocorr, st->lpcSize);
/* LPC to LSPs (x-domain) transform */
- roots=lpc_to_lsp (st->lpc, st->lpcSize, st->lsp, 15, LSP_DELTA1, stack);
+ roots=lpc_to_lsp (st->lpc, st->lpcSize, st->lsp, 10, LSP_DELTA1, stack);
if (roots!=st->lpcSize)
{
- roots = lpc_to_lsp (st->lpc, st->lpcSize, st->lsp, 11, LSP_DELTA2, stack);
+ roots = lpc_to_lsp (st->lpc, st->lpcSize, st->lsp, 10, LSP_DELTA2, stack);
if (roots!=st->lpcSize) {
/*If we can't find all LSP's, do some damage control and use a flat filter*/
for (i=0;i<st->lpcSize;i++)
More information about the commits
mailing list