Commit 689a5b85 authored by Jan Kiene's avatar Jan Kiene
Browse files

Merge branch 'main' into 111-align-sid-frame-size

parents 146bdc0a 301ec8e9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1012,7 +1012,11 @@ enum

/* IVAS PCA */
#define IVAS_PCA_NB_SUBR                        20 /* 80 -> 0.25 ms, 40 -> 0.5 ms... */
#ifdef SPAR_SCALING_HARMONIZATION
#define IVAS_PCA_COV_THRES                      3e-5f
#else
#define IVAS_PCA_COV_THRES                      1e-9f
#endif
#define IVAS_PCA_QUAT_EPS                       1e-7f
#define IVAS_PCA_QBITS                          19
#define IVAS_PCA_N1                             91
+0 −12
Original line number Diff line number Diff line
@@ -1000,22 +1000,10 @@ void ivas_spar_dec_upmixer(

    if ( hSpar->hPCA != NULL )
    {
#ifdef SPAR_SCALING_HARMONIZATION
        for ( out_ch = 0; out_ch < num_in_ingest; out_ch++ )
        {
            v_multc( output[out_ch], MDFT_NORM_SCALING, output[out_ch], output_frame );
        }
#endif
        ivas_pca_dec( hSpar->hPCA, output_frame, num_in_ingest, hDecoderConfig->ivas_total_brate, hDecoderConfig->last_ivas_total_brate, st_ivas->bfi, output );
#ifdef DEBUG_SBA_AUDIO_DUMP
        /* Dump audio signal after ivas_pca_dec */
        ivas_spar_dump_signal_wav( output_frame, NULL, output, num_in_ingest, spar_foa_dec_wav[2], "ivas_pca_dec()" );
#endif
#ifdef SPAR_SCALING_HARMONIZATION
        for ( out_ch = 0; out_ch < num_in_ingest; out_ch++ )
        {
            v_multc( output[out_ch], PCM16_TO_FLT_FAC, output[out_ch], output_frame );
        }
#endif
    }

+0 −12
Original line number Diff line number Diff line
@@ -789,19 +789,7 @@ static ivas_error ivas_spar_enc_process(

    if ( hSpar->hPCA != NULL )
    {
#ifdef SPAR_SCALING_HARMONIZATION
        for ( int16_t out_ch = 0; out_ch < FOA_CHANNELS; out_ch++ )
        {
            v_multc( p_pcm_tmp[out_ch], MDFT_NORM_SCALING, p_pcm_tmp[out_ch], input_frame );
        }
#endif
        ivas_pca_enc( hEncoderConfig, hSpar->hPCA, hMetaData, p_pcm_tmp, input_frame, FOA_CHANNELS );
#ifdef SPAR_SCALING_HARMONIZATION
        for ( int16_t out_ch = 0; out_ch < FOA_CHANNELS; out_ch++ )
        {
            v_multc( p_pcm_tmp[out_ch], PCM16_TO_FLT_FAC, p_pcm_tmp[out_ch], input_frame );
        }
#endif
    }
    else
    {