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

Comparing ray/src/px/pfilt.c (file contents):
Revision 1.11 by greg, Tue Oct 16 13:52:44 1990 UTC vs.
Revision 1.12 by greg, Wed Nov 28 11:13:23 1990 UTC

# Line 46 | Line 46 | char  *tfname = NULL;
46  
47   int  xres, yres;                /* resolution of input */
48   double  inpaspect = 1.0;        /* pixel aspect ratio of input */
49 + int  correctaspect = 0;         /* aspect ratio correction? */
50  
51   int  xrad;                      /* x window size */
52   int  yrad;                      /* y window size */
# Line 103 | Line 104 | char  **argv;
104                                  } else
105                                          nrows = atoi(argv[i]);
106                                  break;
107 +                        case 'c':
108 +                                correctaspect = !correctaspect;
109 +                                break;
110                          case 'p':
111                                  i++;
112                                  outaspect = atof(argv[i]);
# Line 368 | Line 372 | scan2init()                    /* prepare scanline arrays */
372                  quit(1);
373          }
374                                          /* record pixel aspect and exposure */
375 <        d = x_c / y_r;
376 <        if (d < .99 || d > 1.01)
377 <                fputaspect(d, stdout);
375 >        if (!correctaspect) {
376 >                d = x_c / y_r;
377 >                if (d < .99 || d > 1.01)
378 >                        fputaspect(d, stdout);
379 >        }
380          d = bright(exposure);
381          if (d < .995 || d > 1.005)
382                  fputexpos(d, stdout);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines