Commit e6a63766 authored by Vidhya V P's avatar Vidhya V P
Browse files

Fb_mixer optimisation changes : set 2

parent 11084088
Loading
Loading
Loading
Loading
+69 −62
Original line number Diff line number Diff line
@@ -1126,11 +1126,15 @@ static ivas_error ivas_filterbank_setup(
        pFb->fb_consts.pFilterbank_bins_start_offset = pAll_bins_start_offset;
        pFb->fb_bin_to_band.pFb_active_bins_per_band = pAll_bins_per_band_abs;
        pFb->fb_bin_to_band.pFb_start_bin_per_band = pAll_bins_start_offset_abs;

#ifdef SBA_BR_SWITCHING_CLEAN_UP
        if ( !spar_reconfig_flag )
        {
#endif
            /* Initialization for short stride Parameter calculation and SPAR CLDFB reconstruction */
            pFb->fb_bin_to_band.num_cldfb_bands = ( int16_t )( sampling_rate * INV_CLDFB_BANDWIDTH + 0.5f );
            /*pFb->fb_bin_to_band.cldfb_stride = ( int16_t )( ( sampling_rate / FRAMES_PER_SEC ) / CLDFB_NO_COL_MAX );*/ /* equals num_cldfb_bands*/
            pFb->fb_bin_to_band.short_stride = ( int16_t )( ( sampling_rate / FRAMES_PER_SEC ) / 4 );

            set_f( pFb->fb_bin_to_band.p_short_stride_bin_to_band, 0.0f, 2 * MDFT_FB_BANDS_240 );
            set_s( pFb->fb_bin_to_band.p_cldfb_map_to_spar_band, 0, CLDFB_NO_CHANNELS_MAX );
            set_s( pFb->fb_bin_to_band.p_spar_start_bands, 0, CLDFB_NO_CHANNELS_MAX );
@@ -1207,6 +1211,9 @@ static ivas_error ivas_filterbank_setup(

                ivas_calculate_abs_fr( pFb, sampling_rate, pCfg->active_w_mixing );
            }
#ifdef SBA_BR_SWITCHING_CLEAN_UP
        }
#endif
    }

    return error;