5 |
|
#ifndef _RAD_PFILT_H_ |
6 |
|
#define _RAD_PFILT_H_ |
7 |
|
|
8 |
+ |
#include "standard.h" |
9 |
+ |
#include "paths.h" |
10 |
+ |
#include "color.h" |
11 |
+ |
|
12 |
|
#ifdef __cplusplus |
13 |
|
extern "C" { |
14 |
|
#endif |
15 |
|
|
12 |
– |
|
16 |
|
extern double CHECKRAD; /* radius over which gaussian is summed */ |
17 |
|
extern double rad; /* output pixel radius for filtering */ |
18 |
|
extern double thresh; /* maximum contribution for subpixel */ |
33 |
|
extern int ybrad; /* y box size */ |
34 |
|
|
35 |
|
extern int barsize; /* size of input scan bar */ |
36 |
< |
extern COLOR **scanin; /* input scan bar */ |
37 |
< |
extern COLOR *scanout; /* output scan line */ |
38 |
< |
extern COLOR **scoutbar; /* output scan bar (if thresh > 0) */ |
36 |
> |
extern COLORV **scanin; /* input scan bar */ |
37 |
> |
extern COLORV *scanout; /* output scan line */ |
38 |
> |
extern COLORV **scoutbar; /* output scan bar (if thresh > 0) */ |
39 |
|
extern float **greybar; /* grey-averaged input values */ |
40 |
|
extern int obarsize; /* size of output scan bar */ |
41 |
|
extern int orad; /* output window radius */ |
42 |
|
|
43 |
|
extern int wrapfilt; /* wrap filter horizontally? */ |
44 |
|
|
45 |
< |
typedef double brightfunc_t(COLOR c); |
45 |
> |
typedef double brightfunc_t(SCOLOR c); |
46 |
|
extern brightfunc_t *ourbright; /* brightness calculation function */ |
47 |
|
|
48 |
|
/* defined in pf2.c */ |
49 |
|
extern void pass1init(void); /* prepare for first pass */ |
50 |
|
extern void pass1default(void); /* for single pass */ |
51 |
< |
extern void pass1scan(COLOR *scan, int y); /* process first pass scanline */ |
51 |
> |
extern void pass1scan(COLORV *scan, int y); /* process first pass scanline */ |
52 |
|
extern void pass2init(void); /* prepare for final pass */ |
53 |
< |
extern void pass2scan(COLOR *scan, int y); /* process final pass scanline */ |
53 |
> |
extern void pass2scan(COLORV *scan, int y); /* process final pass scanline */ |
54 |
|
|
55 |
|
/* defined in pf3.c */ |
56 |
|
extern void initmask(void); /* initialize gaussian lookup table */ |
57 |
< |
extern void dobox(COLOR csum, int xcent, int ycent, |
57 |
> |
extern void dobox(SCOLOR csum, int xcent, int ycent, |
58 |
|
int c, int r); /* simple box filter */ |
59 |
< |
extern void dogauss(COLOR csum, int xcent, int ycent, |
59 |
> |
extern void dogauss(SCOLOR csum, int xcent, int ycent, |
60 |
|
int c, int r); /* gaussian filter */ |
61 |
|
extern void dothresh(int xcent, int ycent, |
62 |
|
int ccent, int rcent); /* gaussian threshold filter */ |
65 |
|
} |
66 |
|
#endif |
67 |
|
#endif /* _RAD_PFILT_H_ */ |
65 |
– |
|