• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:LP_FILTER_ORDER

156     float lsf_tmp[LP_FILTER_ORDER];
160 for (i = 0; i < LP_FILTER_ORDER; i++)
163 ff_sort_nearly_sorted_floats(lsfnew, LP_FILTER_ORDER - 1);
167 ff_set_min_dist_lsf(lsfnew, LSFQ_DIFF_MIN, LP_FILTER_ORDER - 1);
168 lsfnew[9] = FFMIN(lsfnew[LP_FILTER_ORDER - 1], 1.3 * M_PI);
170 memcpy(lsf_history, lsf_tmp, LP_FILTER_ORDER * sizeof(*lsf_history));
172 for (i = 0; i < LP_FILTER_ORDER - 1; i++)
174 lsfnew[LP_FILTER_ORDER - 1] *= 6.153848 / M_PI;
218 double lsfint[LP_FILTER_ORDER];
224 for (j = 0; j < LP_FILTER_ORDER; j++)
227 ff_amrwb_lsp2lpc(lsfint, Az, LP_FILTER_ORDER);
228 Az += LP_FILTER_ORDER;
239 float tmp1[SUBFR_SIZE+1], tmp2[LP_FILTER_ORDER+1];
243 for (i = 0; i < LP_FILTER_ORDER; i++) {
250 LP_FILTER_ORDER);
274 float buf[SUBFR_SIZE + LP_FILTER_ORDER];
275 float *pole_out = buf + LP_FILTER_ORDER;
276 float lpc_n[LP_FILTER_ORDER];
277 float lpc_d[LP_FILTER_ORDER];
280 for (i = 0; i < LP_FILTER_ORDER; i++) {
285 memcpy(pole_out - LP_FILTER_ORDER, ctx->postfilter_mem,
286 LP_FILTER_ORDER*sizeof(float));
289 LP_FILTER_ORDER);
291 memcpy(ctx->postfilter_mem, pole_out + SUBFR_SIZE - LP_FILTER_ORDER,
292 LP_FILTER_ORDER*sizeof(float));
296 memcpy(pole_out - LP_FILTER_ORDER, ctx->postfilter_mem5k0,
297 LP_FILTER_ORDER*sizeof(*pole_out));
299 memcpy(ctx->postfilter_mem5k0, pole_out + SUBFR_SIZE - LP_FILTER_ORDER,
300 LP_FILTER_ORDER*sizeof(*pole_out));
303 LP_FILTER_ORDER);
369 float Az[LP_FILTER_ORDER * MAX_SUBFRAME_COUNT];
371 float ir_buf[SUBFR_SIZE + LP_FILTER_ORDER];
372 float lsf_new[LP_FILTER_ORDER];
373 float *impulse_response = ir_buf + LP_FILTER_ORDER;
374 float *synth = ctx->synth_buf + 16; // 16 instead of LP_FILTER_ORDER for
379 memset(ir_buf, 0, LP_FILTER_ORDER * sizeof(float));
384 memcpy(ctx->lsp_history, lsf_new, LP_FILTER_ORDER * sizeof(float));
389 float *pAz = Az + i*LP_FILTER_ORDER;
402 2 * ((2 + T0_frac)%3 + 1), LP_FILTER_ORDER,
440 ff_celp_lp_synthesis_filterf(ctx->postfilter_syn5k0 + LP_FILTER_ORDER + i*SUBFR_SIZE,
442 LP_FILTER_ORDER);
446 SUBFR_SIZE, LP_FILTER_ORDER);
451 memcpy(synth - LP_FILTER_ORDER, synth + frame_size - LP_FILTER_ORDER,
452 LP_FILTER_ORDER * sizeof(float));
456 float energy = ff_dot_productf(ctx->postfilter_syn5k0 + LP_FILTER_ORDER + i*SUBFR_SIZE,
457 ctx->postfilter_syn5k0 + LP_FILTER_ORDER + i*SUBFR_SIZE,
465 LP_FILTER_ORDER*sizeof(float));
507 for (i = 0; i < LP_FILTER_ORDER; i++)
508 ctx->lsp_history[i] = cos((i+1) * M_PI / (LP_FILTER_ORDER + 1));