Lines Matching refs:fac_length
169 WORD32 fac_length = (usac_data->len_subfrm) / 2; in ixheaacd_tcx_mdct() local
179 fac_length_prev = fac_length; in ixheaacd_tcx_mdct()
181 if (fac_length == 96) in ixheaacd_tcx_mdct()
198 xn = xn_buf + fac_length; in ixheaacd_tcx_mdct()
203 st->exc_prev[i + fac_length - fac_length_prev + 1] *= in ixheaacd_tcx_mdct()
207 for (i = 0; i < fac_length - fac_length_prev; i++) { in ixheaacd_tcx_mdct()
208 st->exc_prev[i + fac_length + fac_length_prev + 1] = 0.0f; in ixheaacd_tcx_mdct()
260 err = ixheaacd_acelp_mdct_main(usac_data, int_x, int_xn1, (2 * fac_length), in ixheaacd_tcx_mdct()
261 lg - (2 * fac_length), &preshift); in ixheaacd_tcx_mdct()
264 ixheaacd_fix2float(int_xn1, xn_buf, (lg + (2 * fac_length)), &shiftp, in ixheaacd_tcx_mdct()
267 ixheaacd_vec_cnst_mul((2.0f / lg), xn_buf, xn_buf, lg + (2 * fac_length)); in ixheaacd_tcx_mdct()
270 gain_tcx * 0.5f * (FLOAT32)sqrt(((FLOAT32)fac_length) / (FLOAT32)lg); in ixheaacd_tcx_mdct()
272 for (i = 0; i < fac_length / 4; i++) in ixheaacd_tcx_mdct()
273 st->fac_fd_data[i] = alfd_gains[i * lg / (8 * fac_length)]; in ixheaacd_tcx_mdct()
284 for (i = 0; i < fac_length / 2; i++) { in ixheaacd_tcx_mdct()
287 x[fac_length / 2 + i] = in ixheaacd_tcx_mdct()
290 ->fac[frame_index * FAC_LENGTH + fac_length - 2 * i - 1]; in ixheaacd_tcx_mdct()
293 for (i = 0; i < fac_length / 8; i++) { in ixheaacd_tcx_mdct()
295 x[fac_length - i - 1] *= st->fac_fd_data[2 * i + 1]; in ixheaacd_tcx_mdct()
299 shiftp = ixheaacd_float2fix(x, int_x, fac_length); in ixheaacd_tcx_mdct()
302 ixheaacd_acelp_mdct(int_x, int_xn1, &preshift, fac_length, ptr_scratch); in ixheaacd_tcx_mdct()
305 ixheaacd_fix2float(int_xn1, xn1, fac_length, &shiftp, &preshift); in ixheaacd_tcx_mdct()
307 ixheaacd_vec_cnst_mul((2.0f / (FLOAT32)fac_length), xn1, xn1, fac_length); in ixheaacd_tcx_mdct()
309 memset(xn1 + fac_length, 0, fac_length * sizeof(FLOAT32)); in ixheaacd_tcx_mdct()
312 ixheaacd_synthesis_tool_float(i_ap, xn1, xn1, 2 * fac_length, in ixheaacd_tcx_mdct()
313 xn1 + fac_length); in ixheaacd_tcx_mdct()
315 for (i = 0; i < fac_length; i++) { in ixheaacd_tcx_mdct()
316 temp = st->exc_prev[1 + fac_length + i] * facwindow[fac_length + i] + in ixheaacd_tcx_mdct()
317 st->exc_prev[fac_length - i] * facwindow[fac_length - 1 - i]; in ixheaacd_tcx_mdct()
322 for (i = 0; i < lg + (2 * fac_length); i++) xn_buf[i] *= gain_tcx; in ixheaacd_tcx_mdct()
325 xn_buf[i + fac_length - fac_length_prev] *= sine_window_prev[i]; in ixheaacd_tcx_mdct()
327 for (i = 0; i < fac_length - fac_length_prev; i++) xn_buf[i] = 0.0f; in ixheaacd_tcx_mdct()
330 for (i = fac_length - fac_length_prev; i < (fac_length + fac_length_prev); in ixheaacd_tcx_mdct()
334 for (i = fac_length - fac_length_prev; i < (fac_length + fac_length_prev); in ixheaacd_tcx_mdct()
336 xn_buf[i + fac_length] += xn1[i]; in ixheaacd_tcx_mdct()
339 ixheaacd_mem_cpy(xn_buf + lg - 1, st->exc_prev, 1 + (2 * fac_length)); in ixheaacd_tcx_mdct()
341 for (i = 0; i < (2 * fac_length); i++) { in ixheaacd_tcx_mdct()
342 xn_buf[i + lg] *= sine_window[(2 * fac_length) - 1 - i]; in ixheaacd_tcx_mdct()
346 ixheaacd_mem_cpy(xn_buf + fac_length - fac_length_prev, in ixheaacd_tcx_mdct()
349 for (i = 0; i < ORDER + fac_length; i++) in ixheaacd_tcx_mdct()
350 buf[i] = synth[i - ORDER - fac_length] - in ixheaacd_tcx_mdct()
351 (PREEMPH_FILT_FAC * synth[i - ORDER - fac_length - 1]); in ixheaacd_tcx_mdct()
354 TTT = fac_length % LEN_SUBFR; in ixheaacd_tcx_mdct()
356 ixheaacd_residual_tool_float(ptr_a, &buf[ORDER], &exc[-fac_length], TTT, in ixheaacd_tcx_mdct()
359 loop_count = (fac_length - TTT) / LEN_SUBFR; in ixheaacd_tcx_mdct()
361 &exc[TTT - fac_length], LEN_SUBFR, loop_count); in ixheaacd_tcx_mdct()