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

Comparing ray/src/px/pcwarp.c (file contents):
Revision 3.1 by greg, Wed Feb 5 17:29:25 1997 UTC vs.
Revision 3.3 by greg, Sat Feb 22 02:07:27 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1997 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Warp colors in Radiance picture to correct for input/output changes.
6   */
# Line 14 | Line 11 | static char SCCSid[] = "$SunId$ LBL";
11  
12   char    *progname;                      /* global argv[0] */
13  
14 < FILE    *infp = stdin;                  /* input stream */
14 > FILE    *infp = NULL;                   /* input stream */
15   int     xres, yres;                     /* input picture resolution */
16  
17   WARP3D  *cwarp;                         /* our warp map */
# Line 32 | Line 29 | char   *argv[];
29          int     i;
30  
31          progname = argv[0];
32 +        infp = stdin;
33                                          /* get options */
34          for (i = 1; i < argc && argv[i][0] == '-'; i++)
35                  switch (argv[i][1]) {
# Line 143 | Line 141 | picwarp()                      /* warp our picture scanlines */
141          if (ngamut >= (long)xres*yres/100)
142                  fprintf(stderr, "%s: warning - %d%% of pixels out of gamut\n",
143                                  progname, 100*ngamut/((long)xres*yres));
144 <        free((char *)scan);
144 >        free((void *)scan);
145   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines