Ignore:
Timestamp:
29 Apr 2013, 13:17:05 (11 years ago)
Author:
hhi
Message:

JCT3V-D0036: Fix for aligning SW and spec - Wedgelet segmentation line generation without float (FIX_WEDGE_NOFLOAT_D0036).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-6.2-dev3-HHI/source/Lib/TLibCommon/TComWedgelet.cpp

    r296 r344  
    783783  Int deltax = x1 - x0;
    784784  Int deltay = abs(y1 - y0);
     785#if FIX_WEDGE_NOFLOAT_D0036
     786  Int error = 0;
     787  Int deltaerr = (deltay<<1);
     788#else
    785789  double error = 0.0;
    786790  double deltaerr = (double)deltay / (double)deltax;
     791#endif
    787792
    788793  Int ystep;
     
    797802
    798803    error += deltaerr;
     804#if FIX_WEDGE_NOFLOAT_D0036
     805    if( error >= deltax )
     806#else
    799807    if( error >= 0.5)
     808#endif   
    800809    {
    801810      y += ystep;
     811#if FIX_WEDGE_NOFLOAT_D0036
     812      error = error - (deltax<<1);
     813#else
    802814      error = error - 1.0;
     815#endif   
    803816    }
    804817  }
Note: See TracChangeset for help on using the changeset viewer.