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

Comparing ray/src/px/ra_ps.c (file contents):
Revision 2.18 by gregl, Thu Sep 18 18:01:24 1997 UTC vs.
Revision 2.19 by gregl, Tue Sep 23 16:52:23 1997 UTC

# Line 162 | Line 162 | char  *argv[];
162                  quiterr("bad picture format");
163                                  /* gamma compression */
164          if (putprim == Cputprim)
165 <                setcolrgam(CODE6GAM/devgam);
165 >                setcolrgam(CODE6GAM);
166          else if (devgam != 1.)
167 <                setcolrgam(1./devgam);
167 >                setcolrgam(devgam);
168                                  /* write header */
169          PSheader(i <= argc-1 ? argv[i] : "<stdin>");
170                                  /* convert file */
# Line 223 | Line 223 | parsepaper(ps)         /* determine paper size from name */
223   char    *ps;
224   {
225          static struct psize {char n[12]; float w,h;} p[] = {
226 +                "envelope", 4.12, 9.5,
227 +                "executive", 7.25, 10.5,
228                  "letter", 8.5, 11.,
229 +                "lettersmall", 7.68, 10.16,
230                  "legal", 8.5, 14.,
228                "executive", 7.25, 10.5,
229                "envelope", 4.12, 9.5,
231                  "monarch", 3.87, 7.5,
232 +                "statement", 5.5, 8.5,
233                  "tabloid", 11., 17.,
234                  "A3", 11.69, 16.54,
235                  "A4", 8.27, 11.69,
236 +                "A4small", 7.47, 10.85,
237                  "A5", 6.00, 8.27,
238                  "A6", 4.13, 6.00,
239                  "B4", 10.12, 14.33,
240                  "B5", 7.17, 10.12,
238                "DL", 4.33, 8.66,
241                  "C5", 6.38, 9.01,
242                  "C6", 4.49, 6.38,
243 +                "DL", 4.33, 8.66,
244                  "hagaki", 3.94, 5.83,
245                  "" };
246          register struct psize   *pp;
# Line 266 | Line 269 | char   *ps;
269          fprintf(stderr, "_Name________Width_Height_(inches)\n");
270          for (pp = p; pp->n[0]; pp++)
271                  fprintf(stderr, "%-11s  %5.2f  %5.2f\n", pp->n, pp->w, pp->h);
272 +        fprintf(stderr, "Or use WWxHH size specification\n");
273          exit(1);
274   }
275  
# Line 389 | Line 393 | char  *nam;
393          for (i = 0; i < 128; i++)       /* clear */
394                  itab[i] = -1;
395          for (i = 1; i < 63; i++)        /* assign greys */
396 <                itab[code[i]] = 256.0*pow((i+.5)/64.0, CODE6GAM);
396 >                itab[code[i]] = 256.0*pow((i+.5)/64.0, CODE6GAM/devgam);
397          itab[code[0]] = 0;              /* black is black */
398          itab[code[63]] = 255;           /* and white is white */
399          printf("/codetab [");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines