1 |
– |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* ra_pixar.c */ |
5 |
|
/* |
6 |
|
* convert from RADIANCE image file to PIXAR image file. (or vice versa) |
18 |
|
*/ |
19 |
|
|
20 |
|
#include <stdio.h> |
21 |
+ |
#include <string.h> |
22 |
|
#include <math.h> |
23 |
+ |
#include <time.h> |
24 |
|
|
25 |
|
/* PIXAR */ |
26 |
|
#include <picio.h> |
114 |
|
perror("malloc"); |
115 |
|
exit(1); |
116 |
|
} |
117 |
< |
bzero(pixar_scanline,width*sizeof(RGBAPixelType)); |
117 |
> |
memset(pixar_scanline, '\0', width*sizeof(RGBAPixelType)); |
118 |
|
|
119 |
|
PicSetForce(1); |
120 |
|
PicSetPsize(width,height); |