Changeset 1179 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComRom.cpp
- Timestamp:
- 7 Apr 2015, 17:05:30 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComRom.cpp
r1133 r1179 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 4, ITU/ISO/IEC6 * Copyright (c) 2010-2015, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 391 391 Bool g_tracePU = false; 392 392 Bool g_traceTU = false; 393 Bool g_disableNumbering = false; 393 394 Bool g_disableHLSTrace = false; 394 UInt64 g_stopAtCounter = 0;395 UInt64 g_stopAtCounter = 937234; 395 396 Bool g_traceCopyBack = false; 396 397 Bool g_decTraceDispDer = false; 397 398 Bool g_decTraceMvFromMerge = false; 398 399 Bool g_decTracePicOutput = false; 399 Bool g_stopAtPos = false; 400 Bool g_outputPos = false; 400 Bool g_stopAtPos = true; 401 Bool g_outputPos = true; 402 Bool g_traceCameraParameters = false; 403 Bool g_encNumberOfWrittenBits = true; 401 404 #endif 402 405 #endif … … 600 603 601 604 Bool stopFlag = false; 602 if ( g_stopAtPos && poc == 0 && layerId == 1)605 if ( g_stopAtPos && poc == 0 && layerId == 2 ) 603 606 { 604 607 Bool stopAtCU = true; 605 608 if ( stopAtCU ) // Stop at CU with specific size 606 609 { 607 stopFlag = ( cuPelX == 888 ) && ( cuPelY == 248 ) && ( cuWidth == 8 ) && ( cuHeight == 8);610 stopFlag = ( cuPelX == 0 ) && ( cuPelY == 0 ) && ( cuWidth == 8 ) && ( cuHeight == 8 ); 608 611 } 609 612 else … … 633 636 std::cout << "Break point here." << std::endl; 634 637 } 635 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 638 if ( !g_disableNumbering ) 639 { 640 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 641 } 636 642 fprintf( g_hTrace, "%-50s : %d\n", symbolName, val ); 637 643 fflush ( g_hTrace ); … … 739 745 assert( uiWidth == uiHeight ); 740 746 747 #if SHARP_DMM_CLEAN_K0042 748 Int posStart = 0, posEnd = 0; 749 #else 741 750 UChar uhStartX = 0, uhStartY = 0, uhEndX = 0, uhEndY = 0; 742 751 Int iStepStartX = 0, iStepStartY = 0, iStepEndX = 0, iStepEndY = 0; 752 #endif 743 753 744 754 UInt uiBlockSize = 0; … … 752 762 for( UInt uiOri = 0; uiOri < 6; uiOri++ ) 753 763 { 764 #if !SHARP_DMM_CLEAN_K0042 754 765 // init the edge line parameters for each of the 6 wedgelet types 755 766 switch( uiOri ) … … 762 773 case( 5 ): { uhStartX = (uiBlockSize-1); uhStartY = 0; uhEndX = 0; uhEndY = 0; iStepStartX = 0; iStepStartY = +1; iStepEndX = 0; iStepEndY = +1; break; } 763 774 } 764 775 #endif 776 777 #if SHARP_DMM_CLEAN_K0042 778 posEnd = (Int) racWedgeList.size(); 779 if (uiOri == 0 || uiOri == 4) 780 { 781 #endif 765 782 for( Int iK = 0; iK < uiBlockSize; iK += (uiWidth>=16 ?2:1)) 766 783 { 767 784 for( Int iL = 0; iL < uiBlockSize; iL += ((uiWidth>=16 && uiOri<4)?2:1) ) 768 785 { 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 769 793 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 770 795 addWedgeletToList( cTempWedgelet, racWedgeList, racWedgeRefList ); 771 796 } 772 797 } 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 773 810 } 774 811
Note: See TracChangeset for help on using the changeset viewer.