| 5 |
|
* Tone map SGILOG TIFF or Radiance picture and output 24-bit RGB TIFF |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
– |
#include <stdio.h> |
| 8 |
|
#include <math.h> |
| 10 |
– |
#include <time.h> |
| 11 |
– |
#include <string.h> |
| 9 |
|
|
| 10 |
+ |
#include "rtio.h" |
| 11 |
|
#include "platform.h" |
| 12 |
|
#include "tiffio.h" |
| 13 |
|
#include "color.h" |
| 21 |
|
RGBPRIMP rgbp = stdprims; /* display primaries */ |
| 22 |
|
RGBPRIMS myprims; /* overriding display primaries */ |
| 23 |
|
double ldmax = 100.; /* maximum display luminance */ |
| 24 |
< |
double lddyn = 32.; /* display dynamic range */ |
| 24 |
> |
double lddyn = 100.; /* display dynamic range */ |
| 25 |
|
double gamv = 2.2; /* display gamma value */ |
| 26 |
|
|
| 27 |
|
short ortab[8] = { /* orientation conversion table */ |