[xiph-cvs] cvs commit: speex/libspeex sb_celp.c
Jean-Marc Valin
jm at xiph.org
Wed May 7 21:27:56 PDT 2003
jm 03/05/08 00:27:56
Modified: libspeex sb_celp.c
Log:
fixed bug (found by segher) where lsp_enforce_margin would be called on
x-domain (instead of angle domain) LSP's.
Revision Changes Path
1.120 +8 -3 speex/libspeex/sb_celp.c
Index: sb_celp.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/sb_celp.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- sb_celp.c 5 May 2003 23:34:19 -0000 1.119
+++ sb_celp.c 8 May 2003 04:27:56 -0000 1.120
@@ -463,14 +463,15 @@
for (i=0;i<st->lpcSize;i++)
st->interp_qlsp[i] = (1-tmp)*st->old_qlsp[i] + tmp*st->qlsp[i];
+ lsp_enforce_margin(st->interp_lsp, st->lpcSize, .002);
+ lsp_enforce_margin(st->interp_qlsp, st->lpcSize, .002);
+
/* Compute interpolated LPCs (quantized and unquantized) */
for (i=0;i<st->lpcSize;i++)
st->interp_lsp[i] = cos(st->interp_lsp[i]);
for (i=0;i<st->lpcSize;i++)
st->interp_qlsp[i] = cos(st->interp_qlsp[i]);
- lsp_enforce_margin(st->interp_lsp, st->lpcSize, .002);
- lsp_enforce_margin(st->interp_qlsp, st->lpcSize, .002);
lsp_to_lpc(st->interp_lsp, st->interp_lpc, st->lpcSize,stack);
lsp_to_lpc(st->interp_qlsp, st->interp_qlpc, st->lpcSize, stack);
@@ -919,11 +920,15 @@
for (i=0;i<st->lpcSize;i++)
st->interp_qlsp[i] = (1-tmp)*st->old_qlsp[i] + tmp*st->qlsp[i];
+ if (1)
+ lsp_enforce_margin(st->interp_qlsp, st->lpcSize, .002);
+
/* LSPs to x-domain */
for (i=0;i<st->lpcSize;i++)
st->interp_qlsp[i] = cos(st->interp_qlsp[i]);
- lsp_enforce_margin(st->interp_qlsp, st->lpcSize, .002);
+ if (0)
+ lsp_enforce_margin(st->interp_qlsp, st->lpcSize, .002);
/* LSP to LPC */
lsp_to_lpc(st->interp_qlsp, st->interp_qlpc, st->lpcSize, stack);
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list