Commit 420c149b authored by vaillancour's avatar vaillancour
Browse files

Fix for -dtx -max_band FB 128000 48 stv48c

parent 15be34c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ static void IGF_CalculateEnvelope(const IGF_ENC_INSTANCE_HANDLE hInstanc

#ifdef BASOP_NOGLOB
                BASOP_Util_Divide_MantExp(round_fx_o(sfbEnergyTileR[sfb], &Overflow),sfbEnergyTileR_exp[sfb], width, 15, &gain, &gain_exp);
                BASOP_Util_Divide_MantExp(round_fx(sfbEnergyC[sfb]), sfbEnergyC_exp[sfb], round_fx_o(sfbEnergyTileC[sfb], &Overflow), sfbEnergyTileC_exp[sfb], &tmp, &tmp_exp);
                BASOP_Util_Divide_MantExp(round_fx_o(sfbEnergyC[sfb], &Overflow), sfbEnergyC_exp[sfb], round_fx_o(sfbEnergyTileC[sfb], &Overflow), sfbEnergyTileC_exp[sfb], &tmp, &tmp_exp);
#else
                BASOP_Util_Divide_MantExp(round_fx(sfbEnergyTileR[sfb]),
                    sfbEnergyTileR_exp[sfb],
+4 −0
Original line number Diff line number Diff line
@@ -308,7 +308,11 @@ static void tcx_ltp_find_gain( Word16 *speech, Word16 *pred_speech, Word16 L_fra
    ener = L_shl(ener, tmp);
    s2 = sub(s2, tmp);

#ifdef BASOP_NOGLOB
    g = divide1616(round_fx_o(corr, &Overflow), round_fx_o(ener, &Overflow));
#else
    g = divide1616(round_fx(corr), round_fx(ener));
#endif
    BASOP_SATURATE_WARNING_OFF
#ifdef BASOP_NOGLOB
    g = shl_o(g, sub(s1, s2), &Overflow);