• 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

103     int16_t     prev_lsf_r[LP_FILTER_ORDER]; ///< residual LSF vector from previous subframe
104 double lsp[4][LP_FILTER_ORDER]; ///< lsp vectors from current frame
105 double prev_lsp_sub4[LP_FILTER_ORDER]; ///< lsp vector for the 4th subframe of the previous frame
107 float lsf_q[4][LP_FILTER_ORDER]; ///< Interpolated LSF vector for fixed gain smoothing
108 float lsf_avg[LP_FILTER_ORDER]; ///< vector of averaged lsf vector
110 float lpc[4][LP_FILTER_ORDER]; ///< lpc coefficient vectors for 4 subframes
114 float excitation_buf[PITCH_DELAY_MAX + LP_FILTER_ORDER + 1 + AMR_SUBFRAME_SIZE]; ///< current excitation and all necessary excitation history
137 float samples_in[LP_FILTER_ORDER + AMR_SUBFRAME_SIZE]; ///< floating point samples
161 p->excitation = &p->excitation_buf[PITCH_DELAY_MAX + LP_FILTER_ORDER + 1];
163 for (i = 0; i < LP_FILTER_ORDER; i++) {
225 static void interpolate_lsf(float lsf_q[4][LP_FILTER_ORDER], float *lsf_new)
232 LP_FILTER_ORDER);
246 static void lsf2lsp_for_mode12k2(AMRContext *p, double lsp[LP_FILTER_ORDER],
247 const float lsf_no_r[LP_FILTER_ORDER],
252 int16_t lsf_r[LP_FILTER_ORDER]; // residual LSF vector
253 float lsf_q[LP_FILTER_ORDER]; // quantified LSF vector
256 for (i = 0; i < LP_FILTER_ORDER >> 1; i++)
266 memcpy(p->prev_lsf_r, lsf_r, LP_FILTER_ORDER * sizeof(*lsf_r));
268 for (i = 0; i < LP_FILTER_ORDER; i++)
271 ff_set_min_dist_lsf(lsf_q, MIN_LSF_SPACING, LP_FILTER_ORDER);
276 ff_acelp_lsf2lspd(lsp, lsf_q, LP_FILTER_ORDER);
287 float lsf_no_r[LP_FILTER_ORDER]; // LSFs without the residual vector
297 for (i = 0; i < LP_FILTER_ORDER; i++)
304 weighted_vector_sumd(p->lsp[0], p->prev_lsp_sub4, p->lsp[1], 0.5, 0.5, LP_FILTER_ORDER);
305 weighted_vector_sumd(p->lsp[2], p->lsp[1] , p->lsp[3], 0.5, 0.5, LP_FILTER_ORDER);
316 int16_t lsf_r[LP_FILTER_ORDER]; // residual LSF vector
317 float lsf_q[LP_FILTER_ORDER]; // quantified LSF vector
331 for (i = 0; i < LP_FILTER_ORDER; i++)
334 ff_set_min_dist_lsf(lsf_q, MIN_LSF_SPACING, LP_FILTER_ORDER);
338 memcpy(p->prev_lsf_r, lsf_r, LP_FILTER_ORDER * sizeof(*lsf_r));
340 ff_acelp_lsf2lspd(p->lsp[3], lsf_q, LP_FILTER_ORDER);
344 for(j = 0; j < LP_FILTER_ORDER; j++)
579 for (i = 0; i < LP_FILTER_ORDER; i++)
809 LP_FILTER_ORDER);
833 memcpy(p->prev_lsp_sub4, p->lsp[3], LP_FILTER_ORDER * sizeof(p->lsp[3][0]));
836 (PITCH_DELAY_MAX + LP_FILTER_ORDER + 1) * sizeof(float));
842 LP_FILTER_ORDER * sizeof(float));
854 * @param lpc_n LP_FILTER_ORDER coefficients of the numerator
855 * @param lpc_d LP_FILTER_ORDER coefficients of the denominator
861 // LP_FILTER_ORDER prior zeros are needed for ff_celp_lp_synthesis_filterf
862 float impulse_buffer[LP_FILTER_ORDER + AMR_TILT_RESPONSE] = { 0 };
863 float *hf = impulse_buffer + LP_FILTER_ORDER; // start of impulse response
866 memcpy(hf + 1, lpc_n, sizeof(float) * LP_FILTER_ORDER);
868 LP_FILTER_ORDER);
889 float *samples = p->samples_in + LP_FILTER_ORDER; // Start of input
894 float pole_out[AMR_SUBFRAME_SIZE + LP_FILTER_ORDER]; // Output of pole filter
896 float lpc_n[LP_FILTER_ORDER], lpc_d[LP_FILTER_ORDER]; // Transfer function coefficients
906 for (i = 0; i < LP_FILTER_ORDER; i++) {
911 memcpy(pole_out, p->postfilter_mem, sizeof(float) * LP_FILTER_ORDER);
912 ff_celp_lp_synthesis_filterf(pole_out + LP_FILTER_ORDER, lpc_d, samples,
913 AMR_SUBFRAME_SIZE, LP_FILTER_ORDER);
915 sizeof(float) * LP_FILTER_ORDER);
918 pole_out + LP_FILTER_ORDER,
919 AMR_SUBFRAME_SIZE, LP_FILTER_ORDER);
1027 synth_fixed_vector, &p->samples_in[LP_FILTER_ORDER], 0))
1032 synth_fixed_vector, &p->samples_in[LP_FILTER_ORDER], 1);
1053 0.84, 0.16, LP_FILTER_ORDER);