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

Comparing ray/src/px/ciq.h (file contents):
Revision 2.1 by greg, Tue Nov 12 16:05:31 1991 UTC vs.
Revision 2.4 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 1 | Line 1
1 < /* Copyright 1988 Regents of the University of California */
1 > /* RCSid: $Id$ */
2  
3 < /* SCCSid "$SunId$ LBL" */
3 > #ifndef _RAD_CIQ_H_
4 > #define _RAD_CIQ_H_
5  
6   #include <stdio.h>
7 +
8   #include "pic.h"
9  
10 < #define red(i) ((i)>>7&0xf8|4)  /* 5 bits red, 5 bits green, 5 bits blue */
11 < #define gre(i) ((i)>>2&0xf8|4)
12 < #define blu(i) ((i)<<3&0xf8|4)
10 > #ifdef __cplusplus
11 > extern "C" {
12 > #endif
13 >
14 > #define red(i) (((i)>>7&0xf8)|4)        /* 5 bits red, 5 bits green, 5 bits blue */
15 > #define gre(i) (((i)>>2&0xf8)|4)
16 > #define blu(i) (((i)<<3&0xf8)|4)
17   #define len 32768
18  
19   extern int hist[len];   /* list of frequencies or pixelvalues for coded color */
# Line 19 | Line 25 | extern int n;          /* number of colors in it */
25   #define line3alloc(xdim)        (rgbpixel *)emalloc(sizeof(rgbpixel)*xdim)
26  
27   extern char     *emalloc();
28 +
29 +
30 + #ifdef __cplusplus
31 + }
32 + #endif
33 + #endif /* _RAD_CIQ_H_ */
34 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines