Changeset 344 in 3DVCSoftware
- Timestamp:
- 29 Apr 2013, 13:17:05 (12 years ago)
- Location:
- branches/HTM-6.2-dev3-HHI
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-6.2-dev3-HHI/source/Lib/TLibCommon/TComWedgelet.cpp
r296 r344 783 783 Int deltax = x1 - x0; 784 784 Int deltay = abs(y1 - y0); 785 #if FIX_WEDGE_NOFLOAT_D0036 786 Int error = 0; 787 Int deltaerr = (deltay<<1); 788 #else 785 789 double error = 0.0; 786 790 double deltaerr = (double)deltay / (double)deltax; 791 #endif 787 792 788 793 Int ystep; … … 797 802 798 803 error += deltaerr; 804 #if FIX_WEDGE_NOFLOAT_D0036 805 if( error >= deltax ) 806 #else 799 807 if( error >= 0.5) 808 #endif 800 809 { 801 810 y += ystep; 811 #if FIX_WEDGE_NOFLOAT_D0036 812 error = error - (deltax<<1); 813 #else 802 814 error = error - 1.0; 815 #endif 803 816 } 804 817 } -
branches/HTM-6.2-dev3-HHI/source/Lib/TLibCommon/TypeDef.h
r342 r344 59 59 // HHI_DMM_DELTADC_Q1_C0034 JCT3V-C0034: no quantization and fast encoder search for DMM delta DC values 60 60 // FIX_DMM_CTX_INIT_C0034 JCT3V-C0034 fix for wrong init type of DMM contexts (UChar instead of Short) 61 #define FIX_WEDGE_NOFLOAT_D0036 1 // JCT3V-D0036: Fix for aligning SW and spec (Wedgelet segmentation line generation without float) 61 62 62 63 #define LGE_EDGE_INTRA_A0070 1 // JCT3V-A0070
Note: See TracChangeset for help on using the changeset viewer.