• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:LP_FILTER_ORDER

105     int16_t     prev_lsf_r[LP_FILTER_ORDER]; ///< residual LSF vector from previous subframe
106 double lsp[4][LP_FILTER_ORDER]; ///< lsp vectors from current frame
107 double prev_lsp_sub4[LP_FILTER_ORDER]; ///< lsp vector for the 4th subframe of the previous frame
109 float lsf_q[4][LP_FILTER_ORDER]; ///< Interpolated LSF vector for fixed gain smoothing
110 float lsf_avg[LP_FILTER_ORDER]; ///< vector of averaged lsf vector
112 float lpc[4][LP_FILTER_ORDER]; ///< lpc coefficient vectors for 4 subframes
116 float excitation_buf[PITCH_DELAY_MAX + LP_FILTER_ORDER + 1 + AMR_SUBFRAME_SIZE]; ///< current excitation and all necessary excitation history
139 float samples_in[LP_FILTER_ORDER + AMR_SUBFRAME_SIZE]; ///< floating point samples
177 p->excitation = &p->excitation_buf[PITCH_DELAY_MAX + LP_FILTER_ORDER + 1];
179 for (i = 0; i < LP_FILTER_ORDER; i++) {
239 static void interpolate_lsf(ACELPVContext *ctx, float lsf_q[4][LP_FILTER_ORDER], float *lsf_new)
246 LP_FILTER_ORDER);
260 static void lsf2lsp_for_mode12k2(AMRContext *p, double lsp[LP_FILTER_ORDER],
261 const float lsf_no_r[LP_FILTER_ORDER],
266 int16_t lsf_r[LP_FILTER_ORDER]; // residual LSF vector
267 float lsf_q[LP_FILTER_ORDER]; // quantified LSF vector
270 for (i = 0; i < LP_FILTER_ORDER >> 1; i++)
280 memcpy(p->prev_lsf_r, lsf_r, LP_FILTER_ORDER * sizeof(*lsf_r));
282 for (i = 0; i < LP_FILTER_ORDER; i++)
285 ff_set_min_dist_lsf(lsf_q, MIN_LSF_SPACING, LP_FILTER_ORDER);
290 ff_acelp_lsf2lspd(lsp, lsf_q, LP_FILTER_ORDER);
301 float lsf_no_r[LP_FILTER_ORDER]; // LSFs without the residual vector
311 for (i = 0; i < LP_FILTER_ORDER; i++)
318 weighted_vector_sumd(p->lsp[0], p->prev_lsp_sub4, p->lsp[1], 0.5, 0.5, LP_FILTER_ORDER);
319 weighted_vector_sumd(p->lsp[2], p->lsp[1] , p->lsp[3], 0.5, 0.5, LP_FILTER_ORDER);
330 int16_t lsf_r[LP_FILTER_ORDER]; // residual LSF vector
331 float lsf_q[LP_FILTER_ORDER]; // quantified LSF vector
345 for (i = 0; i < LP_FILTER_ORDER; i++)
348 ff_set_min_dist_lsf(lsf_q, MIN_LSF_SPACING, LP_FILTER_ORDER);
352 memcpy(p->prev_lsf_r, lsf_r, LP_FILTER_ORDER * sizeof(*lsf_r));
354 ff_acelp_lsf2lspd(p->lsp[3], lsf_q, LP_FILTER_ORDER);
358 for(j = 0; j < LP_FILTER_ORDER; j++)
594 for (i = 0; i < LP_FILTER_ORDER; i++)
825 LP_FILTER_ORDER);
849 memcpy(p->prev_lsp_sub4, p->lsp[3], LP_FILTER_ORDER * sizeof(p->lsp[3][0]));
852 (PITCH_DELAY_MAX + LP_FILTER_ORDER + 1) * sizeof(float));
858 LP_FILTER_ORDER * sizeof(float));
871 * @param lpc_n LP_FILTER_ORDER coefficients of the numerator
872 * @param lpc_d LP_FILTER_ORDER coefficients of the denominator
878 // LP_FILTER_ORDER prior zeros are needed for ff_celp_lp_synthesis_filterf
879 float impulse_buffer[LP_FILTER_ORDER + AMR_TILT_RESPONSE] = { 0 };
880 float *hf = impulse_buffer + LP_FILTER_ORDER; // start of impulse response
883 memcpy(hf + 1, lpc_n, sizeof(float) * LP_FILTER_ORDER);
886 LP_FILTER_ORDER);
907 float *samples = p->samples_in + LP_FILTER_ORDER; // Start of input
912 float pole_out[AMR_SUBFRAME_SIZE + LP_FILTER_ORDER]; // Output of pole filter
914 float lpc_n[LP_FILTER_ORDER], lpc_d[LP_FILTER_ORDER]; // Transfer function coefficients
924 for (i = 0; i < LP_FILTER_ORDER; i++) {
929 memcpy(pole_out, p->postfilter_mem, sizeof(float) * LP_FILTER_ORDER);
930 p->celpf_ctx.celp_lp_synthesis_filterf(pole_out + LP_FILTER_ORDER, lpc_d, samples,
931 AMR_SUBFRAME_SIZE, LP_FILTER_ORDER);
933 sizeof(float) * LP_FILTER_ORDER);
936 pole_out + LP_FILTER_ORDER,
937 AMR_SUBFRAME_SIZE, LP_FILTER_ORDER);
1047 synth_fixed_vector, &p->samples_in[LP_FILTER_ORDER], 0))
1052 synth_fixed_vector, &p->samples_in[LP_FILTER_ORDER], 1);
1074 0.84, 0.16, LP_FILTER_ORDER);