Commit cc76c5ed authored by vaclav's avatar vaclav
Browse files

fixes to debugging files; under DEBUG_MODE_INFO

parent 2ff92e64
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -514,6 +514,9 @@ ivas_error ivas_cpe_dec(
            {
                dbgwrite( output[j], sizeof( float ), output_frame, 1, fname( debug_dir, "output.cpe", j, cpe_id, DEC ) );
            }
            tmpF = 0;
            dbgwrite( &tmpF, sizeof( float ), 1, output_frame, fname( debug_dir, "output.sce", 0, cpe_id, DEC ) );
            dbgwrite( &tmpF, sizeof( float ), 1, output_frame, fname( debug_dir, "output.mct", 0, cpe_id, DEC ) );
        }
    }
#endif
+5 −0
Original line number Diff line number Diff line
@@ -255,6 +255,11 @@ ivas_error ivas_mct_dec(
    {
        float tmpF = st_ivas->hCPE[cpe_id]->element_brate / 1000.0f;
        dbgwrite( &tmpF, sizeof( float ), 1, output_frame, fname( debug_dir, "element_brate", 0, cpe_id, DEC ) );

        dbgwrite( output[0], sizeof( float ), output_frame, 1, fname( debug_dir, "output.mct", 0, cpe_id, DEC ) );
        tmpF = 0;
        dbgwrite( &tmpF, sizeof( float ), 1, output_frame, fname( debug_dir, "output.sce", 0, cpe_id, DEC ) );
        dbgwrite( &tmpF, sizeof( float ), 1, output_frame, fname( debug_dir, "output.cpe", 0, cpe_id, DEC ) );
    }
#endif

+3 −0
Original line number Diff line number Diff line
@@ -277,6 +277,9 @@ ivas_error ivas_sce_dec(
            dbgwrite( &st->element_mode, sizeof( int16_t ), 1, output_frame, fname( debug_dir, "element_mode", 0, sce_id, DEC ) );

            dbgwrite( output, sizeof( float ), output_frame, 1, fname( debug_dir, "output.sce", 0, sce_id, DEC ) );
            tmpF = 0;
            dbgwrite( &tmpF, sizeof( float ), 1, output_frame, fname( debug_dir, "output.cpe", 0, sce_id, DEC ) );
            dbgwrite( &tmpF, sizeof( float ), 1, output_frame, fname( debug_dir, "output.mct", 0, sce_id, DEC ) );
        }
    }
#endif
+5 −3
Original line number Diff line number Diff line
@@ -423,9 +423,11 @@ ivas_error ivas_cpe_enc(
    }

#ifdef DEBUG_MODE_INFO
    dbgwrite( sts[0]->input - NS2SA( sts[0]->input_Fs, ACELP_LOOK_NS ), 4, input_frame, 1, "res/input_DMX" );
    dbgwrite( sts[1]->input - NS2SA( sts[1]->input_Fs, ACELP_LOOK_NS ), 4, input_frame, 1, "res/input_DMX.ch2" );
    dbgwrite( &hCPE->element_mode, 2, 1, input_frame, "res/element_mode" );
    for ( n = 0; n < n_CoreChannels; n++ )
    {
        dbgwrite( sts[0]->input - NS2SA( sts[0]->input_Fs, ACELP_LOOK_NS ), sizeof( float ), input_frame, 1, fname( debug_dir, "input_DMX", n, sts[n]->id_element, ENC ) );
    }   
    dbgwrite( &hCPE->element_mode, sizeof( int16_t ), 1, input_frame, fname( debug_dir, "element_mode", 0, sts[0]->id_element, ENC ) );
#endif

    /*----------------------------------------------------------------*
+2 −1
Original line number Diff line number Diff line
@@ -177,7 +177,8 @@ ivas_error ivas_sce_enc(
#endif

#ifdef DEBUG_MODE_INFO
    dbgwrite( st->input - NS2SA( st->input_Fs, ACELP_LOOK_NS ), 4, input_frame, 1, "res/input_DMX" );
    dbgwrite( st->input - NS2SA( st->input_Fs, ACELP_LOOK_NS ), sizeof( float ), input_frame, 1, "res/input_DMX" );
    dbgwrite( &st->element_mode, sizeof( int16_t ), 1, input_frame, fname( debug_dir, "element_mode", 0, st->id_element, ENC ) );
#endif

    /*----------------------------------------------------------------*