Lines Matching refs:FIXP_DBL
130 void E_UTIL_preemph(const FIXP_DBL *in, FIXP_DBL *out, INT L) { in E_UTIL_preemph()
149 FIXP_DBL L_tmp; in Preemph_code()
169 FIXP_DBL L_tmp; in Pit_shrp()
195 static const FIXP_DBL pow_10_mean_energy[4] = {0x01fc5ebd, 0x07e7db92,
199 FIXP_DBL *gain_code, int mean_ener_bits, int bfi, in D_gain2_plus()
200 FIXP_SGL *past_gpit, FIXP_DBL *past_gcode, in D_gain2_plus()
201 FIXP_DBL *pEner_code, int *pEner_code_e) { in D_gain2_plus()
202 FIXP_DBL Ltmp; in D_gain2_plus()
203 FIXP_DBL gcode0, gcode_inov; in D_gain2_plus()
207 FIXP_DBL ener_code; in D_gain2_plus()
211 ener_code = FIXP_DBL(0); in D_gain2_plus()
238 FIXP_DBL tgcode; in D_gain2_plus()
282 FIXP_DBL gcode_m; in D_gain2_plus()
301 static FIXP_DBL calc_period_factor(FIXP_DBL exc[], FIXP_SGL gain_pit, in calc_period_factor()
302 FIXP_DBL gain_code, FIXP_DBL ener_code, in calc_period_factor()
305 FIXP_DBL ener_exc, L_tmp; in calc_period_factor()
306 FIXP_DBL period_fac; in calc_period_factor()
309 ener_exc = (FIXP_DBL)0; in calc_period_factor()
320 if (ener_exc != (FIXP_DBL)0) { in calc_period_factor()
335 FIXP_DBL num, den; in calc_period_factor()
344 L_tmp = (FIXP_DBL)0; in calc_period_factor()
354 ener_exc = (FIXP_DBL)0; in calc_period_factor()
365 if (den > (FIXP_DBL)0) { in calc_period_factor()
372 period_fac = (FIXP_DBL)MAXVAL_DBL; in calc_period_factor()
396 static FIXP_DBL
398 FIXP_DBL gain_code, /* (i) : Quantized codebook gain SF_GAIN_C */ in noise_enhancer()
399 FIXP_DBL period_fac, /* (i) : periodicity factor (-1=unvoiced to in noise_enhancer()
403 FIXP_DBL in noise_enhancer()
406 FIXP_DBL fac, L_tmp, gc_thres; in noise_enhancer()
432 FDK_ASSERT(fac >= (FIXP_DBL)0); in noise_enhancer()
457 FIXP_DBL exc[], /* (io): filtered adaptive codebook v(n) Q15 */ in BuildAdaptiveExcitation()
459 FIXP_DBL gain_code, /* (i) : innovative codebook gain g_c Q16 */ in BuildAdaptiveExcitation()
460 FIXP_DBL gain_code_smoothed, /* (i) : smoothed innov. codebook gain g_sc in BuildAdaptiveExcitation()
462 FIXP_DBL period_fac, /* (i) : periodicity factor r_v Q15 */ in BuildAdaptiveExcitation()
463 FIXP_DBL exc2[] /* (o) : post-processed excitation u(n) Q15 */ in BuildAdaptiveExcitation()
473 FIXP_DBL tmp, cpe, code_smooth_prev, code_smooth; in BuildAdaptiveExcitation()
476 FIXP_DBL cpe_code_smooth, cpe_code_smooth_prev; in BuildAdaptiveExcitation()
575 FIXP_DBL x[], /* (i) : input signal Qx */ in Syn_filt()
576 FIXP_DBL y[] /* (i/o) : filter states / output signal Qx-s*/ in Syn_filt()
579 FIXP_DBL L_tmp; in Syn_filt()
582 L_tmp = (FIXP_DBL)0; in Syn_filt()
603 void Deemph(FIXP_DBL *x, FIXP_DBL *y, int L, FIXP_DBL *mem) { in Deemph()
605 FIXP_DBL yi = *mem; in Deemph()
608 FIXP_DBL xi = x[i] >> 1; in Deemph()
627 void E_UTIL_residu(const FIXP_LPC *a, const INT a_exp, FIXP_DBL *x, FIXP_DBL *y, in E_UTIL_residu()
629 FIXP_DBL s; in E_UTIL_residu()
634 s = (FIXP_DBL)0; in E_UTIL_residu()
739 FIXP_DBL synth[], int pT[], FIXP_DBL *pit_gain, in CLpd_AcelpDecode()
749 FIXP_DBL *exc2; in CLpd_AcelpDecode()
750 FIXP_DBL *syn; in CLpd_AcelpDecode()
751 FIXP_DBL *exc; in CLpd_AcelpDecode()
755 FIXP_DBL period_fac; in CLpd_AcelpDecode()
757 FIXP_DBL gain_code, gain_code_smooth, Ener_code; in CLpd_AcelpDecode()
763 exc_buf, FIXP_DBL, in CLpd_AcelpDecode()
765 C_ALLOC_SCRATCH_START(syn_buf, FIXP_DBL, in CLpd_AcelpDecode()
768 C_ALLOC_SCRATCH_START(tmp_buf, FIXP_DBL, L_SUBFR); /* 64 */ in CLpd_AcelpDecode()
776 exc2 = (FIXP_DBL *)tmp_buf; in CLpd_AcelpDecode()
782 M_LP_FILTER_ORDER * sizeof(FIXP_DBL)); in CLpd_AcelpDecode()
784 (PIT_MAX_MAX + L_INTERPOL) * sizeof(FIXP_DBL)); in CLpd_AcelpDecode()
787 (L_DIV + 1) * sizeof(FIXP_DBL)); in CLpd_AcelpDecode()
911 sizeof(FIXP_DBL) * (PIT_MAX_MAX + L_INTERPOL)); in CLpd_AcelpDecode()
913 sizeof(FIXP_DBL) * M_LP_FILTER_ORDER); in CLpd_AcelpDecode()
921 C_ALLOC_SCRATCH_END(tmp_buf, FIXP_DBL, L_SUBFR); in CLpd_AcelpDecode()
922 C_ALLOC_SCRATCH_END(syn_buf, FIXP_DBL, M_LP_FILTER_ORDER + L_DIV); in CLpd_AcelpDecode()
923 C_ALLOC_SCRATCH_END(exc_buf, FIXP_DBL, PIT_MAX_MAX + L_INTERPOL + L_DIV + 1); in CLpd_AcelpDecode()
928 acelp->gc_threshold = (FIXP_DBL)0; in CLpd_AcelpReset()
931 acelp->past_gcode = (FIXP_DBL)0; in CLpd_AcelpReset()
934 acelp->deemph_mem_wsyn = (FIXP_DBL)0; in CLpd_AcelpReset()
935 acelp->wsyn_rms = (FIXP_DBL)0; in CLpd_AcelpReset()
944 const FIXP_SGL stab_fac, INT nLostSf, FIXP_DBL synth[], in CLpd_TcxTDConceal()
948 exc_buf, FIXP_DBL, in CLpd_TcxTDConceal()
950 C_ALLOC_SCRATCH_START(syn_buf, FIXP_DBL, in CLpd_TcxTDConceal()
953 FIXP_DBL ns_buf[L_DIV + 1]; in CLpd_TcxTDConceal()
954 FIXP_DBL *syn = syn_buf + M_LP_FILTER_ORDER; in CLpd_TcxTDConceal()
955 FIXP_DBL *exc = exc_buf + PIT_MAX_MAX + L_INTERPOL; in CLpd_TcxTDConceal()
956 FIXP_DBL *ns = ns_buf + 1; in CLpd_TcxTDConceal()
957 FIXP_DBL tmp, fact_exc; in CLpd_TcxTDConceal()
963 M_LP_FILTER_ORDER * sizeof(FIXP_DBL)); in CLpd_TcxTDConceal()
965 (PIT_MAX_MAX + L_INTERPOL) * sizeof(FIXP_DBL)); in CLpd_TcxTDConceal()
996 FIXP_DBL tRes[L_SUBFR]; in CLpd_TcxTDConceal()
1036 FDKmemmove(&synth[i_subfr], &syn[i_subfr], L_SUBFR * sizeof(FIXP_DBL)); in CLpd_TcxTDConceal()
1041 sizeof(FIXP_DBL) * (PIT_MAX_MAX + L_INTERPOL)); in CLpd_TcxTDConceal()
1043 sizeof(FIXP_DBL) * M_LP_FILTER_ORDER); in CLpd_TcxTDConceal()
1046 C_ALLOC_SCRATCH_END(syn_buf, FIXP_DBL, M_LP_FILTER_ORDER + L_DIV); in CLpd_TcxTDConceal()
1047 C_ALLOC_SCRATCH_END(exc_buf, FIXP_DBL, PIT_MAX_MAX + L_INTERPOL + L_DIV); in CLpd_TcxTDConceal()
1050 void Acelp_PreProcessing(FIXP_DBL *synth_buf, FIXP_DBL *old_synth, INT *pitch, in Acelp_PreProcessing()
1051 INT *old_T_pf, FIXP_DBL *pit_gain, in Acelp_PreProcessing()
1052 FIXP_DBL *old_gain_pf, INT samplingRate, INT *i_offset, in Acelp_PreProcessing()
1058 FDKmemcpy(synth_buf, old_synth, sizeof(FIXP_DBL) * (PIT_MAX_MAX - BPF_DELAY)); in Acelp_PreProcessing()
1072 pit_gain[n + synSfd] = (FIXP_DBL)0; in Acelp_PreProcessing()
1076 void Acelp_PostProcessing(FIXP_DBL *synth_buf, FIXP_DBL *old_synth, INT *pitch, in Acelp_PostProcessing()
1084 sizeof(FIXP_DBL) * (PIT_MAX_MAX - BPF_DELAY)); in Acelp_PostProcessing()
1096 FIXP_DBL zir[], int doDeemph) { in CLpd_Acelp_Zir()
1097 C_ALLOC_SCRATCH_START(tmp_buf, FIXP_DBL, L_FAC_ZIR + M_LP_FILTER_ORDER); in CLpd_Acelp_Zir()
1101 M_LP_FILTER_ORDER * sizeof(FIXP_DBL)); in CLpd_Acelp_Zir()
1102 FDKmemset(tmp_buf + M_LP_FILTER_ORDER, 0, L_FAC_ZIR * sizeof(FIXP_DBL)); in CLpd_Acelp_Zir()
1114 C_ALLOC_SCRATCH_END(tmp_buf, FIXP_DBL, L_FAC_ZIR + M_LP_FILTER_ORDER); in CLpd_Acelp_Zir()
1117 void CLpd_AcelpPrepareInternalMem(const FIXP_DBL *synth, UCHAR last_lpd_mode, in CLpd_AcelpPrepareInternalMem()
1127 FIXP_DBL *syn, *old_exc_mem; in CLpd_AcelpPrepareInternalMem()
1129 C_ALLOC_SCRATCH_START(synth_buf, FIXP_DBL, in CLpd_AcelpPrepareInternalMem()
1141 (PIT_MAX_MAX + L_INTERPOL + M_LP_FILTER_ORDER) * sizeof(FIXP_DBL)); in CLpd_AcelpPrepareInternalMem()
1159 M_LP_FILTER_ORDER * sizeof(FIXP_DBL)); in CLpd_AcelpPrepareInternalMem()
1162 FDKmemclear(old_exc_mem, (PIT_MAX_MAX + L_INTERPOL) * sizeof(FIXP_DBL)); in CLpd_AcelpPrepareInternalMem()
1163 C_ALLOC_SCRATCH_END(synth_buf, FIXP_DBL, in CLpd_AcelpPrepareInternalMem()
1174 sizeof(FIXP_DBL) * l_div_partial); in CLpd_AcelpPrepareInternalMem()
1189 C_ALLOC_SCRATCH_END(synth_buf, FIXP_DBL, in CLpd_AcelpPrepareInternalMem()
1195 FIXP_DBL *CLpd_ACELP_GetFreeExcMem(CAcelpStaticMem *acelp_mem, INT length) { in CLpd_ACELP_GetFreeExcMem()