ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pic.h
Revision: 2.1
Committed: Tue Nov 12 16:04:13 1991 UTC (32 years, 5 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.2: +0 -0 lines
Log Message:
updated revision number for release 2.0

File Contents

# User Rev Content
1 greg 1.2 /* Copyright 1988 Regents of the University of California */
2 greg 1.1
3     /* SCCSid "$SunId$ LBL" */
4 greg 1.2
5     /* the following three structures are used by ciq */
6 greg 1.1
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;