| Revision: | 2.3 |
| Committed: | Mon Jul 14 22:24:00 2003 UTC (22 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. |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | schorsch | 2.3 | /* RCSid: $Id: pic.h,v 2.2 2003/02/22 02:07:27 greg Exp $ */ |
| 2 | greg | 1.2 | /* the following three structures are used by ciq */ |
| 3 | greg | 1.1 | |
| 4 | schorsch | 2.3 | #ifndef _RAD_PIC_H_ |
| 5 | #define _RAD_PIC_H_ | ||
| 6 | |||
| 7 | #ifdef __cplusplus | ||
| 8 | extern "C" { | ||
| 9 | #endif | ||
| 10 | |||
| 11 | greg | 1.1 | 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 | schorsch | 2.3 | |
| 24 | #ifdef __cplusplus | ||
| 25 | } | ||
| 26 | #endif | ||
| 27 | #endif /* _RAD_PIC_H_ */ | ||
| 28 |