ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/depthcodec.c
(Generate patch)

Comparing ray/src/common/depthcodec.c (file contents):
Revision 2.6 by greg, Fri Jan 10 01:02:14 2020 UTC vs.
Revision 2.7 by greg, Sat Jan 25 02:36:25 2020 UTC

# Line 42 | Line 42 | code2depth(int c, double dref)
42          if (c >= 32767)
43                  return FHUGE;
44  
45 <        if (c >= 0)
45 >        if (c >= -1)
46                  return dref*32768./(32766.5 - c);
47  
48 <        return dref*(32767.5 + c)*(1./32767.);
48 >        return dref*(32768.5 + c)*(1./32767.);
49   }
50   #endif
51  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines