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.10 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 3.12 by schorsch, Sun Mar 28 20:33:14 2004 UTC

# Line 2 | Line 2
2   /*
3   * Header file for picture file conditioning.
4   */
5 + #ifndef _RAD_PCOND_H_
6 + #define _RAD_PCOND_H_
7  
8   #include "standard.h"
7
9   #include "color.h"
9
10   #include "view.h"
11  
12 + #ifdef __cplusplus
13 + extern "C" {
14 + #endif
15  
16   #ifndef ADJ_VEIL
17   #define ADJ_VEIL        0               /* adjust veil to preserve contrast? */
# Line 55 | Line 58 | extern char    *progname;              /* global argv[0] */
58  
59   extern char     *infn;                  /* input file name */
60   extern FILE     *infp;                  /* input stream */
58 extern double   rgblum(), cielum();     /* luminance functions */
61   extern double   (*lumf)();              /* input luminance function */
62   extern double   inpexp;                 /* input exposure value */
63  
# Line 96 | Line 98 | extern RESOLU  inpres;                 /* input picture resolution */
98   extern char     *mbcalfile;             /* macbethcal mapping file */
99   extern char     *cwarpfile;             /* color warp mapping file */
100  
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 */
101  
102 < extern COLOR    *firstscan();           /* first processed scanline */
103 < extern COLOR    *nextscan();            /* next processed scanline */
102 >
103 >        /* defined in pcond.c */
104 > extern void syserror(char *s);
105 >
106 >        /* defined in pcond2.c */
107 > extern double rgblum(COLOR clr, int scotopic);  /* compute (scotopic) luminance of RGB color */
108 > extern double cielum(COLOR xyz, int scotopic);  /* compute (scotopic) luminance of CIE color */
109 > extern COLOR    *nextscan(void);                /* next processed scanline */
110 > extern COLOR    *firstscan(void);               /* first processed scanline */
111 >
112 >        /* defined in pcond3.c */
113 > extern void getfixations(FILE *fp);     /* load fixation history list */
114 > extern void gethisto(FILE *fp);         /* load precomputed luminance histogram */
115 > extern void comphist(void);             /* create foveal sampling histogram */
116 > extern double htcontrs(double La);      /* human contrast sens. func. */
117 > extern double clampf(double La);        /* histogram clamping function */
118 > extern double crfactor(double La);      /* contrast reduction factor */
119 > extern int mkbrmap(void);               /* make dynamic range map */
120 > extern void putmapping(FILE     *fp);   /* put out mapping function */
121 > extern void scotscan(COLOR *scan, int xres);    /* apply scotopic color sensitivity loss */
122 > extern void mapscan(COLOR *scan, int xres);     /* apply tone mapping operator to scanline */
123 >
124 >        /* defined in pcond4.c */
125 > extern void compveil(void);             /* compute veiling image */
126 > #if ADJ_VEIL
127 > extern void adjveil(void);              /* adjust veil image */
128 > #endif
129 > extern void acuscan(COLOR *scln, int y);        /* get acuity-sampled scanline */
130 > extern void addveil(COLOR *sl, int y);          /* add veil to scanline */
131 > extern void initacuity(void);   /* initialize variable acuity sampling */
132 > extern double hacuity(double La);       /* human acuity func. (cycles/deg.) */
133 >
134 > #ifdef __cplusplus
135 > }
136 > #endif
137 > #endif /* _RAD_PCOND_H_ */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines