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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.37 by schorsch, Sun Jul 27 22:12:03 2003 UTC vs.
Revision 2.40 by schorsch, Fri Jan 2 12:47:01 2004 UTC

# Line 12 | Line 12 | static const char      RCSid[] = "$Id$";
12   #include <ctype.h>
13   #include <string.h>
14  
15 + #include "platform.h"
16   #include "standard.h"
17   #include "rtprocess.h" /* Windows: must come before color.h */
18   #include "view.h"
# Line 93 | Line 94 | int    queuesiz = 0;                   /* number of pixels pending */
94  
95   extern double   movepixel();
96  
97 + static gethfunc headline;
98  
99 +
100   main(argc, argv)                        /* interpolate pictures */
101   int     argc;
102   char    *argv[];
# Line 326 | Line 329 | userr:
329   }
330  
331  
332 < int
333 < headline(s)                             /* process header string */
334 < char    *s;
332 > static int
333 > headline(                               /* process header string */
334 >        char    *s,
335 >        void    *p
336 > )
337   {
338          char    fmt[32];
339  
# Line 491 | Line 496 | char   *pfile, *zspec;
496                          exit(1);
497                  }
498          if (zfd != -1 && lseek(zfd,
499 <                        (off_t)ylim.min*scanlen(&tresolu)*sizeof(float), 0) < 0)
499 >                        (off_t)ylim.min*scanlen(&tresolu)*sizeof(float),
500 >                        SEEK_SET) < 0)
501                  syserror(zspec);
502                                          /* load image */
503          for (y = ylim.min; y <= ylim.max; y++) {
# Line 759 | Line 765 | int    zfd;
765          for (y = step - 1; y < numscans(&tresolu); y += step) {
766                  if (zfd != -1) {
767                          if (lseek(zfd, (off_t)y*scanlen(&tresolu)*sizeof(float),
768 <                                        0) < 0)
768 >                                        SEEK_SET) < 0)
769                                  syserror("lseek");
770                          if (read(zfd, (char *)zline,
771                                          scanlen(&tresolu)*sizeof(float))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines