Changeset 1179 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComRom.cpp


Ignore:
Timestamp:
7 Apr 2015, 17:05:30 (9 years ago)
Author:
tech
Message:

Merged branch 13.1-dev0@1178.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibCommon/TComRom.cpp

    r1133 r1179  
    44 * granted under this license. 
    55 *
    6 * Copyright (c) 2010-2014, ITU/ISO/IEC
     6* Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    391391Bool g_tracePU = false;
    392392Bool g_traceTU = false;
     393Bool g_disableNumbering = false;
    393394Bool g_disableHLSTrace = false;
    394 UInt64 g_stopAtCounter       = 0;
     395UInt64 g_stopAtCounter       = 937234;
    395396Bool g_traceCopyBack         = false;
    396397Bool g_decTraceDispDer       = false;
    397398Bool g_decTraceMvFromMerge   = false;
    398399Bool g_decTracePicOutput     = false;
    399 Bool g_stopAtPos             = false;
    400 Bool g_outputPos             = false;
     400Bool g_stopAtPos             = true;
     401Bool g_outputPos             = true;   
     402Bool g_traceCameraParameters = false;
     403Bool g_encNumberOfWrittenBits     = true;
    401404#endif
    402405#endif
     
    600603
    601604  Bool stopFlag = false;
    602   if ( g_stopAtPos && poc == 0 && layerId == 1 )
     605  if ( g_stopAtPos && poc == 0 && layerId == 2 )
    603606  {
    604607    Bool stopAtCU = true;
    605608    if ( stopAtCU )        // Stop at CU with specific size
    606609    {   
    607       stopFlag = ( cuPelX  == 888 ) && ( cuPelY  == 248 ) && ( cuWidth == 8 ) && ( cuHeight == 8);
     610      stopFlag = ( cuPelX  == 0 ) && ( cuPelY  == 0 ) && ( cuWidth == 8 ) && ( cuHeight == 8 );
    608611    }
    609612    else
     
    633636      std::cout << "Break point here." << std::endl;
    634637    }
    635     fprintf( g_hTrace, "%8lld  ", g_nSymbolCounter++ );
     638    if ( !g_disableNumbering )
     639    { 
     640      fprintf( g_hTrace, "%8lld  ", g_nSymbolCounter++ );
     641    }
    636642    fprintf( g_hTrace, "%-50s       : %d\n", symbolName, val );     
    637643    fflush ( g_hTrace );
     
    739745  assert( uiWidth == uiHeight );
    740746
     747#if SHARP_DMM_CLEAN_K0042
     748  Int posStart = 0, posEnd = 0;
     749#else
    741750  UChar    uhStartX = 0,    uhStartY = 0,    uhEndX = 0,    uhEndY = 0;
    742751  Int   iStepStartX = 0, iStepStartY = 0, iStepEndX = 0, iStepEndY = 0;
     752#endif
    743753
    744754  UInt uiBlockSize = 0;
     
    752762  for( UInt uiOri = 0; uiOri < 6; uiOri++ )
    753763  {
     764#if !SHARP_DMM_CLEAN_K0042
    754765    // init the edge line parameters for each of the 6 wedgelet types
    755766    switch( uiOri )
     
    762773    case( 5 ): {  uhStartX = (uiBlockSize-1); uhStartY = 0;               uhEndX = 0;               uhEndY = 0;               iStepStartX =  0; iStepStartY = +1; iStepEndX =  0; iStepEndY = +1; break; }
    763774    }
    764 
     775#endif
     776
     777#if SHARP_DMM_CLEAN_K0042
     778    posEnd = (Int) racWedgeList.size();
     779    if (uiOri == 0 || uiOri == 4)
     780    {
     781#endif
    765782    for( Int iK = 0; iK < uiBlockSize; iK += (uiWidth>=16 ?2:1))
    766783    {
    767784      for( Int iL = 0; iL < uiBlockSize; iL += ((uiWidth>=16 && uiOri<4)?2:1) )
    768785      {
     786#if SHARP_DMM_CLEAN_K0042
     787        Int xS = iK;
     788        Int yS = 0;
     789        Int xE = (uiOri == 0) ? 0 : iL;
     790        Int yE = (uiOri == 0) ? iL : uiBlockSize - 1;
     791        cTempWedgelet.setWedgelet( xS, yS, xE, yE, uiOri, eWedgeRes, ((iL%2)==0 && (iK%2)==0) );
     792#else
    769793        cTempWedgelet.setWedgelet( uhStartX + (iK*iStepStartX) , uhStartY + (iK*iStepStartY), uhEndX + (iL*iStepEndX), uhEndY + (iL*iStepEndY), (UChar)uiOri, eWedgeRes, ((iL%2)==0 && (iK%2)==0) );
     794#endif
    770795        addWedgeletToList( cTempWedgelet, racWedgeList, racWedgeRefList );
    771796      }
    772797    }
     798#if SHARP_DMM_CLEAN_K0042
     799    }
     800    else
     801    {
     802      for (Int pos = posStart; pos < posEnd; pos++)
     803      {
     804        cTempWedgelet.generateWedgePatternByRotate(racWedgeList[pos], uiOri);
     805        addWedgeletToList( cTempWedgelet, racWedgeList, racWedgeRefList );
     806      }
     807    }
     808    posStart = posEnd;
     809#endif
    773810  }
    774811
Note: See TracChangeset for help on using the changeset viewer.