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

Comparing ray/src/px/pmblur2.c (file contents):
Revision 2.5 by greg, Sat Oct 13 05:18:18 2012 UTC vs.
Revision 2.8 by greg, Tue Jun 3 21:31:51 2025 UTC

# Line 38 | Line 38 | double         exprev;         /* previous image exposure */
38   VIEW            vwprev = STDVIEW;       /* previous view */
39   int             fnprev;         /* frame number for previous view */
40  
41 char            *progname;      /* global argv[0] */
42
41   typedef struct {
42          VIEW    *vp;            /* view pointer */
43          int     gotview;        /* got view parameters? */
# Line 52 | Line 50 | static int
50   headline(char *s, void *p)
51   {
52          IMGHEAD *ip = (IMGHEAD *)p;
53 <        char    fmt[32];
53 >        char    fmt[MAXFMTLEN];
54  
55          if (isview(s)) {
56                  ip->gotview += (sscanview(ip->vp, s) > 0);
# Line 132 | Line 130 | loadprev(int fno)
130                          goto readerr;
131          fclose(fp);
132          sprintf(fname, zbfspec, fno);   /* load depth buffer */
133 <        if ((fd = open(fname, O_RDONLY)) < 0) {
133 >        if ((fd = open_float_depth(fname, (long)rs.xr*rs.yr)) < 0) {
134                  sprintf(errmsg, "cannot open depth buffer \"%s\"", fname);
135                  error(SYSTEM, errmsg);
136          }
# Line 391 | Line 389 | main(int argc, char *argv[])
389   {
390          double  fstart, fend, fstep, fcur;
391  
392 <        progname = argv[0];
392 >        fixargv0(argv[0]);      /* sets global progname */
393          SET_DEFAULT_BINARY();
394          if (argc != 5)
395                  goto userr;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines