Commit d9fdb374 authored by malenovsky's avatar malenovsky
Browse files

Merge branch 'ivas-float-update-debug-2' into 'ivas-float-update'

Merge debugging code into ivas-float-update

See merge request !588
parents 15ff2f4a 28768e88
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -100,9 +100,14 @@
    </Lib>
  </ItemDefinitionGroup>
  <ItemGroup>
    <ClCompile Include="..\lib_debug\debug.c" />
    <ClCompile Include="..\lib_debug\sba_debug.c" />
    <ClCompile Include="..\lib_debug\snr.c" />
    <ClCompile Include="..\lib_debug\wmc_auto.c" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="..\lib_debug\debug.h" />
    <ClInclude Include="..\lib_debug\sba_debug.h" />
    <ClInclude Include="..\lib_debug\wmc_auto.h" />
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+497 −1

File changed.

Preview size limit exceeded, changes collapsed.

+374 −1

File changed.

Preview size limit exceeded, changes collapsed.

+18 −1
Original line number Diff line number Diff line
@@ -46,6 +46,9 @@
#include "render_config_reader.h"
#include "rotation_file_reader.h"
#include "vector3_pair_file_reader.h"
#ifdef DEBUGGING
#include "debug.h"
#endif
#include "wmc_auto.h"


@@ -63,7 +66,7 @@
#define IVAS_MAX16B_FLT 32767.0f
#define IVAS_MIN16B_FLT ( -32768.0f )

#if !defined( WMOPS )
#if !defined( DEBUGGING ) && !defined( WMOPS )
static
#endif
    int32_t frame = 0;
@@ -1545,6 +1548,17 @@ int main(

    fprintf( stdout, "\n\nRendering of %d frames finished\n\n", frame );

#ifdef DEBUGGING
    int32_t cnt_frames_limited, noClipping;
    if ( ( cnt_frames_limited = IVAS_REND_GetCntFramesLimited( hIvasRend ) ) > 0 )
    {
        fprintf( stdout, "Limiter applied in %d frames.\n\n", cnt_frames_limited );
    }
    if ( ( noClipping = IVAS_REND_GetNoCLipping( hIvasRend ) ) > 0 )
    {
        fprintf( stdout, "Clipping (saturation) detected: %d samples clipped!!!\n\n", noClipping );
    }
#endif

    /* === Close === */
    free( inpInt16Buffer );
@@ -1573,6 +1587,9 @@ int main(
    IsmPositionProvider_close( positionProvider );
    RenderConfigReader_close( &renderConfigReader );

#ifdef DEBUGGING
    dbgclose();
#endif
#ifdef WMOPS
    print_wmops();
    print_mem( NULL );
+3 −0
Original line number Diff line number Diff line
@@ -36,6 +36,9 @@

#include <stdint.h>
#include "options.h"
#ifdef DEBUGGING
#include "debug.h"
#endif
#include "cnst.h"
#include "prot.h"
#include "wmc_auto.h"
Loading