Commit a66f57b1 authored by Jan Kiene's avatar Jan Kiene
Browse files

add writeout of ms dec spectra

parent 631f317a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@
#define DEBUGGING                             /* Allows debugging message to be printed out during runtime */
#ifdef DEBUGGING
// #define DEBUG_READ_IN_SPECTRUM_B4_STEREO_DECISION
// #define WRITE_OUT_MS_DEC_SPECTRA
/*#define DBG_BITSTREAM_ANALYSIS*/            /* Write bitstream with annotations to a text file */
#define DEBUG_MODE_INFO                       /* Define to output most important parameters to the subdirectory "res/" */
#ifdef DEBUG_MODE_INFO
+7 −0
Original line number Diff line number Diff line
@@ -1203,6 +1203,13 @@ static void MsStereoDecision_fx(
    specM_e = sub( Q31, q_spec );
    specS_e = sub( Q31, q_spec );

#ifdef WRITE_OUT_MS_DEC_SPECTRA
    dbgwrite( &specL_fx[0], sizeof( Word32 ), length, 1, "specL_fx" );
    dbgwrite( &specR_fx[0], sizeof( Word32 ), length, 1, "specR_fx" );
    dbgwrite( &length, sizeof( Word16 ), 1, 1, "length" );
    dbgwrite( &q_spec, sizeof( Word16 ), 1, 1, "q_spec" );
#endif

    GLR_fx = SQ_gain_estimate_stereo_fx( specL_fx, specL_e, specR_fx, specR_e, nBitsAvailable, length, &e_GLR ); /* Q31-e_GLR */

    FOR( i = 0; i < length; i++ )