Commit fbeb5ef8 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

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

fix debugging force mdct stereo mode in ivas-float-update

See merge request !865
parents 1bde096f 939e6162
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -355,6 +355,21 @@ ivas_error ivas_cpe_enc(
        {
#ifdef DEBUGGING
            hCPE->hStereoMdct->mdct_stereo_mode_cmdl = 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, 0 );
            hCPE->hStereoMdct->isSBAStereoMode = ( ( ivas_format == SBA_FORMAT || ivas_format == SBA_ISM_FORMAT ) && ( st_ivas->nchan_transport == 2 ) );
+0 −8
Original line number Diff line number Diff line
@@ -189,15 +189,7 @@ void stereo_mdct_core_enc(

    if ( hCPE->hCoreCoder[0]->igf )
    {
#ifdef DEBUGGING
        int16_t orig_mdct_stereo_mode_cmdl = hCPE->hStereoMdct->mdct_stereo_mode_cmdl;
        hCPE->hStereoMdct->mdct_stereo_mode_cmdl = SMDCT_MS_DECISION;
#endif
        initMdctStereoEncData( hCPE->hStereoMdct, STEREO_FORMAT, IVAS_CPE_MDCT, hCPE->element_brate, hCPE->hCoreCoder[0]->bwidth, hCPE->hCoreCoder[0]->igf, hCPE->hCoreCoder[0]->hIGFEnc->igfData.igfInfo.grid, 0 );
#ifdef DEBUGGING
        hCPE->hStereoMdct->mdct_stereo_mode_cmdl = orig_mdct_stereo_mode_cmdl;
#endif

        stereo_mdct_init_igf_start_band( &( hCPE->hStereoMdct->stbParamsTCX20 ), 1.0f, hCPE->hCoreCoder[0]->bwidth, hCPE->element_brate );
        stereo_mdct_init_igf_start_band( &( hCPE->hStereoMdct->stbParamsTCX10 ), 0.5f, hCPE->hCoreCoder[0]->bwidth, hCPE->element_brate );
        stereo_mdct_init_igf_start_band( &( hCPE->hStereoMdct->stbParamsTCX20afterACELP ), 1.25f, hCPE->hCoreCoder[0]->bwidth, hCPE->element_brate );
+0 −15
Original line number Diff line number Diff line
@@ -1145,21 +1145,6 @@ void initMdctStereoEncData(

    set_s( hStereoMdct->IGFStereoMode, -1, 2 );

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

    if ( hStereoMdct->mdct_stereo_mode_cmdl == SMDCT_FORCE_LR )
    {
        hStereoMdct->fDualMono = 1;
    }
    else if ( hStereoMdct->mdct_stereo_mode_cmdl == SMDCT_FORCE_MS )
    {
        hStereoMdct->fMSstereo = 1;
    }
#endif

    hStereoMdct->split_ratio = SMDCT_EQUAL_RATIO_RANGE;
    set_s( hStereoMdct->global_ild, SMDCT_ILD_RANGE >> 1, 2 );