Home | History | Annotate | Download | only in libspeex

Lines Matching refs:margin

593 void lsp_enforce_margin(spx_lsp_t *lsp, int len, spx_word16_t margin)
596 spx_word16_t m = margin;
597 spx_word16_t m2 = 25736-margin;
628 void lsp_enforce_margin(spx_lsp_t *lsp, int len, spx_word16_t margin)
631 if (lsp[0]<LSP_SCALING*margin)
632 lsp[0]=LSP_SCALING*margin;
633 if (lsp[len-1]>LSP_SCALING*(M_PI-margin))
634 lsp[len-1]=LSP_SCALING*(M_PI-margin);
637 if (lsp[i]<lsp[i-1]+LSP_SCALING*margin)
638 lsp[i]=lsp[i-1]+LSP_SCALING*margin;
640 if (lsp[i]>lsp[i+1]-LSP_SCALING*margin)
641 lsp[i]= .5f* (lsp[i] + lsp[i+1]-LSP_SCALING*margin);