Ignore:
Timestamp:
15 Jul 2015, 12:46:07 (9 years ago)
Author:
tech
Message:
  • Further fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.1-update-dev2/source/Lib/TLibCommon/TComRom.cpp

    r1274 r1275  
    564564Bool g_disableNumbering = false;
    565565Bool g_disableHLSTrace = false;
    566 UInt64 g_stopAtCounter       = 0;
     566UInt64 g_stopAtCounter       = 4660;
    567567Bool g_traceCopyBack         = false;
    568568Bool g_decTraceDispDer       = false;
     
    704704  }
    705705  Bool stopFlag = false;
    706   if ( g_stopAtPos && poc == 0 && layerId == 2 )
     706  if ( g_stopAtPos && poc == 16 && layerId == 1 )
    707707  {
    708708    Bool stopAtCU = true;
    709709    if ( stopAtCU )        // Stop at CU with specific size
    710710    {   
    711       stopFlag = ( cuPelX  == 0 ) && ( cuPelY  == 0 ) && ( cuWidth == 8 ) && ( cuHeight == 8 );
     711      stopFlag = ( cuPelX  == 0 ) && ( cuPelY  == 0 ) && ( cuWidth == 32 ) && ( cuHeight == 32 );
    712712    }
    713713    else
     
    729729  if ( ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) && doIt  )
    730730  {
    731     if ( g_stopAtCounter == g_nSymbolCounter )
    732     {
    733       std::cout << "Break point here." << std::endl;
    734     }
     731    incSymbolCounter(); 
    735732    if ( !g_disableNumbering )
    736733    { 
    737       fprintf( g_hTrace, "%8lld  ", g_nSymbolCounter++ );
     734      fprintf( g_hTrace, "%8lld  ", g_nSymbolCounter );
    738735    }
    739736    fprintf( g_hTrace, "%-50s       : %d\n", symbolName, val );     
    740     fflush ( g_hTrace );
    741     g_nSymbolCounter++;
    742   }
     737    fflush ( g_hTrace );   
     738  }
     739}
     740Int incSymbolCounter( )
     741{
     742  g_nSymbolCounter++; 
     743  if ( g_stopAtCounter == g_nSymbolCounter )
     744  {
     745    std::cout << "Break point here." << std::endl;
     746  } 
     747  return g_nSymbolCounter;
    743748}
    744749Void writeToTraceFile( const Char* symbolName, Bool doIt )
     
    746751  if ( ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) && doIt  )
    747752  {
     753    incSymbolCounter();
    748754    fprintf( g_hTrace, "%s", symbolName );   
    749     fflush ( g_hTrace );
    750     g_nSymbolCounter++;
     755    fflush ( g_hTrace );   
    751756  }
    752757}
Note: See TracChangeset for help on using the changeset viewer.