Commit 9c230e8e authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch 'bug_fix_for_energy_drop_level' into 'main'

Bug fix for energy level drop

See merge request !1514
parents a727c94a 4fcac19d
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -613,7 +613,7 @@ ivas_error front_vad_spar_fx(

        Word16 q_tmpN, q_tmpE;
        noise_est_down_ivas_fx( fr_bands_fx[0], q_fr_bands[0], hFrontVad->hNoiseEst->bckr_fx, &hFrontVad->hNoiseEst->q_bckr, tmpN_fx, &q_tmpN, tmpE_fx, &q_tmpE, st->min_band, st->max_band,
                                &hFrontVad->hNoiseEst->totalNoise_fx, Etot_fx[0], &hFrontVad->hNoiseEst->Etot_last_32fx, &hFrontVad->hNoiseEst->Etot_v_h2_fx );
                                &hFrontVad->hNoiseEst->totalNoise_fx, L_deposit_h( Etot_fx[0] ) /*q8->q24*/, &hFrontVad->hNoiseEst->Etot_last_32fx, &hFrontVad->hNoiseEst->Etot_v_h2_fx );

        corr_shift_fx = correlation_shift_fx( hFrontVad->hNoiseEst->totalNoise_fx ); /* Q15 */

+2 −2
Original line number Diff line number Diff line
@@ -748,8 +748,8 @@ void noise_est_down_ivas_fx(
    const Word16 min_band, /* i  : minimum critical band                                 */
    const Word16 max_band, /* i  : maximum critical band                                 */
    Word16 *totalNoise,    /* o  : noise estimate over all critical bands                */
    Word32 Etot,           /* i  : Energy of current frame                               */
    Word32 *Etot_last,     /* i/o: Energy of last frame            Q8                    */
    Word32 Etot,           /* i  : Energy of current frame                            Q24*/
    Word32 *Etot_last,     /* i/o: Energy of last frame            Q24                   */
    Word16 *Etot_v_h2      /* i/o: Energy variations of noise frames  Q8                 */
)

+2 −2
Original line number Diff line number Diff line
@@ -369,8 +369,8 @@ void noise_est_down_ivas_fx(
    const Word16 min_band, /* i  : minimum critical band                      */
    const Word16 max_band, /* i  : maximum critical band                      */
    Word16 *totalNoise,    /* o  : noise estimate over all critical bands     */
    Word32 Etot,           /* i  : Energy of current frame                    */
    Word32 *Etot_last,     /* i/o: Energy of last frame            Q8         */
    Word32 Etot,           /* i  : Energy of current frame                 Q24*/
    Word32 *Etot_last,     /* i/o: Energy of last frame            Q24        */
    Word16 *Etot_v_h2      /* i/o: Energy variations of noise frames  Q8      */
);