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

Comparing ray/src/px/pic.h (file contents):
Revision 2.2 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.4 by schorsch, Sun Mar 28 20:33:14 2004 UTC

# Line 1 | Line 1
1   /* RCSid: $Id$ */
2   /* the following three structures are used by ciq */
3  
4 + #ifndef _RAD_PIC_H_
5 + #define _RAD_PIC_H_
6 +
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10 +
11   typedef int colormap[3][256];
12  
13   typedef unsigned char pixel;
# Line 13 | Line 20 | typedef struct {
20  
21   /* image resolution */
22   extern int      xmax,ymax;
23 +
24 +        /* defined in closest.c */
25 + extern void initializeclosest(void);
26 + extern int closest(int r, int g, int b);
27 +
28 +        /* defined in cut.c */
29 + extern int makecm(int nw, int *na);
30 +
31 +        /* defined in ciq.c */
32 + extern void ciq(int dith, int nw, int synth, colormap cm);
33 +
34 +        /* defined in biq.c */
35 + extern void biq(int dith, int nw, int synth, colormap cm);
36 +
37 +        /* defined in in the calling program */
38 + extern void picreadcm(colormap  map);
39 + extern void picwritecm(colormap  cm);
40 + extern void picwriteline(int  y, pixel  *l);
41 + extern void picreadline3(int  y, rgbpixel  *l3);
42 +
43 +
44 + #ifdef __cplusplus
45 + }
46 + #endif
47 + #endif /* _RAD_PIC_H_ */
48 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines