Commit 217e6aa8 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch 'fix_debug_force_mdct_stereo_mode_float' into 'ivas-float-update'

fix that enables forcing MDCT stereo mode

See merge request !940
parents de0a9fca 10a1ab85
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1052,6 +1052,20 @@ ivas_error create_cpe_enc(

#ifdef DEBUGGING
        hCPE->hStereoMdct->mdct_stereo_mode_cmdl = st_ivas->hEncoderConfig->mdct_stereo_mode_cmdl;
#ifdef DEBUG_FORCE_MDCT_STEREO_MODE
        /*set all other members to defined states */
        hCPE->hStereoMdct->fDualMono = 0;
        hCPE->hStereoMdct->fMSstereo = 0;

        if ( hCPE->hStereoMdct->mdct_stereo_mode_cmdl == SMDCT_FORCE_LR )
        {
            hCPE->hStereoMdct->fDualMono = 1;
        }
        else if ( hCPE->hStereoMdct->mdct_stereo_mode_cmdl == SMDCT_FORCE_MS )
        {
            hCPE->hStereoMdct->fMSstereo = 1;
        }
#endif
#endif
        initMdctStereoEncData( hCPE->hStereoMdct, ivas_format, hCPE->element_mode, hCPE->element_brate, max_bwidth, 0, NULL, 1 );
        hCPE->hStereoMdct->isSBAStereoMode = ( ( ivas_format == SBA_FORMAT || ivas_format == SBA_ISM_FORMAT ) && ( st_ivas->nchan_transport == 2 ) );