Loading lib_com/prot.h +0 −32 Original line number Diff line number Diff line Loading @@ -2784,10 +2784,6 @@ void calc_tilt_bwe( const float *sp, /* i : input signal */ float *tilt, /* o : signal tilt */ const int16_t N /* i : signal length */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i : IVAS element mode */ #endif ); void fd_bwe_enc_init( Loading Loading @@ -7087,10 +7083,6 @@ void qlpc_avq( int16_t *nbbits, /* o : Number of quantization bits */ const int16_t core, /* i : core */ const int32_t sr_core /* i : internal sampling rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i" IVAS element mode */ #endif ); int16_t encode_lpc_avq( Loading @@ -7106,10 +7098,6 @@ int16_t dlpc_avq( float *LSF_Q, /* o : Quantized LSF vectors */ const int16_t numlpc, /* i : Number of sets of lpc */ const int32_t sr_core /* i : internal sampling rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i: IVAS element mode */ #endif ); int16_t decode_lpc_avq( Loading @@ -7136,10 +7124,6 @@ int16_t vlpc_2st_cod( int16_t *indx, /* o : index[] (4 bits per words) */ const int16_t mode, /* i : 0=abs, >0=rel */ const int32_t sr_core /* i : internal sampling rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i" IVAS element mode */ #endif ); void vlpc_2st_dec( Loading @@ -7147,10 +7131,6 @@ void vlpc_2st_dec( int16_t *indx, /* i : index[] (4 bits per words) */ const int16_t mode, /* i : 0=abs, >0=rel */ const int32_t sr_core /* i : internal sampling rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i: IVAS element mode */ #endif ); void lsf_weight_2st( Loading @@ -7158,10 +7138,6 @@ void lsf_weight_2st( float *w, const int16_t mode, const int32_t sr_core #ifdef FIX_I120_INV_SQRT , const int16_t element_mode #endif ); void mdct_window_sine( Loading Loading @@ -8392,10 +8368,6 @@ int16_t vad_proc( VAD_CLDFB_HANDLE hVAD_CLDFB, /* i/o: CLDFB VAD state */ int16_t *cldfb_addition, const int16_t vada_flag /* i : VAD flag */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i: IVAS element mode */ #endif ); void subband_FFT( Loading @@ -8418,10 +8390,6 @@ void frame_spec_dif_cor_rate( float spec_amp[], /* i : spectral amplitude */ float pre_spec_low_dif[], /* i/o: low spectrum different */ float f_tonality_rate[] /* o : tonality rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i: IVAS element mode */ #endif ); void ltd_stable( Loading lib_com/swb_bwe_com.c +1 −16 Original line number Diff line number Diff line Loading @@ -288,10 +288,6 @@ void calc_tilt_bwe( const float *sp, /* i : input signal */ float *tilt, /* o : signal tilt */ const int16_t N /* i : signal length */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i : IVAS element mode */ #endif ) { int16_t i; Loading @@ -312,18 +308,7 @@ void calc_tilt_bwe( } } #ifdef FIX_I120_INV_SQRT if ( element_mode != EVS_MONO ) { *tilt = r1 * inv_sqrt( r0 ); } else { #endif *tilt = (float) ( r1 / sqrt( r0 ) ); #ifdef FIX_I120_INV_SQRT } #endif return; } Loading lib_com/vlpc_2st_com.c +3 −39 Original line number Diff line number Diff line Loading @@ -53,9 +53,6 @@ void lsf_weight_2st( float *w, const int16_t mode, const int32_t sr_core #ifdef FIX_I120_INV_SQRT ,const int16_t element_mode #endif ) { int16_t i; Loading @@ -78,48 +75,15 @@ void lsf_weight_2st( if ( mode == 0 ) { #ifdef FIX_I120_INV_SQRT if ( element_mode != EVS_MONO ) { w[i] = (float) ( 60.0f / ( freq_div * inv_sqrt( d[i] * d[i + 1] ) ) ); /* abs */ } else { #endif w[i] = (float) ( 60.0f / ( freq_div / sqrt( d[i] * d[i + 1] ) ) ); /* abs */ #ifdef FIX_I120_INV_SQRT } #endif } else if ( mode == 1 ) { #ifdef FIX_I120_INV_SQRT if ( element_mode != EVS_MONO ) { w[i] = (float) ( 65.0f / ( freq_div * inv_sqrt( d[i] * d[i + 1] ) ) ); /* mid */ } else { #endif w[i] = (float) ( 65.0f / ( freq_div / sqrt( d[i] * d[i + 1] ) ) ); /* mid */ #ifdef FIX_I120_INV_SQRT } #endif } else { #ifdef FIX_I120_INV_SQRT if ( element_mode != EVS_MONO ) { w[i] = (float) ( 63.0f / ( freq_div * inv_sqrt( d[i] * d[i + 1] ) ) ); /* rel2 */ } else { #endif w[i] = (float) ( 63.0f / ( freq_div / sqrt( d[i] * d[i + 1] ) ) ); /* rel2 */ #ifdef FIX_I120_INV_SQRT } #endif } } Loading lib_dec/core_switching_dec.c +2 −11 Original line number Diff line number Diff line Loading @@ -1055,11 +1055,7 @@ void bw_switching_pre_proc( #endif { /* Calculate tilt of the ACELP core synthesis - needed in SWB BWE decoding */ calc_tilt_bwe( old_syn_12k8_16k, &st->tilt_wb, st->L_frame #ifdef FIX_I120_INV_SQRT ,st->element_mode #endif ); calc_tilt_bwe( old_syn_12k8_16k, &st->tilt_wb, st->L_frame ); } return; Loading @@ -1071,12 +1067,7 @@ void bw_switching_pre_proc( * Calculate tilt of the ACELP core synthesis *----------------------------------------------------------------------*/ calc_tilt_bwe( old_syn_12k8_16k, &st->tilt_wb, st->L_frame #ifdef FIX_I120_INV_SQRT , st->element_mode #endif ); calc_tilt_bwe( old_syn_12k8_16k, &st->tilt_wb, st->L_frame ); /*-------------------------------------------------------------------------------* * Calculate frequency energy of 0~3.2kHz and 3.2~6.4kHz the ACELP core synthesis Loading lib_dec/dlpc_avq.c +3 −21 Original line number Diff line number Diff line Loading @@ -51,10 +51,6 @@ int16_t dlpc_avq( float *LSF_Q, /* o : Quantized LSF vectors */ const int16_t numlpc, /* i : Number of sets of lpc */ const int32_t sr_core /* i : internal sampling rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i: IVAS element mode */ #endif ) { int16_t i, nbi, last; Loading @@ -80,11 +76,7 @@ int16_t dlpc_avq( vlpc_1st_dec( p_index[0], &LSF_Q[last], sr_core ); p_index++; vlpc_2st_dec( &LSF_Q[last], &p_index[0], 0, sr_core #ifdef FIX_I120_INV_SQRT ,element_mode #endif ); vlpc_2st_dec( &LSF_Q[last], &p_index[0], 0, sr_core ); nbi = 2 + p_index[0] + p_index[1]; p_index += nbi; Loading @@ -104,12 +96,7 @@ int16_t dlpc_avq( } vlpc_1st_dec( p_index[0], &LSF_Q[0], sr_core ); p_index++; vlpc_2st_dec( &LSF_Q[0], &p_index[0], 0, sr_core #ifdef FIX_I120_INV_SQRT , element_mode #endif ); vlpc_2st_dec( &LSF_Q[0], &p_index[0], 0, sr_core ); } else if ( q_type == 1 ) { Loading @@ -118,12 +105,7 @@ int16_t dlpc_avq( LSF_Q[i] = LSF_Q[M + i]; } vlpc_2st_dec( &LSF_Q[0], &p_index[0], 3, sr_core #ifdef FIX_I120_INV_SQRT , element_mode #endif ); vlpc_2st_dec( &LSF_Q[0], &p_index[0], 3, sr_core ); } nbi = 2 + p_index[0] + p_index[1]; Loading Loading
lib_com/prot.h +0 −32 Original line number Diff line number Diff line Loading @@ -2784,10 +2784,6 @@ void calc_tilt_bwe( const float *sp, /* i : input signal */ float *tilt, /* o : signal tilt */ const int16_t N /* i : signal length */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i : IVAS element mode */ #endif ); void fd_bwe_enc_init( Loading Loading @@ -7087,10 +7083,6 @@ void qlpc_avq( int16_t *nbbits, /* o : Number of quantization bits */ const int16_t core, /* i : core */ const int32_t sr_core /* i : internal sampling rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i" IVAS element mode */ #endif ); int16_t encode_lpc_avq( Loading @@ -7106,10 +7098,6 @@ int16_t dlpc_avq( float *LSF_Q, /* o : Quantized LSF vectors */ const int16_t numlpc, /* i : Number of sets of lpc */ const int32_t sr_core /* i : internal sampling rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i: IVAS element mode */ #endif ); int16_t decode_lpc_avq( Loading @@ -7136,10 +7124,6 @@ int16_t vlpc_2st_cod( int16_t *indx, /* o : index[] (4 bits per words) */ const int16_t mode, /* i : 0=abs, >0=rel */ const int32_t sr_core /* i : internal sampling rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i" IVAS element mode */ #endif ); void vlpc_2st_dec( Loading @@ -7147,10 +7131,6 @@ void vlpc_2st_dec( int16_t *indx, /* i : index[] (4 bits per words) */ const int16_t mode, /* i : 0=abs, >0=rel */ const int32_t sr_core /* i : internal sampling rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i: IVAS element mode */ #endif ); void lsf_weight_2st( Loading @@ -7158,10 +7138,6 @@ void lsf_weight_2st( float *w, const int16_t mode, const int32_t sr_core #ifdef FIX_I120_INV_SQRT , const int16_t element_mode #endif ); void mdct_window_sine( Loading Loading @@ -8392,10 +8368,6 @@ int16_t vad_proc( VAD_CLDFB_HANDLE hVAD_CLDFB, /* i/o: CLDFB VAD state */ int16_t *cldfb_addition, const int16_t vada_flag /* i : VAD flag */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i: IVAS element mode */ #endif ); void subband_FFT( Loading @@ -8418,10 +8390,6 @@ void frame_spec_dif_cor_rate( float spec_amp[], /* i : spectral amplitude */ float pre_spec_low_dif[], /* i/o: low spectrum different */ float f_tonality_rate[] /* o : tonality rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i: IVAS element mode */ #endif ); void ltd_stable( Loading
lib_com/swb_bwe_com.c +1 −16 Original line number Diff line number Diff line Loading @@ -288,10 +288,6 @@ void calc_tilt_bwe( const float *sp, /* i : input signal */ float *tilt, /* o : signal tilt */ const int16_t N /* i : signal length */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i : IVAS element mode */ #endif ) { int16_t i; Loading @@ -312,18 +308,7 @@ void calc_tilt_bwe( } } #ifdef FIX_I120_INV_SQRT if ( element_mode != EVS_MONO ) { *tilt = r1 * inv_sqrt( r0 ); } else { #endif *tilt = (float) ( r1 / sqrt( r0 ) ); #ifdef FIX_I120_INV_SQRT } #endif return; } Loading
lib_com/vlpc_2st_com.c +3 −39 Original line number Diff line number Diff line Loading @@ -53,9 +53,6 @@ void lsf_weight_2st( float *w, const int16_t mode, const int32_t sr_core #ifdef FIX_I120_INV_SQRT ,const int16_t element_mode #endif ) { int16_t i; Loading @@ -78,48 +75,15 @@ void lsf_weight_2st( if ( mode == 0 ) { #ifdef FIX_I120_INV_SQRT if ( element_mode != EVS_MONO ) { w[i] = (float) ( 60.0f / ( freq_div * inv_sqrt( d[i] * d[i + 1] ) ) ); /* abs */ } else { #endif w[i] = (float) ( 60.0f / ( freq_div / sqrt( d[i] * d[i + 1] ) ) ); /* abs */ #ifdef FIX_I120_INV_SQRT } #endif } else if ( mode == 1 ) { #ifdef FIX_I120_INV_SQRT if ( element_mode != EVS_MONO ) { w[i] = (float) ( 65.0f / ( freq_div * inv_sqrt( d[i] * d[i + 1] ) ) ); /* mid */ } else { #endif w[i] = (float) ( 65.0f / ( freq_div / sqrt( d[i] * d[i + 1] ) ) ); /* mid */ #ifdef FIX_I120_INV_SQRT } #endif } else { #ifdef FIX_I120_INV_SQRT if ( element_mode != EVS_MONO ) { w[i] = (float) ( 63.0f / ( freq_div * inv_sqrt( d[i] * d[i + 1] ) ) ); /* rel2 */ } else { #endif w[i] = (float) ( 63.0f / ( freq_div / sqrt( d[i] * d[i + 1] ) ) ); /* rel2 */ #ifdef FIX_I120_INV_SQRT } #endif } } Loading
lib_dec/core_switching_dec.c +2 −11 Original line number Diff line number Diff line Loading @@ -1055,11 +1055,7 @@ void bw_switching_pre_proc( #endif { /* Calculate tilt of the ACELP core synthesis - needed in SWB BWE decoding */ calc_tilt_bwe( old_syn_12k8_16k, &st->tilt_wb, st->L_frame #ifdef FIX_I120_INV_SQRT ,st->element_mode #endif ); calc_tilt_bwe( old_syn_12k8_16k, &st->tilt_wb, st->L_frame ); } return; Loading @@ -1071,12 +1067,7 @@ void bw_switching_pre_proc( * Calculate tilt of the ACELP core synthesis *----------------------------------------------------------------------*/ calc_tilt_bwe( old_syn_12k8_16k, &st->tilt_wb, st->L_frame #ifdef FIX_I120_INV_SQRT , st->element_mode #endif ); calc_tilt_bwe( old_syn_12k8_16k, &st->tilt_wb, st->L_frame ); /*-------------------------------------------------------------------------------* * Calculate frequency energy of 0~3.2kHz and 3.2~6.4kHz the ACELP core synthesis Loading
lib_dec/dlpc_avq.c +3 −21 Original line number Diff line number Diff line Loading @@ -51,10 +51,6 @@ int16_t dlpc_avq( float *LSF_Q, /* o : Quantized LSF vectors */ const int16_t numlpc, /* i : Number of sets of lpc */ const int32_t sr_core /* i : internal sampling rate */ #ifdef FIX_I120_INV_SQRT , const int16_t element_mode /* i: IVAS element mode */ #endif ) { int16_t i, nbi, last; Loading @@ -80,11 +76,7 @@ int16_t dlpc_avq( vlpc_1st_dec( p_index[0], &LSF_Q[last], sr_core ); p_index++; vlpc_2st_dec( &LSF_Q[last], &p_index[0], 0, sr_core #ifdef FIX_I120_INV_SQRT ,element_mode #endif ); vlpc_2st_dec( &LSF_Q[last], &p_index[0], 0, sr_core ); nbi = 2 + p_index[0] + p_index[1]; p_index += nbi; Loading @@ -104,12 +96,7 @@ int16_t dlpc_avq( } vlpc_1st_dec( p_index[0], &LSF_Q[0], sr_core ); p_index++; vlpc_2st_dec( &LSF_Q[0], &p_index[0], 0, sr_core #ifdef FIX_I120_INV_SQRT , element_mode #endif ); vlpc_2st_dec( &LSF_Q[0], &p_index[0], 0, sr_core ); } else if ( q_type == 1 ) { Loading @@ -118,12 +105,7 @@ int16_t dlpc_avq( LSF_Q[i] = LSF_Q[M + i]; } vlpc_2st_dec( &LSF_Q[0], &p_index[0], 3, sr_core #ifdef FIX_I120_INV_SQRT , element_mode #endif ); vlpc_2st_dec( &LSF_Q[0], &p_index[0], 3, sr_core ); } nbi = 2 + p_index[0] + p_index[1]; Loading