| 32 |
|
#define RSCA 2.2 /* radius scaling factor (empirical) */ |
| 33 |
|
#endif |
| 34 |
|
#ifndef SMOOTH_MSE |
| 35 |
< |
#define SMOOTH_MSE 5e-5 /* acceptable mean squared error */ |
| 35 |
> |
#define SMOOTH_MSE 2e-5 /* acceptable mean squared error */ |
| 36 |
|
#endif |
| 37 |
|
#ifndef SMOOTH_MSER |
| 38 |
< |
#define SMOOTH_MSER 0.07 /* acceptable relative MSE */ |
| 38 |
> |
#define SMOOTH_MSER 0.03 /* acceptable relative MSE */ |
| 39 |
|
#endif |
| 40 |
|
#define MAX_RAD (GRIDRES/8) /* maximum lobe radius */ |
| 41 |
|
|
| 91 |
|
static void |
| 92 |
|
comp_bsdf_min() |
| 93 |
|
{ |
| 94 |
< |
int cnt; |
| 95 |
< |
int i, target; |
| 94 |
> |
unsigned long cnt, target; |
| 95 |
> |
int i; |
| 96 |
|
|
| 97 |
|
cnt = 0; |
| 98 |
|
for (i = HISTLEN; i--; ) |
| 151 |
|
rMtx[2][1] = rMtx[1][2]; |
| 152 |
|
nvs = rMtx[2][2]; |
| 153 |
|
if (SDinvXform(rMtx, rMtx) != SDEnone) |
| 154 |
< |
return(0); |
| 154 |
> |
return(1); /* colinear values */ |
| 155 |
|
A = DOT(rMtx[0], xvec); |
| 156 |
|
B = DOT(rMtx[1], xvec); |
| 157 |
|
C = DOT(rMtx[2], xvec); |