ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/ciq.h
Revision: 2.2
Committed: Sat Feb 22 02:07:27 2003 UTC (21 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.1: +1 -4 lines
Log Message:
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

File Contents

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