Commit 09b3105f authored by vaclav's avatar vaclav
Browse files

Merge branch '604-clean-up-DBG_STEREO_ICBWE2_TBE2K8' into 'main'

Remove obsolete debugging switches DBG_STEREO_ICBWE2_TBE2K8 and QC_DBG_DFT_NO_SHIFT_DEC

See merge request !1071
parents 7860d475 c3932e33
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -88,7 +88,6 @@
/*#define DEBUG_STEREO_DFT_NOSTEREO*/           /* DFT stereo: by-pass stereo processing at encoder and decoder side*/
/*#define DEBUG_STEREO_DFT_NOQRES*/
/*#define DEBUG_STEREO_DFT_OUTRESPRED*/         /* output residual prediction signal instead of L/R*/
/*#define DBG_STEREO_ICBWE2_TBE2K8*/            /* Enables TBE_2K8 for higher bitrates with ICBWE in operation for TD/DFT Stereo. Needs quality eval and currently only used for debugging purposes */

/*DirAC Debug switches*/
/*#define DEBUG_DISABLE_DIRAC_DELAY_COMP */     /* temporarily disable delay compensation on DirAC encoder */
+0 −8
Original line number Diff line number Diff line
@@ -271,11 +271,7 @@ void ivas_decision_matrix_dec(
                {
                    st->extl = SWB_TBE;
                    st->extl_brate = SWB_TBE_1k6;
#ifdef DBG_STEREO_ICBWE2_TBE2K8
                    if ( st->total_brate >= MIN_BRATE_SWB_TBE_2k80 && st->flag_ACELP16k )
#else
                    if ( st->total_brate >= MIN_BRATE_SWB_TBE_2k80 && st->flag_ACELP16k && st->element_mode == IVAS_SCE )
#endif
                    {
                        st->extl_brate = SWB_TBE_2k8;
                    }
@@ -314,11 +310,7 @@ void ivas_decision_matrix_dec(
                {
                    st->extl = FB_TBE;
                    st->extl_brate = FB_TBE_1k8;
#ifdef DBG_STEREO_ICBWE2_TBE2K8
                    if ( st->total_brate >= MIN_BRATE_SWB_TBE_2k80 && st->flag_ACELP16k )
#else
                    if ( st->total_brate >= MIN_BRATE_SWB_TBE_2k80 && st->flag_ACELP16k && st->element_mode == IVAS_SCE )
#endif
                    {
                        st->extl_brate = FB_TBE_3k0;
                    }
+0 −3
Original line number Diff line number Diff line
@@ -126,9 +126,6 @@ void stereo_tca_dec(
        if ( hCPE->element_mode == IVAS_CPE_DFT )
        {
            hStereoTCA->corrLagStats = (int16_t) fabsf( hCPE->hStereoDft->itd[1] );
#ifdef QC_DBG_DFT_NO_SHIFT_DEC
            hStereoTCA->corrLagStats = 0;
#endif
            hStereoTCA->refChanIndx = ( hCPE->hStereoDft->itd[1] >= 0 ) ? ( L_CH_INDX ) : ( R_CH_INDX );
        }
        else if ( hCPE->element_mode == IVAS_CPE_MDCT )
+0 −10
Original line number Diff line number Diff line
@@ -353,16 +353,6 @@ void stereo_icBWE_dec(
        /* LP synthesis */
        mvr2r( hStereoICBWE->mem_syn_shb_nonref, shb_synth_nonref, L_SHB_LAHEAD );
        syn_filt( hStereoICBWE->lpSHBRef, LPC_SHB_ORDER, excSHB_nonref, shb_synth_nonref + L_SHB_LAHEAD, L_FRAME16k, hStereoICBWE->mem_lpc_shbsynth_nonref, 1 );
#ifdef DBG_STEREO_ICBWE2_TBE2K8
        /* Normalize the non-ref signal to the reference channel energy to compensate for the scaling shb_ener_sf */
        if ( st->extl_brate == SWB_TBE_2k8 || st->extl_brate == FB_TBE_3k0 )
        {
            temp1 = sumAbs( hStereoICBWE->shbSynthRef, L_FRAME16k );
            temp2 = sumAbs( shb_synth_nonref + L_SHB_LAHEAD, L_FRAME16k );
            temp1 = ( temp2 > 0 ) ? ( temp1 / temp2 ) : ( 1.0f );
            v_multc( shb_synth_nonref + L_SHB_LAHEAD, temp1, shb_synth_nonref + L_SHB_LAHEAD, L_FRAME16k );
        }
#endif

        prev_pow = sum2_f( shb_synth_nonref, L_SHB_LAHEAD + 10 );
        curr_pow = sum2_f( shb_synth_nonref + L_SHB_LAHEAD + 10, L_SHB_LAHEAD + 10 );
+0 −8
Original line number Diff line number Diff line
@@ -290,11 +290,7 @@ void ivas_decision_matrix_enc(
                    st->extl = SWB_TBE;
                    st->extl_brate = SWB_TBE_1k6;

#ifdef DBG_STEREO_ICBWE2_TBE2K8
                    if ( st->total_brate >= MIN_BRATE_SWB_TBE_2k80 && st->flag_ACELP16k )
#else
                    if ( st->total_brate >= MIN_BRATE_SWB_TBE_2k80 && st->flag_ACELP16k && st->element_mode == IVAS_SCE )
#endif
                    {
                        st->extl_brate = SWB_TBE_2k8;
                    }
@@ -319,11 +315,7 @@ void ivas_decision_matrix_enc(
                        st->extl = FB_TBE;
                        st->extl_brate = FB_TBE_1k8;

#ifdef DBG_STEREO_ICBWE2_TBE2K8
                        if ( st->total_brate >= MIN_BRATE_SWB_TBE_2k80 && st->flag_ACELP16k )
#else
                        if ( st->total_brate >= MIN_BRATE_SWB_TBE_2k80 && st->flag_ACELP16k && st->element_mode == IVAS_SCE )
#endif
                        {
                            st->extl_brate = FB_TBE_3k0;
                        }
Loading