Displaying 2 results from an estimated 2 matches for "lsp_dist".
2006 Jun 01
1
Fixed-point version
...ots
of them), I have no practice in working with fixed-point versions of
such numbers.
For instance, in the first source I'm trying to work with, nb_celp.c,
it is hard to see that the following two lines of code yield the same
result:
#ifdef FIXED_POINT
fact = SHR16(19661,SHR32(lsp_dist,LSP_SHIFT+2));
#else
fact = .6*exp(-.2*lsp_dist);
#endif
Now, some questions.
1) When dealing with float constants, like .00001 or 0.05, to express
them in fixed-point should I just scale them with the appropriate
constants from arch.h?
2) If so, which scaling should I use? Taking a v...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...qrt(1+ol_gain2/st->frameSize),SIG_SHIFT);
} else {
#endif
ol_gain = SHL32(EXTEND32(compute_rms(st->exc,
st->frameSize)),SIG_SHIFT);
#ifdef EPIC_48K
}
#endif
}
/*VBR stuff*/
if (st->vbr && (st->vbr_enabled||st->vad_enabled))
{
float lsp_dist=0;
for (i=0;i<st->lpcSize;i++)
lsp_dist += (st->old_lsp[i] - st->lsp[i])*(st->old_lsp[i] -
st->lsp[i]);
lsp_dist /= LSP_SCALING*LSP_SCALING;
if (st->abr_enabled)
{
float qual_change=0;
if (st->abr_drift2 * st->abr_drift...