Loading lib_dec/er_dec_tcx_fx.c +31 −28 Original line number Diff line number Diff line Loading @@ -1851,13 +1851,15 @@ void con_tcx_ivas_fx( new_Q = s_max( new_Q, -1 ); new_Q = s_min( new_Q, scf ); #else IF(!leg_flag || NE_32(st->element_mode, EVS_MONO)) { IF( !leg_flag || NE_32( st->element_mode, EVS_MONO ) ) { scf = norm_s( tmp_deemph ); new_Q = sub( Q_exc, 4 ); // deemph_fx filter gain can be up to 10 (~2^3.32), so 4 bits of headroom are needed to avoid overflow new_Q = s_max( new_Q, -1 ); new_Q = s_min( new_Q, scf ); } ELSE{ ELSE { new_Q = sub( Q_exc, 3 ); new_Q = s_max( new_Q, -1 ); Loading Loading @@ -1888,7 +1890,8 @@ void con_tcx_ivas_fx( move16(); #else IF(!leg_flag) { IF( !leg_flag ) { if ( GT_16( sub( Q_syn, st->Q_syn_factor ), scf ) ) { Loading @@ -1898,9 +1901,9 @@ void con_tcx_ivas_fx( st->Q_syn = Q_syn; move16(); } ELSE { ELSE { IF( NE_32( st->element_mode, EVS_MONO ) ) // to keep evs bit-exactness { if ( GT_16( sub( Q_syn, st->Q_syn_factor ), scf ) ) Loading Loading
lib_dec/er_dec_tcx_fx.c +31 −28 Original line number Diff line number Diff line Loading @@ -1851,13 +1851,15 @@ void con_tcx_ivas_fx( new_Q = s_max( new_Q, -1 ); new_Q = s_min( new_Q, scf ); #else IF(!leg_flag || NE_32(st->element_mode, EVS_MONO)) { IF( !leg_flag || NE_32( st->element_mode, EVS_MONO ) ) { scf = norm_s( tmp_deemph ); new_Q = sub( Q_exc, 4 ); // deemph_fx filter gain can be up to 10 (~2^3.32), so 4 bits of headroom are needed to avoid overflow new_Q = s_max( new_Q, -1 ); new_Q = s_min( new_Q, scf ); } ELSE{ ELSE { new_Q = sub( Q_exc, 3 ); new_Q = s_max( new_Q, -1 ); Loading Loading @@ -1888,7 +1890,8 @@ void con_tcx_ivas_fx( move16(); #else IF(!leg_flag) { IF( !leg_flag ) { if ( GT_16( sub( Q_syn, st->Q_syn_factor ), scf ) ) { Loading @@ -1898,9 +1901,9 @@ void con_tcx_ivas_fx( st->Q_syn = Q_syn; move16(); } ELSE { ELSE { IF( NE_32( st->element_mode, EVS_MONO ) ) // to keep evs bit-exactness { if ( GT_16( sub( Q_syn, st->Q_syn_factor ), scf ) ) Loading