Revision: | 1.2 |
Committed: | Thu Feb 2 14:10:28 1989 UTC (36 years, 3 months ago) by greg |
Content type: | text/plain |
Branch: | MAIN |
Changes since 1.1: | +3 -1 lines |
Log Message: | Fixed SCCSid |
# | Content |
---|---|
1 | /* Copyright 1988 Regents of the University of California */ |
2 | |
3 | /* SCCSid "$SunId$ LBL" */ |
4 | |
5 | /* the following three structures are used by ciq */ |
6 | |
7 | typedef int colormap[3][256]; |
8 | |
9 | typedef unsigned char pixel; |
10 | |
11 | typedef struct { |
12 | pixel r,g,b; |
13 | } rgbpixel; |
14 | |
15 | #define rgb_bright(p) (int)((77L*(p)->r+151L*(p)->g+28L*(p)->b)/256) |
16 | |
17 | /* image resolution */ |
18 | extern int xmax,ymax; |