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

Comparing ray/src/px/ra_pict.c (file contents):
Revision 2.6 by greg, Fri Jun 4 14:47:37 1993 UTC vs.
Revision 2.7 by greg, Mon Jul 19 12:04:35 1993 UTC

# Line 34 | Line 34 | extern char    *malloc();
34   int     outbytes;                   /* This had better be 32 bits! */
35   char    *progname;
36   int     verbose = 0;
37 < float   gamma = 2.0;
37 > float   gamcor = 2.0;
38   int     bradj = 0;
39  
40          /* First some utility routines */
# Line 112 | Line 112 | char **argv;
112      for (i = 1; i < argc ; i++)
113          if (argv[i][0] ==  '-')
114              switch (argv[i][1]) {
115 <                case 'g':       gamma = atof(argv[++i]);
115 >                case 'g':       gamcor = atof(argv[++i]);
116                                  break;
117  
118                  case 'e':       if (argv[i+1][0] != '+' && argv[i+1][0] != '-')
# Line 158 | Line 158 | outofparse:
158   #ifdef DEBUG
159          fprintf(stderr, "Input file: %s\n", i <= argc - 1 ? argv[i] : "stdin");
160          fprintf(stderr, "Outut file: %s\n", i <= argc - 2 ? argv[i+1] : "stdout" );
161 <        fprintf(stderr, "Gamma: %f\n", gamma);
161 >        fprintf(stderr, "Gamma: %f\n", gamcor);
162          fprintf(stderr, "Brightness adjust: %d\n", bradj);
163          fprintf(stderr, "Verbose: %s\n", verbose ? "on" : "off");
164   #endif
# Line 173 | Line 173 | outofparse:
173  
174              /* Set the gamma correction */
175  
176 <    setcolrgam(gamma);
176 >    setcolrgam(gamcor);
177  
178      for(i=0; i<HEADER_SIZE; i++)
179          putbyte(0);
# Line 196 | Line 196 | outofparse:
196  
197      if (verbose)
198          fprintf(stderr, "%s: The picture is %d by %d, with a gamma of %f\n",
199 <            progname, xsize, ysize, gamma);
199 >            progname, xsize, ysize, gamcor);
200  
201  
202      putpict(xsize, ysize);      /* Here is where all the work is done */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines