ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pic.h
Revision: 1.2
Committed: Thu Feb 2 14:10:28 1989 UTC (35 years, 3 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.1: +3 -1 lines
Log Message:
Fixed SCCSid

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;