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

Comparing ray/src/common/tonemap.h (file contents):
Revision 3.17 by greg, Fri Jan 7 20:33:02 2005 UTC vs.
Revision 3.18 by greg, Fri Jan 7 21:41:06 2005 UTC

# Line 66 | Line 66 | extern "C" {
66   #endif
67  
68   extern char     *tmErrorMessage[];      /* error messages */
69 extern int      tmLastError;            /* last error incurred by library */
70 extern char     *tmLastFunction;        /* error-generating function name */
69  
70   typedef short   TMbright;               /* encoded luminance type */
71  
# Line 86 | Line 84 | typedef struct tmStruct {
84          TMbright        mbrmin, mbrmax; /* mapped brightness limits */
85          unsigned short  *lumap;         /* computed luminance map */
86          MEM_PTR         pd[TM_MAXPKG];  /* pointers to private data */
87 +        int             lastError;      /* last error incurred */
88 +        const char      *lastFunc;      /* error-generating function name */
89   } TMstruct;
90  
91                                  /* conversion package functions */
# Line 175 | Line 175 | tmFixedMapping(TMstruct *tms, double expmult, double g
175          tms     -       tone mapping structure pointer.
176          expmult -       the fixed exposure multiplier to use.
177          gamval  -       display gamma response (0. for default).
178 +
179          returns -       0 on success, TM_E_* on error.
180   */
181  
# Line 214 | Line 215 | tmDup(TMstruct *orig);
215          Duplicate the given tone mapping into a new struct.
216  
217          orig    -       tone mapping structure to duplicate.
218 +
219          returns -       pointer to new struct, or NULL on error.
220   */
221  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines