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

Comparing ray/src/px/ra_gif.c (file contents):
Revision 2.5 by greg, Mon Nov 21 15:55:59 1994 UTC vs.
Revision 2.7 by greg, Sat Feb 22 02:07:27 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1994 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   * Convert from Radiance picture file to Compuserve GIF.
6   * Currently, we don't know how to get back.
# Line 11 | Line 8 | static char SCCSid[] = "$SunId$ LBL";
8  
9   #include  <stdio.h>
10  
11 + #include  <time.h>
12 +
13   #include  "color.h"
14  
15   #include  "resolu.h"
# Line 52 | Line 51 | int  dither = 1;                       /* dither colors? */
51  
52   int  bradj = 0;                         /* brightness adjustment */
53  
54 + int  ncolors = 0;                       /* number of colors requested */
55 +
56   char  *progname;
57  
58  
# Line 59 | Line 60 | main(argc, argv)
60   int  argc;
61   char  *argv[];
62   {
62        int  ncolors = 0;
63          int  bitsperpix;
64          int  i;
65   #ifdef MSDOS
# Line 228 | Line 228 | int  x, y;
228  
229          getrow(y);
230          if (greyscale)
231 <                return(normbright(scanln[x]));
231 >                return((normbright(scanln[x])*ncolors)>>8);
232          if (pixscan != NULL)
233                  return(pixscan[x]);
234          return(samplefac ? neu_map_pixel(scanln[x]) : map_pixel(scanln[x]));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines