Lines Matching refs:lsp
593 void lsp_enforce_margin(spx_lsp_t *lsp, int len, spx_word16_t margin) in lsp_enforce_margin() argument
599 if (lsp[0]<m) in lsp_enforce_margin()
600 lsp[0]=m; in lsp_enforce_margin()
601 if (lsp[len-1]>m2) in lsp_enforce_margin()
602 lsp[len-1]=m2; in lsp_enforce_margin()
605 if (lsp[i]<lsp[i-1]+m) in lsp_enforce_margin()
606 lsp[i]=lsp[i-1]+m; in lsp_enforce_margin()
608 if (lsp[i]>lsp[i+1]-m) in lsp_enforce_margin()
609 lsp[i]= SHR16(lsp[i],1) + SHR16(lsp[i+1]-m,1); in lsp_enforce_margin()
628 void lsp_enforce_margin(spx_lsp_t *lsp, int len, spx_word16_t margin) in lsp_enforce_margin() argument
631 if (lsp[0]<LSP_SCALING*margin) in lsp_enforce_margin()
632 lsp[0]=LSP_SCALING*margin; in lsp_enforce_margin()
633 if (lsp[len-1]>LSP_SCALING*(M_PI-margin)) in lsp_enforce_margin()
634 lsp[len-1]=LSP_SCALING*(M_PI-margin); in lsp_enforce_margin()
637 if (lsp[i]<lsp[i-1]+LSP_SCALING*margin) in lsp_enforce_margin()
638 lsp[i]=lsp[i-1]+LSP_SCALING*margin; in lsp_enforce_margin()
640 if (lsp[i]>lsp[i+1]-LSP_SCALING*margin) in lsp_enforce_margin()
641 lsp[i]= .5f* (lsp[i] + lsp[i+1]-LSP_SCALING*margin); in lsp_enforce_margin()