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

Comparing ray/src/common/depthcodec.h (file contents):
Revision 2.6 by greg, Sat Jan 25 02:36:25 2020 UTC vs.
Revision 2.7 by greg, Sat Jan 25 05:35:34 2020 UTC

# Line 50 | Line 50 | typedef struct {
50   #if 1
51   #define depth2code(d, dref) \
52                  ( (d) > (dref) ? (int)(32768.001 - 32768.*(dref)/(d))-1 : \
53 <                  (d) > .0 ? (int)(32767.*(d)/(dref) - 32768.) : -32768 )
53 >                  (d) > .0 ? (int)(32767.*(d)/(dref) - 32768.999) : -32768 )
54   #else
55   extern int      depth2code(double d, double dref);
56   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines