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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.6 by greg, Tue May 26 15:23:09 1992 UTC vs.
Revision 2.9 by greg, Fri Oct 2 16:24:22 1992 UTC

# Line 12 | Line 12 | static char SCCSid[] = "$SunId$ LBL";
12  
13   #include "standard.h"
14  
15 #include <fcntl.h>
16
15   #include <ctype.h>
16  
17   #include "view.h"
# Line 199 | Line 197 | char   *argv[];
197          }
198          normaspect(viewaspect(&ourview), &pixaspect, &hresolu, &vresolu);
199                                                  /* allocate frame */
200 <        ourpict = (COLR *)malloc(hresolu*vresolu*sizeof(COLR));
201 <        ourzbuf = (float *)calloc(hresolu*vresolu,sizeof(float));
200 >        ourpict = (COLR *)bmalloc(hresolu*vresolu*sizeof(COLR));
201 >        ourzbuf = (float *)bmalloc(hresolu*vresolu*sizeof(float));
202          if (ourpict == NULL || ourzbuf == NULL)
203                  syserror();
204 +        bzero((char *)ourzbuf, hresolu*vresolu*sizeof(float));
205                                                          /* get input */
206          for ( ; i < argc; i += 2)
207                  addpicture(argv[i], argv[i+1]);
# Line 387 | Line 386 | COLR   *pline;
386   float   *zline;
387   struct position *lasty;         /* input/output */
388   {
390        extern double   sqrt();
389          FVECT   pos;
390          struct position lastx, newpos;
391          register int    x;
# Line 635 | Line 633 | writepicture()                         /* write out picture */
633   writedistance(fname)                    /* write out z file */
634   char    *fname;
635   {
638        extern double   sqrt();
636          int     donorm = normdist && ourview.type == VT_PER;
637          int     fd;
638          int     y;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines