1 |
< |
/* Copyright (c) 1986 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
14 |
|
|
15 |
|
#include "color.h" |
16 |
|
|
17 |
< |
#define FTINY 1e-7 |
17 |
> |
#define FTINY 1e-7 |
18 |
|
|
19 |
|
extern double rad; /* output pixel radius for filtering */ |
20 |
|
|
38 |
|
|
39 |
|
float *exptable; /* exponent table */ |
40 |
|
|
41 |
< |
#define lookexp(x) exptable[(int)(-10.*(x)+.5)] |
41 |
> |
#define lookexp(x) exptable[(int)(-10.*(x)+.5)] |
42 |
|
|
43 |
|
|
44 |
|
initmask() /* initialize gaussian lookup table */ |
66 |
|
static double d; |
67 |
|
static int y; |
68 |
|
register int x; |
69 |
< |
register COLOR *scan; |
69 |
> |
register COLOR *scan; |
70 |
|
|
71 |
|
wsum = 0; |
72 |
|
setcolor(csum, 0.0, 0.0, 0.0); |
101 |
|
static COLOR ctmp; |
102 |
|
static int y; |
103 |
|
register int x; |
104 |
< |
register COLOR *scan; |
104 |
> |
register COLOR *scan; |
105 |
|
|
106 |
|
wsum = FTINY; |
107 |
|
setcolor(csum, 0.0, 0.0, 0.0); |