5 |
|
* Compute pixels for glare calculation |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
+ |
|
10 |
+ |
#include <stdlib.h> |
11 |
+ |
#include <string.h> |
12 |
+ |
|
13 |
|
#include "rtprocess.h" /* Windows: must come first because of conflicts */ |
14 |
|
#include "glare.h" |
15 |
|
|
267 |
|
fprintf(stderr, "%s: sending %d samples to rtrace...\n", |
268 |
|
progname, np); |
269 |
|
#endif |
270 |
< |
bzero(pb+6*np, 6*sizeof(float)); |
270 |
> |
memset(pb+6*np, '\0', 6*sizeof(float)); |
271 |
|
if (process(&rt_pd, (char *)pb, (char *)pb, 3*sizeof(float)*(np+1), |
272 |
|
6*sizeof(float)*(np+1)) < 3*sizeof(float)*(np+1)) { |
273 |
|
fprintf(stderr, "%s: rtrace communication error\n", |
416 |
|
hashtab[i] = NULL; |
417 |
|
/* allocate scanline buffers */ |
418 |
|
scansize = sizeof(SCAN) + pxsiz*sizeof(COLR); |
419 |
< |
#ifdef ALIGN |
420 |
< |
scansize = scansize+(sizeof(ALIGN)-1) & ~(sizeof(ALIGN)-1); |
419 |
> |
#ifdef ALIGNT |
420 |
> |
scansize = scansize+(sizeof(ALIGNT)-1) & ~(sizeof(ALIGNT)-1); |
421 |
|
#endif |
422 |
|
i = MAXSBUF / scansize; /* compute number to allocate */ |
423 |
|
if (i > HSIZE) |