search for: qual_chang

Displaying 2 results from an estimated 2 matches for "qual_chang".

Did you mean: qual_change
2006 Jun 01
1
Fixed-point version
...ons. 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 very specific example, how should I change to fixed-point the expression below? qual_change = -.00001*st->abr_drift/(1+st->abr_count); For example, when calculating LSPs I think I should use LSP_SCALING. But in the case above, which scaling must I use? The float constant is -1e-5, a very small value to be represented in fixed-point using a 16 bit value, effectively yielding...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...->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 > 0) { /* Only adapt if long-term and short-term drift are the same sign */ qual_change = -.00001*st->abr_drift/(1+st->abr_count); if (qual_change>.05) qual_change=.05;...