ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pfilt.h
(Generate patch)

Comparing ray/src/px/pfilt.h (file contents):
Revision 2.1 by schorsch, Mon Mar 29 00:34:23 2004 UTC vs.
Revision 2.3 by greg, Fri Dec 8 17:56:26 2023 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines