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.4 by greg, Fri Apr 18 13:59:48 1997 UTC vs.
Revision 3.5 by greg, Mon Apr 21 15:23:42 1997 UTC

# Line 222 | Line 222 | tmLoadPicture(TMbright **lpp, BYTE **cpp, int *xp, int
222                  char *fname, FILE *fp);
223   /*
224          Load Radiance picture and convert to tone mapping representation.
225 +        Memory for the luminance and chroma arrays is allocated using
226 +        malloc(3), and should be freed with free(3) when no longer needed.
227          Calls tmSetSpace() to calibrate input color space.
228  
229          lpp     -       returned array of encoded luminances, English ordering.
# Line 243 | Line 245 | tmMapPicture(BYTE **psp, int *xp, int *yp, int flags,
245          If fp is TM_GETFILE and (flags&TM_F_UNIMPL)!=0, tmMapPicture()
246          calls pcond to perform the actual conversion, which takes
247          longer but gives access to all the TM_F_* features.
248 +        Memory for the final pixel array is allocated using malloc(3),
249 +        and should be freed with free(3) when it is no longer needed.
250  
251          psp     -       returned array of tone mapped pixels, English ordering.
252          xp, yp  -       returned picture dimensions.
# Line 316 | Line 320 | tmDone(struct tmStruct *tms);
320          pixel values to chroma and luminance encodings, which can
321          be passed to tmAddHisto() to put into the tone mapping histogram.
322          This histogram is then used along with the display parameters
323 <        by tmComputMapping() to compute the luminance mapping function.
323 >        by tmComputeMapping() to compute the luminance mapping function.
324          (Colors are tone-mapped as they are converted if TM_F_MESOPIC
325          is set.)  The encoded chroma and luminance values may then be
326          passed to tmMapPixels() to apply the computed tone mapping in

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines