Commit de9f35a8 authored by Shikha Shetgeri's avatar Shikha Shetgeri
Browse files

'fix_331 enabled for all the bitrates and sba_modes

parent c2007202
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -54,13 +54,15 @@ static void ivas_set_up_cov_smoothing(
    const float max_update_rate,
    const int16_t min_pool_size
#ifdef COV_SMOOTH_TUNING
#ifndef FIX_331_ALL_BRS
    ,
    const int16_t nchan_inp /* i  : number of input channels       */
#endif
#endif
)
{
    int16_t j, k;

#ifndef FIX_331_ALL_BRS
#ifdef COV_SMOOTH_TUNING
    if ( nchan_inp <= FOA_CHANNELS )
    {
@@ -87,6 +89,8 @@ static void ivas_set_up_cov_smoothing(
    }
    else
    {
#endif
#endif
        for ( j = 0; j < pFb->filterbank_num_bands; j++ )
        {
            float update_factor;
@@ -106,6 +110,7 @@ static void ivas_set_up_cov_smoothing(
                hCovState->pSmoothing_factor[j] = max_update_rate;
            }
        }
#ifndef FIX_331_ALL_BRS
    }
#endif
    hCovState->prior_bank_idx = -1;
@@ -153,9 +158,11 @@ ivas_error ivas_spar_covar_smooth_enc_open(
    }

    ivas_set_up_cov_smoothing( hCovState, pFb, cov_smooth_cfg->max_update_rate, cov_smooth_cfg->min_pool_size
#ifndef FIX_331_ALL_BRS
#ifdef COV_SMOOTH_TUNING
                               ,
                               nchan_inp
#endif
#endif
    );

+1 −0
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@
#define SBA_HPF_TUNING_ENC
/*#define SBA_HPF_TUNING_DEC*/
#define SMOOTH_WITH_TRANS_DET
#define FIX_331_ALL_BRS
#endif

#define BINAURALIZATION_DELAY_REPORT                    /* VA: Issue 255 - Changes the way the decoder delay is reported */
+2 −0
Original line number Diff line number Diff line
@@ -421,10 +421,12 @@ static ivas_error ivas_spar_enc_process(

#ifdef SMOOTH_WITH_TRANS_DET
    ivas_transient_det_process( hSpar->hTranDet, data_f[0], input_frame, transient_det );
#ifndef FIX_331_ALL_BRS
    if ( sba_order == 1 )
    {
        transient_det[1] = transient_det[0];
    }
#endif
#else
    transient_det = ivas_transient_det_process( hSpar->hTranDet, data_f[0], input_frame );
#endif