ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pcond.h
(Generate patch)

Comparing ray/src/px/pcond.h (file contents):
Revision 3.9 by gwlarson, Thu Mar 12 15:47:33 1998 UTC vs.
Revision 3.10 by greg, Sat Feb 22 02:07:27 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
2 <
3 < /* SCCSid "$SunId$ SGI" */
4 <
1 > /* RCSid: $Id$ */
2   /*
3   * Header file for picture file conditioning.
4   */
# Line 12 | Line 9
9  
10   #include "view.h"
11  
15 #include "resolu.h"
12  
13 + #ifndef ADJ_VEIL
14 + #define ADJ_VEIL        0               /* adjust veil to preserve contrast? */
15 + #endif
16  
17   #define SWNORM          2.26            /* scotopic/photopic ratio for white */
18   #define WHTSEFFICACY    (SWNORM*WHTEFFICACY)
# Line 21 | Line 20
20   #define BotMesopic      5.62e-3         /* top of scotopic range */
21   #define TopMesopic      5.62            /* bottom of photopic range */
22  
23 < #define FOVDIA          (1.0*PI/180.)   /* foveal diameter (radians) */
23 > #define FOVDIA          (1.0*PI/180.0)  /* foveal diameter (radians) */
24  
25   #define HISTRES         100             /* histogram resolution */
26   #define MAXPREHIST      1024            /* maximum precomputed histogram */
# Line 66 | Line 65 | extern double  inpexp;                 /* input exposure value */
65   #define ldmin           (ldmax/lddyn)
66  
67   extern COLOR    *fovimg;                /* foveal (1 degree) averaged image */
68 < extern short    fvxr, fvyr;             /* foveal image resolution */
68 > extern int      fvxr, fvyr;             /* foveal image resolution */
69 > extern float    *crfimg;                /* contrast reduction factors */
70  
71   #define fovscan(y)      (fovimg+(y)*fvxr)
72 + #define crfscan(y)      (crfimg+(y)*fvxr)
73  
74   extern double   fixfrac;                /* histogram share due to fixations */
75   extern short    (*fixlst)[2];           /* fixation history list */
76   extern int      nfixations;             /* number of fixation points */
77  
78 < extern float    bwhist[HISTRES];        /* luminance histogram */
78 > extern double   bwhist[HISTRES];        /* luminance histogram */
79   extern double   histot;                 /* total count of histogram */
80   extern double   bwmin, bwmax;           /* histogram limits */
81   extern double   bwavg;                  /* mean brightness */
# Line 97 | Line 98 | extern char    *cwarpfile;             /* color warp mapping file */
98  
99   extern double   hacuity();              /* human acuity func. (cycles/deg.) */
100   extern double   htcontrs();             /* human contrast sens. func. */
101 + extern double   clampf();               /* histogram clamping function */
102 + extern double   crfactor();             /* contrast reduction factor */
103  
104   extern COLOR    *firstscan();           /* first processed scanline */
105   extern COLOR    *nextscan();            /* next processed scanline */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines