exrtotiff.cpp File Reference

#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 Documentation

#define ARG ( name,
var   ) 
Value:
else if (!strcmp(argv[argNum], "-" name)) { \
        if (argNum+1 == argc) \
          usage(); \
        var = atof(argv[argNum+1]); \
        ++argNum; \
      }

Referenced by main().


Function Documentation

void bloom ( float *  rgb,
int  xResolution,
int  yResolution,
float  bloomRadius,
float  bloomWeight 
)

Definition at line 71 of file exrtotiff.cpp.

References Lerp().

Referenced by main().

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

Generated on Sat Aug 28 20:00:12 2010 for pbrt by  doxygen 1.6.3