#include <stdio.h>#include <stdlib.h>#include <tiffio.h>#include <assert.h>#include <ImfInputFile.h>#include <ImfChannelList.h>#include <ImfFrameBuffer.h>#include <half.h>#include <algorithm>Go to the source code of this file.
Defines | |
| #define | ARG(name, var) |
Functions | |
| static bool | ReadEXR (const char *name, float *&rgba, int &xRes, int &yRes, bool &hasAlpha) |
| static void | WriteTIFF (const char *name, float *rgba, int xRes, int yRes, bool hasAlpha) |
| static void | usage () |
| void | reinhard (float *d, int xRes, int yRes) |
| float | Lerp (float t, float a, float b) |
| void | bloom (float *rgb, int xResolution, int yResolution, float bloomRadius, float bloomWeight) |
| int | main (int argc, char *argv[]) |
| #define ARG | ( | name, | |||
| var | ) |
| void bloom | ( | float * | rgb, | |
| int | xResolution, | |||
| int | yResolution, | |||
| float | bloomRadius, | |||
| float | bloomWeight | |||
| ) |
| float Lerp | ( | float | t, | |
| float | a, | |||
| float | b | |||
| ) | [inline] |
Definition at line 67 of file exrtotiff.cpp.
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 126 of file exrtotiff.cpp.
References ARG, bloom(), ReadEXR(), reinhard(), usage(), and WriteTIFF().
| static bool ReadEXR | ( | const char * | name, | |
| float *& | rgba, | |||
| int & | xRes, | |||
| int & | yRes, | |||
| bool & | hasAlpha | |||
| ) | [static] |
Definition at line 262 of file exrtotiff.cpp.
Referenced by main().
| void reinhard | ( | float * | d, | |
| int | xRes, | |||
| int | yRes | |||
| ) |
Definition at line 40 of file exrtotiff.cpp.
Referenced by main().
| static void usage | ( | ) | [static] |
Definition at line 26 of file exrtotiff.cpp.
Referenced by main().
| void WriteTIFF | ( | const char * | name, | |
| float * | rgba, | |||
| int | xRes, | |||
| int | yRes, | |||
| bool | hasAlpha | |||
| ) | [static] |
Definition at line 218 of file exrtotiff.cpp.
Referenced by main().
1.6.3