Loading lib_com/swb_tbe_com_fx.c +5 −2 Original line number Diff line number Diff line Loading @@ -7314,9 +7314,12 @@ void prep_tbe_exc_fx( { Word16 shift = 4; #ifdef FIX_2010_PREP_TBE_EXC IF( element_mode != EVS_MONO ) /* mul 2025-09-14 TODO: check, which impact this has on EVS mono - for now, keep EVS modes BE */ IF( NE_16( element_mode, EVS_MONO ) ) { /* shift of 4 assumes code_preQ_fx[] in Q9 - this is however not always given */ /* shift of 4 assumes code_preQ_fx[] in Q10 - this is however not always given */ shift = add( 2 + 1 - 1, Q_code_preQ ); /* gain_preQ_fx in Q2, code_preQ_fx[] in Q_code_preQ, 1 additional left-shift by L_mult() - factor of 2 (from "2 * gain_preQ * code_preQ[i]") */ shift = sub( 16, shift ); } Loading lib_dec/ivas_td_low_rate_dec_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -327,7 +327,7 @@ void decod_gen_2sbfr_fx( *-----------------------------------------------------------------*/ #ifdef FIX_2010_PREP_TBE_EXC prep_tbe_exc_fx( L_frame, 2 * L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR /*i_subfr / L_SUBFR*/], bwe_exc, 0, NULL, Q9, st->Q_exc, T0, T0_frac, GENERIC, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); prep_tbe_exc_fx( L_frame, 2 * L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR /*i_subfr / L_SUBFR*/], bwe_exc, 0, NULL, Q10, st->Q_exc, T0, T0_frac, GENERIC, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); #else prep_tbe_exc_fx( L_frame, 2 * L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR /*i_subfr / L_SUBFR*/], bwe_exc, 0, NULL, st->Q_exc, T0, T0_frac, GENERIC, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); #endif Loading lib_enc/ivas_td_low_rate_enc_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -376,7 +376,7 @@ void encod_gen_2sbfr( *-----------------------------------------------------------------*/ #ifdef FIX_2010_PREP_TBE_EXC prep_tbe_exc_fx( L_frame, L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR], bwe_exc, 0, NULL, Q9, Q_new, T0, T0_frac, coder_type, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); prep_tbe_exc_fx( L_frame, L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR], bwe_exc, 0, NULL, Q10, Q_new, T0, T0_frac, coder_type, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); #else prep_tbe_exc_fx( L_frame, L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR], bwe_exc, 0, NULL, Q_new, T0, T0_frac, coder_type, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); #endif Loading Loading
lib_com/swb_tbe_com_fx.c +5 −2 Original line number Diff line number Diff line Loading @@ -7314,9 +7314,12 @@ void prep_tbe_exc_fx( { Word16 shift = 4; #ifdef FIX_2010_PREP_TBE_EXC IF( element_mode != EVS_MONO ) /* mul 2025-09-14 TODO: check, which impact this has on EVS mono - for now, keep EVS modes BE */ IF( NE_16( element_mode, EVS_MONO ) ) { /* shift of 4 assumes code_preQ_fx[] in Q9 - this is however not always given */ /* shift of 4 assumes code_preQ_fx[] in Q10 - this is however not always given */ shift = add( 2 + 1 - 1, Q_code_preQ ); /* gain_preQ_fx in Q2, code_preQ_fx[] in Q_code_preQ, 1 additional left-shift by L_mult() - factor of 2 (from "2 * gain_preQ * code_preQ[i]") */ shift = sub( 16, shift ); } Loading
lib_dec/ivas_td_low_rate_dec_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -327,7 +327,7 @@ void decod_gen_2sbfr_fx( *-----------------------------------------------------------------*/ #ifdef FIX_2010_PREP_TBE_EXC prep_tbe_exc_fx( L_frame, 2 * L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR /*i_subfr / L_SUBFR*/], bwe_exc, 0, NULL, Q9, st->Q_exc, T0, T0_frac, GENERIC, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); prep_tbe_exc_fx( L_frame, 2 * L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR /*i_subfr / L_SUBFR*/], bwe_exc, 0, NULL, Q10, st->Q_exc, T0, T0_frac, GENERIC, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); #else prep_tbe_exc_fx( L_frame, 2 * L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR /*i_subfr / L_SUBFR*/], bwe_exc, 0, NULL, st->Q_exc, T0, T0_frac, GENERIC, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); #endif Loading
lib_enc/ivas_td_low_rate_enc_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -376,7 +376,7 @@ void encod_gen_2sbfr( *-----------------------------------------------------------------*/ #ifdef FIX_2010_PREP_TBE_EXC prep_tbe_exc_fx( L_frame, L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR], bwe_exc, 0, NULL, Q9, Q_new, T0, T0_frac, coder_type, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); prep_tbe_exc_fx( L_frame, L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR], bwe_exc, 0, NULL, Q10, Q_new, T0, T0_frac, coder_type, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); #else prep_tbe_exc_fx( L_frame, L_SUBFR, i_subfr, gain_pit, gain_code, code, voice_fac, &voice_factors[i_subfr / L_SUBFR], bwe_exc, 0, NULL, Q_new, T0, T0_frac, coder_type, st->core_brate, st->element_mode, st->idchan, st->hBWE_TD != NULL, st->tdm_LRTD_flag ); #endif Loading