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

Comparing ray/src/px/ra_pixar.c (file contents):
Revision 1.1 by greg, Mon Jul 24 08:42:56 1989 UTC vs.
Revision 1.3 by greg, Tue Jan 16 09:11:40 1990 UTC

# Line 1 | Line 1
1 + #ifndef lint
2 + static char SCCSid[] = "$SunId$ LBL";
3 + #endif
4 +
5   /* Copyright 1989 Regents of the University of California */
6  
7   #ifndef lint
8 < static char SCCSid[] = "$SunId$ LBL";
8 > static char SCCSid[] = "@(#)ra_pixar.c 1.2 9/12/89 LBL";
9   #endif
10  
11   /* ra_pixar.c */
# Line 32 | Line 36 | static char SCCSid[] = "$SunId$ LBL";
36   #ifdef undef
37   #include "color.h"
38   #else
39 + #define                 XDECR                   1
40 + #define                 YDECR                   2
41 + #define                 YMAJOR                  4
42 +
43   #define                 RED                     0
44   #define                 GRN                     1
45   #define                 BLU                     2
# Line 162 | Line 170 | int            *h;
170        exit(1);
171     }
172     getheader(radiance_fp,NULL);
173 <   if (fscanf(radiance_fp,"-Y %d +X %d\n",h,w) != 2)
173 >   if (fgetresolu(w, h, radiance_fp) != (YMAJOR|YDECR))
174     {
175        fprintf(stderr,"bad RADIANCE format\n");
176        exit(1);
# Line 269 | Line 277 | int            y;
277   {
278     printargs(global_argc,global_argv,fp);
279     fputc('\n',fp);
280 <   fprintf(fp,"-Y %d +X %d\n",y,x);
280 >   fputresolu(YMAJOR|YDECR, x, y, fp);
281     fflush(fp);
282   }
283  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines