[xiph-cvs] cvs commit: speex/libspeex lsp.c nb_celp.c
Segher Boessenkool
segher at koffie.nl
Thu Oct 24 16:56:52 PDT 2002
JM, are you on the cvs at xiph.org list?
> + /* LSP x-domain to angle domain*/
> + for (i=0;i<st->lpcSize;i++)
> + st->lsp[i] = acos(st->lsp[i]);
It's probably a lot faster (and more stable) to generate the lsp y-domain
as well, and use acos2() on it...
Or, depending on if you do much more processing before quantizing the angle
values or not, you might just leave it in the x-domain and quantize there
(so it becomes a search operation instead of an arccos).
<p>Cheers,
Segher
<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