Commit 787fa6fe authored by Jan Kiene's avatar Jan Kiene
Browse files

also write out M and s spec

parent a66f57b1
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -1203,12 +1203,6 @@ 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 */

@@ -1220,6 +1214,15 @@ static void MsStereoDecision_fx(
        move32();
    }

#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( &specM_fx[0], sizeof( Word32 ), length, 1, "specM_fx" );
    dbgwrite( &specS_fx[0], sizeof( Word32 ), length, 1, "specS_fx" );
    dbgwrite( &length, sizeof( Word16 ), 1, 1, "length" );
    dbgwrite( &q_spec, sizeof( Word16 ), 1, 1, "q_spec" );
#endif

    G_fx = extract_h( GLR_fx ); /* seems to be favourable to underestimate a bit Q15-e_GLR*/
    G_e = sub( e_GLR, 1 );