Commit 368f843c authored by Jan Kiene's avatar Jan Kiene
Browse files

add debug writeout for ms mask and stereo mode

parent c341a18a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@

/* ################### Start DEBUGGING switches ######################## */

/*#define DEBUGGING*/                             /* Allows debugging message to be printed out during runtime */
#define DEBUGGING                             /* Allows debugging message to be printed out during runtime */
#ifdef DEBUGGING
#define DEBUG_MODE_INFO                       /* Define to output most important parameters to the subdirectory "res/" */
#define DEBUG_MODE_INFO_TWEAK                 /* Enable command line switch to specify subdirectory for debug info output inside "./res/" */
+9 −0
Original line number Diff line number Diff line
@@ -42,6 +42,9 @@
#include "wmc_auto.h"
#include "ivas_prot_fx.h"
#include "prot_fx_enc.h"
#ifdef DEBUGGING
#include "debug.h"
#endif

/*-------------------------------------------------------------------*
 * sync_tcx_mode()
@@ -384,6 +387,12 @@ void stereo_mdct_core_enc_fx(
        stereo_coder_tcx_fx( hStereoMdct, sts, ms_mask, mdst_spectrum_fx, inv_spectrum_fx, inv_mdst_spectrum_fx, 0, q_spec );
    }

#ifdef DEBUGGING
    dbgwrite(&hStereoMdct->mdct_stereo_mode[0], sizeof(int16_t), 2, 1, "mdct_stereo_mode");
    dbgwrite(&ms_mask[0][0], sizeof(int16_t), MAX_SFB, 1, "ms_mask_ch0");
    dbgwrite(&ms_mask[1][0], sizeof(int16_t), MAX_SFB, 1, "ms_mask_ch1");
#endif

    /*--------------------------------------------------------------*
     * Power spectrum calculation
     *---------------------------------------------------------------*/