Changeset 1164 in 3DVCSoftware for branches/HTM-13.1-dev0/source/Lib/TLibCommon/TComRom.cpp
- Timestamp:
- 16 Mar 2015, 12:52:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-13.1-dev0/source/Lib/TLibCommon/TComRom.cpp
r1133 r1164 739 739 assert( uiWidth == uiHeight ); 740 740 741 #if SHARP_DMM_CLEAN_K0042 742 Int posStart = 0, posEnd = 0; 743 #else 741 744 UChar uhStartX = 0, uhStartY = 0, uhEndX = 0, uhEndY = 0; 742 745 Int iStepStartX = 0, iStepStartY = 0, iStepEndX = 0, iStepEndY = 0; 746 #endif 743 747 744 748 UInt uiBlockSize = 0; … … 752 756 for( UInt uiOri = 0; uiOri < 6; uiOri++ ) 753 757 { 758 #if !SHARP_DMM_CLEAN_K0042 754 759 // init the edge line parameters for each of the 6 wedgelet types 755 760 switch( uiOri ) … … 762 767 case( 5 ): { uhStartX = (uiBlockSize-1); uhStartY = 0; uhEndX = 0; uhEndY = 0; iStepStartX = 0; iStepStartY = +1; iStepEndX = 0; iStepEndY = +1; break; } 763 768 } 764 769 #endif 770 771 #if SHARP_DMM_CLEAN_K0042 772 posEnd = racWedgeList.size(); 773 if (uiOri == 0 || uiOri == 4) 774 { 775 #endif 765 776 for( Int iK = 0; iK < uiBlockSize; iK += (uiWidth>=16 ?2:1)) 766 777 { 767 778 for( Int iL = 0; iL < uiBlockSize; iL += ((uiWidth>=16 && uiOri<4)?2:1) ) 768 779 { 780 #if SHARP_DMM_CLEAN_K0042 781 Int xS = iK; 782 Int yS = 0; 783 Int xE = (uiOri == 0) ? 0 : iL; 784 Int yE = (uiOri == 0) ? iL : uiBlockSize - 1; 785 cTempWedgelet.setWedgelet( xS, yS, xE, yE, uiOri, eWedgeRes, ((iL%2)==0 && (iK%2)==0) ); 786 #else 769 787 cTempWedgelet.setWedgelet( uhStartX + (iK*iStepStartX) , uhStartY + (iK*iStepStartY), uhEndX + (iL*iStepEndX), uhEndY + (iL*iStepEndY), (UChar)uiOri, eWedgeRes, ((iL%2)==0 && (iK%2)==0) ); 788 #endif 770 789 addWedgeletToList( cTempWedgelet, racWedgeList, racWedgeRefList ); 771 790 } 772 791 } 792 #if SHARP_DMM_CLEAN_K0042 793 } 794 else 795 { 796 for (Int pos = posStart; pos < posEnd; pos++) 797 { 798 cTempWedgelet.generateWedgePatternByRotate(racWedgeList[pos], uiOri); 799 addWedgeletToList( cTempWedgelet, racWedgeList, racWedgeRefList ); 800 } 801 } 802 posStart = posEnd; 803 #endif 773 804 } 774 805
Note: See TracChangeset for help on using the changeset viewer.