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.31 by greg, Fri Sep 3 21:18:15 2010 UTC vs.
Revision 2.35 by greg, Thu Dec 7 21:15:54 2023 UTC

# Line 11 | Line 11 | static const char RCSid[] = "$Id$";
11   #include  "copyright.h"
12  
13   #include  <signal.h>
14 < #include  <string.h>
15 <
14 > #include  "pfilt.h"
15   #include  "platform.h"
17 #include  "standard.h"
18 #include  "rtio.h"
19 #include  "color.h"
20 #include  "view.h"
16   #include  "paths.h"
17 < #include  "pfilt.h"
17 > #include  "view.h"
18  
24
19   #define  FEQ(a,b)       ((a) >= .98*(b) && (a) <= 1.02*(b))
20  
21   double   CHECKRAD = 2.0;        /* radius to check for filtering */
# Line 348 | Line 342 | headline(                              /* process line from header */
342          void    *p
343   )
344   {
345 <        char  fmt[32];
345 >        char  fmt[MAXFMTLEN];
346  
347          fputs(s, stdout);               /* copy to output */
348          if (isaspect(s))                /* get aspect ratio */
# Line 371 | Line 365 | headline(                              /* process line from header */
365  
366   static void
367   copyfile(                       /* copy a file */
368 <        register FILE  *in,
369 <        register FILE  *out
368 >        FILE  *in,
369 >        FILE  *out
370   )
371   {
372 <        register int  c;
372 >        int  c;
373  
374          while ((c = getc(in)) != EOF)
375                  putc(c, out);
# Line 480 | Line 474 | scan2init(void)                        /* prepare scanline arrays */
474   {
475          COLOR   ctmp;
476          double  d;
477 <        register int  i;
477 >        int  i;
478  
479          xbrad = xres/ncols/2 + 1;
480          ybrad = yres/nrows/2 + 1;
# Line 561 | Line 555 | scan2sync(                     /* synchronize grey averages and output s
555          static int  nextrow = 0;
556          COLOR  ctmp;
557          int  ybot;
558 <        register int  c;
558 >        int  c;
559                                          /* average input scanlines */
560          while (nextrow <= r+orad && nextrow < nrows) {
561                  ybot = (nextrow+.5)*yres/nrows;
# Line 584 | Line 578 | scan2sync(                     /* synchronize grey averages and output s
578   static void
579   scan2flush(void)                        /* flush output buffer */
580   {
581 <        register int  r;
581 >        int  r;
582  
583          for (r = nrows-orad; r < nrows; r++)
584                  if (fwritescan(scoutbar[r%obarsize], ncols, stdout) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines