Loading lib_enc/amr_wb_enc_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -305,7 +305,7 @@ void amr_wb_enc_fx( *----------------------------------------------------------------*/ st->vad_flag = wb_vad_fx( st, fr_bands, &noisy_speech_HO, &clean_speech_HO, &NB_speech_HO, &snr_sum_he, &localVAD_HE_SAD, &( st->flag_noisy_speech_snr_fx ), Q_new, hVAD, hNoiseEst, st->lp_speech_fx, st->lp_noise_fx ); &snr_sum_he, &localVAD_HE_SAD, &( st->flag_noisy_speech_snr ), Q_new, hVAD, hNoiseEst, st->lp_speech_fx, st->lp_noise_fx ); if ( st->vad_flag == 0 ) { Loading lib_enc/analy_sp_fx.c +5 −2 Original line number Diff line number Diff line Loading @@ -308,6 +308,7 @@ static void find_enr_dft_fx( ngmult = W_shl( ngmult, ngmult_exp ); // Q31 + Q30 - gaurded_bits + ngmult_exp BinE_fx[bin_cnt] = Mpy_32_32( W_extract_h( ngmult ), BinE_fx[bin_cnt] ); //(Q31 + Q31 - gaurded_bits + ngmult_exp) - Q32 + (2 * Q_inp_dmx + te_exp - 32) - 31 move32(); // To Be Checked BinE_fx[bin_cnt] = L_shl_sat( BinE_fx[bin_cnt], sub( *Qout, sub( sub( add( add( shl( Q_inp_dmx, 1 ), te_exp ), ngmult_exp ), 34 ), guarded_bits ) ) ); move32(); // To Be Checked Loading Loading @@ -371,9 +372,11 @@ static void find_enr_dft_fx( ngmult = W_shl( ngmult, ngmult_exp ); // Q31 + Q31 - gaurded_bits + ngmult_exp BinE_fx[bin_cnt] = Mpy_32_32( W_extract_h( ngmult ), BinE_fx[bin_cnt] ); //(Q31 + Q31 - gaurded_bits + ngmult_exp) - Q32 + (2 * Q_inp_dmx + te_exp - 32) - 31 move32(); BinE_fx[bin_cnt] = L_shl( BinE_fx[bin_cnt], sub( *Qout, sub( sub( add( add( shl( Q_inp_dmx, 1 ), te_exp ), ngmult_exp ), 34 ), guarded_bits ) ) ); // To Be Checked BinE_fx[bin_cnt] = L_shl_sat( BinE_fx[bin_cnt], sub( *Qout, sub( sub( add( add( shl( Q_inp_dmx, 1 ), te_exp ), ngmult_exp ), 34 ), guarded_bits ) ) ); move32(); band_fx[i] = L_add( BinE_fx[bin_cnt], band_fx[i] ); // To Be Checked band_fx[i] = L_add_sat( BinE_fx[bin_cnt], band_fx[i] ); move32(); ptR_fx += 2; ptI_fx += 2; Loading lib_enc/cod_ace_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -316,7 +316,7 @@ Word16 coder_acelp_fx( /* o : SEGSNR for CL decision * *----------------------------------------------------------*/ encode_acelp_gains_fx( code, acelp_cfg->gains_mode[j_subfr], Es_pred, clip_gain, &g_corr, &gain_pit, &gain_code, &prm, &past_gcode, &gain_inov, L_SUBFR, code2, &gain_code2, st->flag_noisy_speech_snr_fx ); &past_gcode, &gain_inov, L_SUBFR, code2, &gain_code2, st->flag_noisy_speech_snr ); gp_clip_test_gain_pit_fx( st->element_mode, st->core_brate, gain_pit, st->clip_var_fx ); Loading lib_enc/core_enc_ol_fx.c +2 −2 Original line number Diff line number Diff line Loading @@ -1276,7 +1276,7 @@ void core_acelp_tcx20_switching_fx( move16(); } IF( st->flag_noisy_speech_snr_fx ) IF( st->flag_noisy_speech_snr ) { test(); IF( st->vad_flag || st->Opt_DTX_ON ) Loading @@ -1295,7 +1295,7 @@ void core_acelp_tcx20_switching_fx( test(); test(); test(); if ( EQ_32( st->sr_core, INT_FS_12k8 ) && ( LT_16( non_staX, 512 /*2.0f Q8*/ ) || ( st->flag_noisy_speech_snr_fx == 0 && EQ_16( st->vad_flag, 1 ) && ( offset_tcx == L_add( 0xFFD57AB5, 0 ) ) && GE_16( st->acelpFramesCount, 6 ) ) ) && if ( EQ_32( st->sr_core, INT_FS_12k8 ) && ( LT_16( non_staX, 512 /*2.0f Q8*/ ) || ( st->flag_noisy_speech_snr == 0 && EQ_16( st->vad_flag, 1 ) && ( offset_tcx == L_add( 0xFFD57AB5, 0 ) ) && GE_16( st->acelpFramesCount, 6 ) ) ) && ( st->last_core == ACELP_CORE || st->last_core == TCX_20_CORE ) ) { st->core = st->last_core; Loading lib_enc/enc_gen_voic_rf_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -406,7 +406,7 @@ void coder_acelp_rf_fx( encode_acelp_gains_fx( code, acelp_cfg->gains_mode[j_subfr], Es_pred_rf, clip_gain, &g_corr, &gain_pit, &gain_code, &prm_rf, &past_gcode, &gain_inov, L_SUBFR, code2, &gain_code2, st->flag_noisy_speech_snr_fx ); &gain_inov, L_SUBFR, code2, &gain_code2, st->flag_noisy_speech_snr ); } Loading Loading
lib_enc/amr_wb_enc_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -305,7 +305,7 @@ void amr_wb_enc_fx( *----------------------------------------------------------------*/ st->vad_flag = wb_vad_fx( st, fr_bands, &noisy_speech_HO, &clean_speech_HO, &NB_speech_HO, &snr_sum_he, &localVAD_HE_SAD, &( st->flag_noisy_speech_snr_fx ), Q_new, hVAD, hNoiseEst, st->lp_speech_fx, st->lp_noise_fx ); &snr_sum_he, &localVAD_HE_SAD, &( st->flag_noisy_speech_snr ), Q_new, hVAD, hNoiseEst, st->lp_speech_fx, st->lp_noise_fx ); if ( st->vad_flag == 0 ) { Loading
lib_enc/analy_sp_fx.c +5 −2 Original line number Diff line number Diff line Loading @@ -308,6 +308,7 @@ static void find_enr_dft_fx( ngmult = W_shl( ngmult, ngmult_exp ); // Q31 + Q30 - gaurded_bits + ngmult_exp BinE_fx[bin_cnt] = Mpy_32_32( W_extract_h( ngmult ), BinE_fx[bin_cnt] ); //(Q31 + Q31 - gaurded_bits + ngmult_exp) - Q32 + (2 * Q_inp_dmx + te_exp - 32) - 31 move32(); // To Be Checked BinE_fx[bin_cnt] = L_shl_sat( BinE_fx[bin_cnt], sub( *Qout, sub( sub( add( add( shl( Q_inp_dmx, 1 ), te_exp ), ngmult_exp ), 34 ), guarded_bits ) ) ); move32(); // To Be Checked Loading Loading @@ -371,9 +372,11 @@ static void find_enr_dft_fx( ngmult = W_shl( ngmult, ngmult_exp ); // Q31 + Q31 - gaurded_bits + ngmult_exp BinE_fx[bin_cnt] = Mpy_32_32( W_extract_h( ngmult ), BinE_fx[bin_cnt] ); //(Q31 + Q31 - gaurded_bits + ngmult_exp) - Q32 + (2 * Q_inp_dmx + te_exp - 32) - 31 move32(); BinE_fx[bin_cnt] = L_shl( BinE_fx[bin_cnt], sub( *Qout, sub( sub( add( add( shl( Q_inp_dmx, 1 ), te_exp ), ngmult_exp ), 34 ), guarded_bits ) ) ); // To Be Checked BinE_fx[bin_cnt] = L_shl_sat( BinE_fx[bin_cnt], sub( *Qout, sub( sub( add( add( shl( Q_inp_dmx, 1 ), te_exp ), ngmult_exp ), 34 ), guarded_bits ) ) ); move32(); band_fx[i] = L_add( BinE_fx[bin_cnt], band_fx[i] ); // To Be Checked band_fx[i] = L_add_sat( BinE_fx[bin_cnt], band_fx[i] ); move32(); ptR_fx += 2; ptI_fx += 2; Loading
lib_enc/cod_ace_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -316,7 +316,7 @@ Word16 coder_acelp_fx( /* o : SEGSNR for CL decision * *----------------------------------------------------------*/ encode_acelp_gains_fx( code, acelp_cfg->gains_mode[j_subfr], Es_pred, clip_gain, &g_corr, &gain_pit, &gain_code, &prm, &past_gcode, &gain_inov, L_SUBFR, code2, &gain_code2, st->flag_noisy_speech_snr_fx ); &past_gcode, &gain_inov, L_SUBFR, code2, &gain_code2, st->flag_noisy_speech_snr ); gp_clip_test_gain_pit_fx( st->element_mode, st->core_brate, gain_pit, st->clip_var_fx ); Loading
lib_enc/core_enc_ol_fx.c +2 −2 Original line number Diff line number Diff line Loading @@ -1276,7 +1276,7 @@ void core_acelp_tcx20_switching_fx( move16(); } IF( st->flag_noisy_speech_snr_fx ) IF( st->flag_noisy_speech_snr ) { test(); IF( st->vad_flag || st->Opt_DTX_ON ) Loading @@ -1295,7 +1295,7 @@ void core_acelp_tcx20_switching_fx( test(); test(); test(); if ( EQ_32( st->sr_core, INT_FS_12k8 ) && ( LT_16( non_staX, 512 /*2.0f Q8*/ ) || ( st->flag_noisy_speech_snr_fx == 0 && EQ_16( st->vad_flag, 1 ) && ( offset_tcx == L_add( 0xFFD57AB5, 0 ) ) && GE_16( st->acelpFramesCount, 6 ) ) ) && if ( EQ_32( st->sr_core, INT_FS_12k8 ) && ( LT_16( non_staX, 512 /*2.0f Q8*/ ) || ( st->flag_noisy_speech_snr == 0 && EQ_16( st->vad_flag, 1 ) && ( offset_tcx == L_add( 0xFFD57AB5, 0 ) ) && GE_16( st->acelpFramesCount, 6 ) ) ) && ( st->last_core == ACELP_CORE || st->last_core == TCX_20_CORE ) ) { st->core = st->last_core; Loading
lib_enc/enc_gen_voic_rf_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -406,7 +406,7 @@ void coder_acelp_rf_fx( encode_acelp_gains_fx( code, acelp_cfg->gains_mode[j_subfr], Es_pred_rf, clip_gain, &g_corr, &gain_pit, &gain_code, &prm_rf, &past_gcode, &gain_inov, L_SUBFR, code2, &gain_code2, st->flag_noisy_speech_snr_fx ); &gain_inov, L_SUBFR, code2, &gain_code2, st->flag_noisy_speech_snr ); } Loading