| 11 |
|
|
| 12 |
|
#include "copyright.h" |
| 13 |
|
|
| 14 |
+ |
#include <string.h> |
| 15 |
+ |
|
| 16 |
|
#include "ranimove.h" |
| 17 |
|
#include "random.h" |
| 18 |
|
|
| 38 |
|
printf("\tFirst refinement pass..."); |
| 39 |
|
fflush(stdout); |
| 40 |
|
} |
| 41 |
< |
bzero((void *)esamp, sizeof(int)*hres*vres); |
| 41 |
> |
memset((void *)esamp, '\0', sizeof(int)*hres*vres); |
| 42 |
|
/* |
| 43 |
|
* In our initial pass, we look for lower error pixels from |
| 44 |
|
* the same objects in the previous frame, and copy them here. |
| 296 |
|
int fx, fy; |
| 297 |
|
/* reuse previous z-buffer */ |
| 298 |
|
cerrmap = (float *)zprev; |
| 299 |
< |
bzero((void *)cerrmap, sizeof(float)*hres*vres); |
| 299 |
> |
memset((void *)cerrmap, '\0', sizeof(float)*hres*vres); |
| 300 |
|
cerrzero = 1; |
| 301 |
|
/* compute base pixel frequency */ |
| 302 |
|
pixel_deg = .5*(hres/vw.horiz + vres/vw.vert); |
| 428 |
|
int i; |
| 429 |
|
/* skip if nothing significant */ |
| 430 |
|
if (ndtset && cerrzero) |
| 431 |
< |
return; |
| 431 |
> |
return(0); |
| 432 |
|
/* initialize priority list */ |
| 433 |
|
pord = (int *)malloc(sizeof(int)*hres*vres); |
| 434 |
|
for (i = hres*vres; i--; ) |