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

Comparing ray/src/util/depthcodec.h (file contents):
Revision 2.3 by greg, Fri Jul 19 00:01:49 2019 UTC vs.
Revision 2.4 by greg, Tue Jul 23 05:03:07 2019 UTC

# Line 44 | Line 44 | typedef struct {
44  
45   /* Encode depth as 16-bit signed integer */
46   #define depth2code(d, dref) \
47 <                ( (d) > (dref) ? (int)(32768. - 32768.*(dref)/(d))-1 : \
47 >                ( (d) > (dref) ? (int)(32768.001 - 32768.*(dref)/(d))-1 : \
48                    (d) > .0 ? (int)(32767.*(d)/(dref) - 32768.) : -32768 )
49  
50   /* Decode depth from 16-bit signed integer */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines