Changeset 344 in 3DVCSoftware


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).

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  
    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  }
  • branches/HTM-6.2-dev3-HHI/source/Lib/TLibCommon/TypeDef.h

    r342 r344  
    5959                                              // HHI_DMM_DELTADC_Q1_C0034   JCT3V-C0034: no quantization and fast encoder search for DMM delta DC values
    6060                                              // 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)
    6162
    6263#define LGE_EDGE_INTRA_A0070              1   // JCT3V-A0070
Note: See TracChangeset for help on using the changeset viewer.