ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/ciq.h
Revision: 1.1
Committed: Thu Feb 2 10:48:58 1989 UTC (35 years, 3 months ago) by greg
Content type: text/plain
Branch: MAIN
Log Message:
Initial revision

File Contents

# User Rev Content
1 greg 1.1 #include <stdio.h>
2    
3     /* SCCSid "$SunId$ LBL" */
4     #include "pic.h"
5    
6     #define red(i) ((i)>>7&0xf8|4) /* 5 bits red, 5 bits green, 5 bits blue */
7     #define gre(i) ((i)>>2&0xf8|4)
8     #define blu(i) ((i)<<3&0xf8|4)
9     #define len 32768
10    
11     extern int hist[len]; /* list of frequencies or pixelvalues for coded color */
12    
13     extern colormap color; /* quantization colormap */
14     extern int n; /* number of colors in it */
15    
16     #define linealloc(xdim) (pixel *)emalloc(sizeof(pixel)*xdim)
17     #define line3alloc(xdim) (rgbpixel *)emalloc(sizeof(rgbpixel)*xdim)
18    
19     extern char *emalloc();