Lines Matching refs:LP_ORDER
52 float isf_cur[LP_ORDER]; ///< working ISF vector from current frame
53 float isf_q_past[LP_ORDER]; ///< quantized ISF vector of the previous frame
54 float isf_past_final[LP_ORDER]; ///< final processed ISF vector of the previous frame
55 double isp[4][LP_ORDER]; ///< ISP vectors from current frame
56 double isp_sub4_past[LP_ORDER]; ///< ISP vector for the 4th subframe of the previous frame
58 float lp_coef[4][LP_ORDER]; ///< Linear Prediction Coefficients from ISP vector
63 float excitation_buf[AMRWB_P_DELAY_MAX + LP_ORDER + 2 + AMRWB_SFR_SIZE]; ///< current excitation and all necessary excitation history
79 float samples_az[LP_ORDER + AMRWB_SFR_SIZE]; ///< low-band samples and memory from synthesis at 12.8kHz
124 ctx->excitation = &ctx->excitation_buf[AMRWB_P_DELAY_MAX + LP_ORDER + 1];
127 for (i = 0; i < LP_ORDER; i++)
164 * @param[out] isf_q Buffer for isf_q[LP_ORDER]
190 * @param[out] isf_q Buffer for isf_q[LP_ORDER]
230 for (i = 0; i < LP_ORDER; i++) {
245 static void interpolate_isp(double isp_q[4][LP_ORDER], const double *isp4_past)
251 for (i = 0; i < LP_ORDER; i++)
354 LP_ORDER, AMRWB_SFR_SIZE + 1);
707 for (i = 0; i < LP_ORDER - 1; i++)
806 AMRWB_SFR_SIZE, LP_ORDER);
925 for (i = 7; i < LP_ORDER - 2; i++) {
936 * @param[out] isf Buffer for extrapolated isf; contains LP_ORDER
941 float diff_isf[LP_ORDER - 2], diff_mean;
946 isf[LP_ORDER_16k - 1] = isf[LP_ORDER - 1];
949 for (i = 0; i < LP_ORDER - 2; i++)
953 for (i = 2; i < LP_ORDER - 2; i++)
954 diff_mean += diff_isf[i] * (1.0f / (LP_ORDER - 4));
966 for (i = LP_ORDER - 1; i < LP_ORDER_16k - 1; i++)
972 scale = 0.5 * (FFMIN(est, 7600) - isf[LP_ORDER - 2]) /
973 (isf[LP_ORDER_16k - 2] - isf[LP_ORDER - 2]);
975 for (i = LP_ORDER - 1, j = 0; i < LP_ORDER_16k - 1; i++, j++)
979 for (i = 1; i < LP_ORDER_16k - LP_ORDER; i++)
987 for (i = LP_ORDER - 1, j = 0; i < LP_ORDER_16k - 1; i++, j++)
1037 1.0 - isfp_inter[subframe], LP_ORDER);
1047 lpc_weighting(hb_lpc, ctx->lp_coef[subframe], 0.6, LP_ORDER);
1051 (mode == MODE_6k60) ? LP_ORDER_16k : LP_ORDER);
1092 (AMRWB_P_DELAY_MAX + LP_ORDER + 1) * sizeof(float));
1098 LP_ORDER * sizeof(float));
1176 ff_set_min_dist_lsf(ctx->isf_cur, MIN_ISF_SPACING, LP_ORDER - 1);
1180 ctx->isf_cur[LP_ORDER - 1] *= 2.0;
1181 ff_acelp_lsf2lspd(ctx->isp[3], ctx->isf_cur, LP_ORDER);
1186 memcpy(ctx->isp_sub4_past, ctx->isp[3], LP_ORDER * sizeof(double));
1191 ff_amrwb_lsp2lpc(ctx->isp[sub], ctx->lp_coef[sub], LP_ORDER);
1240 synth_fixed_vector, &ctx->samples_az[LP_ORDER]);
1244 &ctx->samples_az[LP_ORDER], PREEMPH_FAC, ctx->demph_mem);
1283 memcpy(ctx->isp_sub4_past, ctx->isp[3], LP_ORDER * sizeof(ctx->isp[3][0]));
1284 memcpy(ctx->isf_past_final, ctx->isf_cur, LP_ORDER * sizeof(float));