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

Comparing ray/src/px/pcond4.c (file contents):
Revision 3.17 by schorsch, Sun Mar 28 20:33:14 2004 UTC vs.
Revision 3.19 by greg, Sun Nov 14 16:57:18 2004 UTC

# Line 298 | Line 298 | typedef struct {
298  
299   SCANBAR *rootbar;               /* root scan bar (lowest resolution) */
300  
301 < float   *inpacuD;               /* input acuity data (cycles/degree) */
301 > float   *inpacuD = NULL;        /* input acuity data (cycles/degree) */
302  
303   #define tsampr(x,y)     inpacuD[(y)*fvxr+(x)]
304  
# Line 364 | Line 364 | acuscan(               /* get acuity-sampled scanline */
364          double  dx, dy;
365          int     ix, iy;
366          register int    x;
367 +        
368 +        if (inpacuD == NULL)
369 +                return;
370                                          /* compute foveal y position */
371          iy = dy = (y+.5)/numscans(&inpres)*fvyr - .5;
372          while (iy >= fvyr-1) iy--;
# Line 494 | Line 497 | initacuity(void)                       /* initialize variable acuity sampl
497          FVECT   diffx, diffy, cp;
498          double  omega, maxsr;
499          register int    x, y, i;
500 <
500 >        
501          compraydir();                   /* compute ray directions */
502  
503          inpacuD = (float *)malloc(fvxr*fvyr*sizeof(float));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines