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 1.1 by greg, Wed Oct 23 09:26:35 1991 UTC vs.
Revision 2.1 by greg, Tue Nov 12 16:05:39 1991 UTC

# Line 1 | Line 1
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ AU";
2 > static char SCCSid[] = "$SunId$ LBL";
3   #endif
4 +
5   /*
6      rad2pict - Convert an Radiance image to APPLE pict format.
7          
# Line 8 | Line 9 | static char SCCSid[] = "$SunId$ AU";
9      Auckland, New Zealand
10   */
11   #include <stdio.h>
11 #include <stdlib.h>
12   #include "pict.h"
13   #include "color.h"
14 + #include "resolu.h"
15  
16 + extern char  *malloc();
17 +
18   char cbuf[8192*5];
19   char pbuf[8192];
20   int outbytes;
21   FILE *outf, *inf;
22   char **gargv;
23  
21 putpic(int, int);
22
24   putrect(xorg,yorg,xsize,ysize)
25   int xorg, yorg, xsize, ysize;
26   {
# Line 104 | Line 105 | char **argv;
105      }
106  
107      if (checkheader(inf, COLRFMT, NULL) < 0 ||
108 <            fgetresolu(&xsize, &ysize, inf) != (YMAJOR|YDECR)) {
108 >            fgetresolu(&xsize, &ysize, inf) < 0) {
109          fprintf(stderr, "%s: not a radiance picture\n", argv[1]);
110          exit(1);
111      }
# Line 193 | Line 194 | int ysize;
194          putbyte(0);
195   }
196  
197 < int getrow(FILE *in, char *mybuff, int xsize)
197 > int
198 > getrow(in, mybuff, xsize)
199 > FILE  *in;
200 > char  *mybuff;
201 > int  xsize;
202   {
203      COLOR    color;
204      COLR    *scanin = (COLR*) malloc(xsize * sizeof(COLR));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines