| 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 |
| 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 |
|
} |