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

Comparing ray/src/px/pf2.c (file contents):
Revision 2.7 by schorsch, Sun Mar 28 20:33:14 2004 UTC vs.
Revision 2.8 by greg, Thu Jul 26 23:50:40 2018 UTC

# Line 36 | Line 36 | double sprdfact;               /* computed spread factor */
36   static void starpoint(COLOR  fcol, int  x, int  y, HOTPIX        *hp);
37  
38  
39 < extern void
39 > void
40   pass1init(void)                 /* prepare for first pass */
41   {
42          avgbrt = 0.0;
# Line 45 | Line 45 | pass1init(void)                        /* prepare for first pass */
45   }
46  
47  
48 < extern void
48 > void
49   pass1default(void)                      /* for single pass */
50   {
51          avgbrt = AVGLVL;
# Line 54 | Line 54 | pass1default(void)                     /* for single pass */
54   }
55  
56  
57 < extern void
57 > void
58   pass1scan(              /* process first pass scanline */
59 <        register COLOR  *scan,
59 >        COLOR   *scan,
60          int  y
61   )
62   {
63          double  cbrt;
64 <        register int  x;
65 <        register HOTPIX  *hp;
64 >        int  x;
65 >        HOTPIX   *hp;
66  
67          for (x = 0; x < xres; x++) {
68          
# Line 93 | Line 93 | pass1scan(             /* process first pass scanline */
93   }
94  
95  
96 < extern void
96 > void
97   pass2init(void)                 /* prepare for final pass */
98   {
99          if (!npix) {
# Line 110 | Line 110 | pass2init(void)                        /* prepare for final pass */
110   }
111  
112  
113 < extern void
113 > void
114   pass2scan(              /* process final pass scanline */
115 <        register COLOR  *scan,
115 >        COLOR   *scan,
116          int  y
117   )
118   {
119          int  xmin, xmax;
120 <        register int  x;
121 <        register HOTPIX  *hp;
120 >        int  x;
121 >        HOTPIX   *hp;
122          
123          for (hp = head; hp != NULL; hp = hp->next) {
124                  if (hp->slope > FTINY) {
# Line 151 | Line 151 | starpoint(             /* pixel is on the star's point */
151          COLOR  fcol,
152          int  x,
153          int  y,
154 <        register HOTPIX  *hp
154 >        HOTPIX   *hp
155   )
156   {
157          COLOR  ctmp;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines