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

Comparing ray/src/util/rpiece.c (file contents):
Revision 2.59 by greg, Wed Jan 12 21:07:39 2022 UTC vs.
Revision 2.63 by greg, Wed Jul 3 17:06:57 2024 UTC

# Line 155 | Line 155 | main(
155                                          ++i;
156                                          continue;
157                                  }
158 +                                if (argv[i][2] == 'X') {
159 +                                        fprintf(stderr, "%s: -pXYZ unsupported\n",
160 +                                                argv[0]);
161 +                                        ++i;
162 +                                        continue;
163 +                                }
164 +                                if (argv[i][2] == 'c') {
165 +                                        fprintf(stderr, "%s: -pc unsupported\n",
166 +                                                argv[0]);
167 +                                        i += 9;
168 +                                        continue;
169 +                                }
170                                  if (argv[i][2] != 'a' || argv[i][3])
171                                          break;
172                                  pixaspect = atof(argv[++i]);
# Line 286 | Line 298 | init(                  /* set up output file and start rpict */
298          sprintf(vrbuf, "%d", vres);
299          rpargv[rpargc++] = "-y"; rpargv[rpargc++] = vrbuf;
300          rpargv[rpargc++] = "-pa"; rpargv[rpargc++] = "0";
301 +        rpargv[rpargc++] = "-pm"; rpargv[rpargc++] = "0";
302          rpargv[rpargc++] = av[ac-1];
303          rpargv[rpargc] = NULL;
304                                          /* open output file */
# Line 302 | Line 315 | init(                  /* set up output file and start rpict */
315                  fputnow(fp);
316                  if (pixaspect < .99 || pixaspect > 1.01)
317                          fputaspect(pixaspect, fp);
318 +                fputprims(stdprims, fp);
319                  fputformat(COLRFMT, fp);
320                  fputc('\n', fp);
321                  fprtresolu(hres*hmult, vres*vmult, fp);
# Line 553 | Line 567 | int    ypos
567          if (lseek(outfd, (off_t)fls.l_start, SEEK_SET) < 0)
568                  filerr("seek");
569          if (hmult == 1) {
570 <                if (writebuf(outfd, (char *)pbuf,
570 >                if (writebuf(outfd, pbuf,
571                                  vr*hr*sizeof(COLR)) != vr*hr*sizeof(COLR))
572                          filerr("write");
573          } else
574                  for (y = 0; y < vr; y++) {
575 <                        if (writebuf(outfd, (char *)(pbuf+y*hr),
575 >                        if (writebuf(outfd, pbuf+y*hr,
576                                          hr*sizeof(COLR)) != hr*sizeof(COLR))
577                                  filerr("write");
578                          if (y < vr-1 && lseek(outfd,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines