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. |
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. |
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 |