• Home
  • Raw
  • Download

Lines Matching refs:max_order

146 static int estimate_best_order(double *ref, int min_order, int max_order)  in estimate_best_order()  argument
151 for(i=max_order-1; i>=min_order-1; i--) { in estimate_best_order()
203 int max_order, int precision, in ff_lpc_calc_coefs() argument
214 av_assert2(max_order >= MIN_LPC_ORDER && max_order <= MAX_LPC_ORDER && in ff_lpc_calc_coefs()
219 if (blocksize != s->blocksize || max_order != s->max_order || in ff_lpc_calc_coefs()
222 ff_lpc_init(s, blocksize, max_order, lpc_type); in ff_lpc_calc_coefs()
231 s->lpc_compute_autocorr(s->windowed_samples, blocksize, max_order, autoc); in ff_lpc_calc_coefs()
233 compute_lpc_coefs(autoc, max_order, &lpc[0][0], MAX_LPC_ORDER, 0, 1); in ff_lpc_calc_coefs()
235 for(i=0; i<max_order; i++) in ff_lpc_calc_coefs()
247 for(j=0; j<max_order; j++) in ff_lpc_calc_coefs()
248 m[0].coeff[max_order-1][j] = -lpc[max_order-1][j]; in ff_lpc_calc_coefs()
251 avpriv_init_lls(&m[pass&1], max_order); in ff_lpc_calc_coefs()
254 for(i=max_order; i<blocksize; i++){ in ff_lpc_calc_coefs()
255 for(j=0; j<=max_order; j++) in ff_lpc_calc_coefs()
260 eval= m[pass&1].evaluate_lls(&m[(pass-1)&1], var+1, max_order-1); in ff_lpc_calc_coefs()
264 for(j=0; j<=max_order; j++) in ff_lpc_calc_coefs()
275 for(i=0; i<max_order; i++){ in ff_lpc_calc_coefs()
276 for(j=0; j<max_order; j++) in ff_lpc_calc_coefs()
278 ref[i]= sqrt(m[(pass-1)&1].variance[i] / weight) * (blocksize - max_order) / 4000; in ff_lpc_calc_coefs()
280 for(i=max_order-1; i>0; i--) in ff_lpc_calc_coefs()
284 opt_order = max_order; in ff_lpc_calc_coefs()
287 opt_order = estimate_best_order(ref, min_order, max_order); in ff_lpc_calc_coefs()
292 for(i=min_order-1; i<max_order; i++) { in ff_lpc_calc_coefs()
301 av_cold int ff_lpc_init(LPCContext *s, int blocksize, int max_order, in ff_lpc_init() argument
305 s->max_order = max_order; in ff_lpc_init()
308 s->windowed_buffer = av_mallocz((blocksize + 2 + FFALIGN(max_order, 4)) * in ff_lpc_init()
312 s->windowed_samples = s->windowed_buffer + FFALIGN(max_order, 4); in ff_lpc_init()