--- ray/src/common/color.h 1990/12/14 16:28:20 1.8 +++ ray/src/common/color.h 1991/04/18 12:54:22 1.11 @@ -48,6 +48,8 @@ typedef float COLOR[3]; /* red, green, blue */ #define normbright(c) (int)((67L*(c)[RED]+168L*(c)[GRN]+21L*(c)[BLU])/256) #endif +#define luminance(col) (470. * bright(col)) + #define intens(col) ( (col)[0] > (col)[1] \ ? (col)[0] > (col)[2] ? (col)[0] : (col)[2] \ : (col)[1] > (col)[2] ? (col)[1] : (col)[2] ) @@ -65,6 +67,9 @@ typedef float COLOR[3]; /* red, green, blue */ #define XDECR 1 #define YDECR 2 #define YMAJOR 4 + + /* picture format identifier */ +#define COLRFMT "32-bit_rle_rgbe" /* macros for exposures */ #define EXPOSSTR "EXPOSURE="