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

Comparing ray/src/px/pcomb.c (file contents):
Revision 2.10 by greg, Thu Apr 29 14:32:07 1993 UTC vs.
Revision 2.14 by greg, Sun Feb 27 10:16:52 1994 UTC

# Line 21 | Line 21 | static char SCCSid[] = "$SunId$ LBL";
21   #include "view.h"
22  
23   #define MAXINP          32              /* maximum number of input files */
24 < #define WINSIZ          9               /* scanline window size */
25 < #define MIDSCN          4               /* current scan position */
24 > #define WINSIZ          17              /* scanline window size */
25 > #define MIDSCN          ((WINSIZ-1)/2+1)
26  
27   struct {
28          char    *name;          /* file or command name */
# Line 106 | Line 106 | char   *argv[];
106                          }
107                  break;
108          }
109 +        newheader("RADIANCE", stdout);  /* start header */
110                                          /* process files */
111          for (nfiles = 0; nfiles < MAXINP; nfiles++) {
112                  setcolor(input[nfiles].coef, 1.0, 1.0, 1.0);
# Line 224 | Line 225 | char   *s;
225          double  d;
226          COLOR   ctmp;
227  
228 <        if (isformat(s)) {                      /* check format */
229 <                formatval(fmt, s);
228 >        if (isheadid(s))                        /* header id */
229 >                return;         /* don't echo */
230 >        if (formatval(fmt, s)) {                /* check format */
231                  wrongformat = strcmp(fmt, COLRFMT);
232                  return;         /* don't echo */
233          }
# Line 484 | Line 486 | register char  *nam;
486                  lorg[fn][0] = lorg[fn][1] = lorg[fn][2] = 0.0;
487                  ldir[fn][0] = ldir[fn][1] = ldir[fn][2] = 0.0;
488                  if (input[fn].vw.type == 0)
489 <                        errno = ERANGE;
489 >                        errno = EDOM;
490                  else {
491 <                        pix2loc(loc, &input[fn].rs, xpos, ypos);
491 >                        pix2loc(loc, &input[fn].rs, xscan, ymax-1-yscan);
492                          if (viewray(lorg[fn], ldir[fn],
493                                          &input[fn].vw, loc[0], loc[1]) < 0)
494                                  errno = ERANGE;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines