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

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

# Line 85 | Line 85 | int  orad = 0;                 /* output window radius */
85   char  *progname;
86  
87   static gethfunc headline;
88 < static double rgb_bright(COLOR  clr);
89 < static double xyz_bright(COLOR  clr);
88 > static brightfunc_t rgb_bright;
89 > static brightfunc_t xyz_bright;
90   static void copyfile(FILE  *in, FILE  *out);
91   static void pass1(FILE  *in);
92   static void pass2(FILE  *in);
# Line 340 | Line 340 | xyz_bright(
340   }
341  
342  
343 < double  (*ourbright)() = rgb_bright;
343 > brightfunc_t *ourbright = rgb_bright;
344  
345
345   static int
346   headline(                               /* process line from header */
347          char    *s,
# Line 372 | Line 371 | headline(                              /* process line from header */
371  
372   static void
373   copyfile(                       /* copy a file */
374 <        register FILE  *in,
375 <        register FILE  *out
374 >        FILE  *in,
375 >        FILE  *out
376   )
377   {
378 <        register int  c;
378 >        int  c;
379  
380          while ((c = getc(in)) != EOF)
381                  putc(c, out);
# Line 481 | Line 480 | scan2init(void)                        /* prepare scanline arrays */
480   {
481          COLOR   ctmp;
482          double  d;
483 <        register int  i;
483 >        int  i;
484  
485          xbrad = xres/ncols/2 + 1;
486          ybrad = yres/nrows/2 + 1;
# Line 562 | Line 561 | scan2sync(                     /* synchronize grey averages and output s
561          static int  nextrow = 0;
562          COLOR  ctmp;
563          int  ybot;
564 <        register int  c;
564 >        int  c;
565                                          /* average input scanlines */
566          while (nextrow <= r+orad && nextrow < nrows) {
567                  ybot = (nextrow+.5)*yres/nrows;
# Line 585 | Line 584 | scan2sync(                     /* synchronize grey averages and output s
584   static void
585   scan2flush(void)                        /* flush output buffer */
586   {
587 <        register int  r;
587 >        int  r;
588  
589          for (r = nrows-orad; r < nrows; r++)
590                  if (fwritescan(scoutbar[r%obarsize], ncols, stdout) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines