Commit a1ae4dbd authored by reutelhuber's avatar reutelhuber
Browse files

only activate smoothing for low bitrates

parent 676519ac
Loading
Loading
Loading
Loading
+19 −10
Original line number Diff line number Diff line
@@ -1180,10 +1180,13 @@ void ivas_spar_dec_upmixer(
        }

#ifdef LBR_ADAP_SMOOTHING
        if ( hDecoderConfig->ivas_total_brate < IVAS_24k4 )
        {
            for ( in_ch = 0; in_ch < numch_in; in_ch++ )
            {
                ivas_spar_calc_smooth_facs( cldfb_in_ts_re[in_ch], cldfb_in_ts_im[in_ch], num_spar_bands, &hSpar->hFbMixer->pFb->fb_bin_to_band, hSpar->hMdDec->smooth_fac[in_ch], hSpar->hMdDec->smooth_buf[in_ch] );
            }
        }
#endif

        for ( ts = 0; ts < MAX_PARAM_SPATIAL_SUBFRAMES; ts++ )
@@ -1192,6 +1195,8 @@ void ivas_spar_dec_upmixer(
            ivas_spar_get_parameters( hSpar, hDecoderConfig, ts + i_sf * MAX_PARAM_SPATIAL_SUBFRAMES, numch_out, numch_in, num_spar_bands, mixer_mat );

#ifdef LBR_ADAP_SMOOTHING
            if ( hDecoderConfig->ivas_total_brate < IVAS_24k4 )
            {
                for ( spar_band = 0; spar_band < num_spar_bands; spar_band++ )
                {
                    for ( out_ch = 0; out_ch < numch_out; out_ch++ )
@@ -1202,6 +1207,7 @@ void ivas_spar_dec_upmixer(
                        }
                    }
                }
            }
#endif

            for ( cldfb_band = 0; cldfb_band < num_cldfb_bands; cldfb_band++ )
@@ -1252,6 +1258,8 @@ void ivas_spar_dec_upmixer(
        }

#ifdef LBR_ADAP_SMOOTHING
        if ( hDecoderConfig->ivas_total_brate < IVAS_24k4 )
        {
            for ( spar_band = 0; spar_band < num_spar_bands; spar_band++ )
            {
                for ( out_ch = 0; out_ch < numch_out; out_ch++ )
@@ -1262,6 +1270,7 @@ void ivas_spar_dec_upmixer(
                    }
                }
            }
        }
#endif

        if ( hDecoderConfig->output_config != AUDIO_CONFIG_FOA && hDecoderConfig->output_config != AUDIO_CONFIG_STEREO && hDecoderConfig->output_config != AUDIO_CONFIG_MONO )