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.8 by greg, Tue Jun 3 21:31:51 2025 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
# Line 95 | Line 95 | int            decode_worldpos_next(FVECT wpos, DEPTHCODEC *dcp)
95  
96   /* Decode depth and compute world position for the given pixel */
97   extern int      get_worldpos_pix(FVECT wpos, DEPTHCODEC *dcp, int x, int y);
98
99 extern char     *progname;      /* global argv[0] (set by main) */
98  
99   #ifdef __cplusplus
100   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines