ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pic.h
Revision: 2.3
Committed: Mon Jul 14 22:24:00 2003 UTC (21 years, 3 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 2.2: +14 -1 lines
Log Message:
Instrumented headers against multiple inclusion and for use from C++.
Moved includes in headers out of "C" scope.

File Contents

# Content
1 /* RCSid: $Id: pic.h,v 2.2 2003/02/22 02:07:27 greg Exp $ */
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;
14
15 typedef struct {
16 pixel r,g,b;
17 } rgbpixel;
18
19 #define rgb_bright(p) (int)((77L*(p)->r+151L*(p)->g+28L*(p)->b)/256)
20
21 /* image resolution */
22 extern int xmax,ymax;
23
24 #ifdef __cplusplus
25 }
26 #endif
27 #endif /* _RAD_PIC_H_ */
28