Lines Matching refs:lp_half_order
106 static void lsp2poly(int* f, const int16_t* lsp, int lp_half_order) in lsp2poly() argument
113 for(i=2; i<=lp_half_order; i++) in lsp2poly()
123 void ff_acelp_lsp2lpc(int16_t* lp, const int16_t* lsp, int lp_half_order) in ff_acelp_lsp2lpc() argument
129 lsp2poly(f1, lsp , lp_half_order); in ff_acelp_lsp2lpc()
130 lsp2poly(f2, lsp+1, lp_half_order); in ff_acelp_lsp2lpc()
134 for(i=1; i<lp_half_order+1; i++) in ff_acelp_lsp2lpc()
141 lp[(lp_half_order << 1) + 1 - i] = (ff1 - ff2) >> 11; // divide by 2 and (3.22) -> (3.12) in ff_acelp_lsp2lpc()
147 int lp_half_order = lp_order >> 1; in ff_amrwb_lsp2lpc() local
155 ff_lsp2polyf(lsp , pa, lp_half_order ); in ff_amrwb_lsp2lpc()
156 ff_lsp2polyf(lsp + 1, qa, lp_half_order - 1); in ff_amrwb_lsp2lpc()
158 for (i = 1, j = lp_order - 1; i < lp_half_order; i++, j--) { in ff_amrwb_lsp2lpc()
165 lp[lp_half_order - 1] = (1.0 + lsp[lp_order - 1]) * in ff_amrwb_lsp2lpc()
166 pa[lp_half_order] * 0.5; in ff_amrwb_lsp2lpc()
191 void ff_lsp2polyf(const double *lsp, double *f, int lp_half_order) in ff_lsp2polyf() argument
198 for(i=2; i<=lp_half_order; i++) in ff_lsp2polyf()
209 void ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order) in ff_acelp_lspd2lpc() argument
212 float *lpc2 = lpc + (lp_half_order << 1) - 1; in ff_acelp_lspd2lpc()
214 av_assert2(lp_half_order <= MAX_LP_HALF_ORDER); in ff_acelp_lspd2lpc()
216 ff_lsp2polyf(lsp, pa, lp_half_order); in ff_acelp_lspd2lpc()
217 ff_lsp2polyf(lsp + 1, qa, lp_half_order); in ff_acelp_lspd2lpc()
219 while (lp_half_order--) { in ff_acelp_lspd2lpc()
220 double paf = pa[lp_half_order+1] + pa[lp_half_order]; in ff_acelp_lspd2lpc()
221 double qaf = qa[lp_half_order+1] - qa[lp_half_order]; in ff_acelp_lspd2lpc()
223 lpc [ lp_half_order] = 0.5*(paf+qaf); in ff_acelp_lspd2lpc()
224 lpc2[-lp_half_order] = 0.5*(paf-qaf); in ff_acelp_lspd2lpc()