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

Comparing ray/src/px/ttyimage.c (file contents):
Revision 2.1 by greg, Tue Nov 12 16:05:29 1991 UTC vs.
Revision 2.4 by schorsch, Thu Jun 5 19:29:34 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1991 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   *  ttyimage.c - program to dump pixel file to dumb terminal.
6   *
# Line 11 | Line 8 | static char SCCSid[] = "$SunId$ LBL";
8   */
9  
10   #include  <stdio.h>
11 + #include  <time.h>
12  
13 + #include  "platform.h"
14   #include  "color.h"
15   #include  "resolu.h"
16  
17  
18 < #define  NCOLS          133
18 > #define  NCOLS          133
19  
20  
21   main(argc, argv)
# Line 34 | Line 33 | char  **argv;
33                  fprintf(stderr, "%s: can't open file \"%s\"\n", argv[0], argv[1]);
34                  exit(1);
35          }
36 <        
36 >        SET_FILE_BINARY(input);
37                                  /* get picture dimensions */
38          if (checkheader(input, COLRFMT, NULL) < 0 ||
39                          fgetresolu(&xres, &yres, input) < 0) {
# Line 65 | Line 64 | int
64   shade(clr)                      /* return character for color */
65   COLR  clr;
66   {
67 < #define NSHADES  13
67 > #define NSHADES  13
68  
69          static char  shadech[NSHADES+1] = " .,:;+?%&*$@#";
70  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines