Commit dc0ea762 authored by multrus's avatar multrus
Browse files

FhG: BASOP issue 2560: align reset of hStereoDft->res_gains_ind_fx[][] between BASOP and float

parent 8ff889f8
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@
#define FIX_BASOP_2555_FRAMELEN_CALC                    /* FhG: BASOP issue 2555: Simplify (sub-)framelength calculation in ivas_mdct_core_tns_ns_fx() */
#define FIX_BASOP_2095_REMOVE_TABLES_PT01               /* FhG: BASOP issue 2095: remove unused tables, part 01 */
#define FIX_2346_DUPLICATED_IGF_FUNCTIONS_2             /* FhG: part 2 of basop issue 2346: Review potentially duplicated IGF functions */
#define FIX_BASOP_2560_STEREO_DFT_DEC_RESET             /* FhG: BASOP issue 2560: align reset of hStereoDft->res_gains_ind_fx[][] between BASOP and float */

/* #################### End BE switches ################################## */

+8 −0
Original line number Diff line number Diff line
@@ -115,13 +115,21 @@ void stereo_dft_dec_reset_fx(

    set16_fx( hStereoDft->res_pred_index_previous, 0, STEREO_DFT_BAND_MAX );

#ifdef FIX_BASOP_2560_STEREO_DFT_DEC_RESET
    FOR( i = 0; i < STEREO_DFT_BAND_MAX; i++ )
#else
    FOR( i = 0; i < STEREO_DFT_BAND_MAX * 2; i++ )
#endif
    {
        hStereoDft->res_gains_ind_fx[0][i] = 1006632960; /* 15.0f in Q26 */
        move32();
    }

#ifdef FIX_BASOP_2560_STEREO_DFT_DEC_RESET
    set32_fx( hStereoDft->res_gains_ind_fx[1], 0, STEREO_DFT_BAND_MAX );
#else
    set32_fx( hStereoDft->res_gains_ind_fx[1], 0, STEREO_DFT_BAND_MAX * 2 );
#endif

    /*residual coding*/
    set16_fx( hStereoDft->res_cod_mode, hStereoDft->hConfig->res_cod_mode, STEREO_DFT_DEC_DFT_NB );