Searched refs:lsp_dist (Results 1 – 1 of 1) sorted by relevance
426 float lsp_dist=0; in nb_encode() local428 lsp_dist += (st->old_lsp[i] - lsp[i])*(st->old_lsp[i] - lsp[i]); in nb_encode()429 lsp_dist /= LSP_SCALING*LSP_SCALING; in nb_encode()479 if (st->dtx_count==0 || lsp_dist>.05 || !st->dtx_enabled || st->dtx_count>20) in nb_encode()517 if (st->dtx_count==0 || lsp_dist>.05 || !st->dtx_enabled || st->dtx_count>20) in nb_encode()1236 spx_word32_t lsp_dist=0; in nb_decode() local1238 lsp_dist = ADD32(lsp_dist, EXTEND32(ABS(st->old_qlsp[i] - qlsp[i]))); in nb_decode()1240 fact = SHR16(19661,SHR32(lsp_dist,LSP_SHIFT+2)); in nb_decode()1242 fact = .6*exp(-.2*lsp_dist); in nb_decode()