TuttleOFX  1
tuttle::plugin::exr::reader::EXRReaderProcess< View > Class Template Reference

Exr reader. More...

#include <EXRReaderProcess.hpp>

Inheritance diagram for tuttle::plugin::exr::reader::EXRReaderProcess< View >:
Collaboration diagram for tuttle::plugin::exr::reader::EXRReaderProcess< View >:

Public Member Functions

 EXRReaderProcess (EXRReaderPlugin &instance)
void setup (const OFX::RenderArguments &args)
void multiThreadProcessImages (const OfxRectI &procWindowRoW)
 Function called by rendering thread each time a process must be done.
template<class DView >
void readImage (DView dst, const std::string &filepath)

Protected Types

typedef View::value_type Pixel
typedef std::vector< char,
OfxAllocator< char > > 
DataVector

Protected Member Functions

template<typename PixelType >
void initExrChannel (DataVector &data, Imf::Slice &slice, Imf::FrameBuffer &frameBuffer, Imf::PixelType pixelType, std::string channelID, const Imath::Box2i &dw, int w, int h)
template<class DView >
void channelCopy (Imf::InputFile &input, Imf::FrameBuffer &frameBuffer, const EXRReaderProcessParams &params, DView &dst, int w, int h, size_t nc)
template<class DView , typename workingView >
void sliceCopy (Imf::InputFile &input, const Imf::Slice *slice, DView &dst, const EXRReaderProcessParams &params, int w, int h, int n)
std::string getChannelName (size_t index)

Protected Attributes

EXRReaderPlugin_plugin
 Rendering plugin.
EXRReaderProcessParams _params
boost::scoped_ptr< Imf::InputFile > _exrImage
 Pointer to an exr image.

Detailed Description

template<class View>
class tuttle::plugin::exr::reader::EXRReaderProcess< View >

Exr reader.

Definition at line 24 of file EXRReaderProcess.hpp.


Member Typedef Documentation

template<class View>
typedef std::vector<char, OfxAllocator<char> > tuttle::plugin::exr::reader::EXRReaderProcess< View >::DataVector [protected]

Definition at line 28 of file EXRReaderProcess.hpp.

template<class View>
typedef View::value_type tuttle::plugin::exr::reader::EXRReaderProcess< View >::Pixel [protected]

Reimplemented from tuttle::plugin::ImageGilProcessor< View >.

Definition at line 27 of file EXRReaderProcess.hpp.


Constructor & Destructor Documentation

template<class View >
tuttle::plugin::exr::reader::EXRReaderProcess< View >::EXRReaderProcess ( EXRReaderPlugin instance)

Definition at line 43 of file EXRReaderProcess.tcc.

References tuttle::plugin::ImageProcessor::setNoMultiThreading().

Here is the call graph for this function:


Member Function Documentation

template<class View >
template<class DView >
void tuttle::plugin::exr::reader::EXRReaderProcess< View >::channelCopy ( Imf::InputFile &  input,
Imf::FrameBuffer &  frameBuffer,
const EXRReaderProcessParams params,
DView &  dst,
int  w,
int  h,
size_t  nc 
) [protected]

Definition at line 211 of file EXRReaderProcess.tcc.

template<class View >
std::string tuttle::plugin::exr::reader::EXRReaderProcess< View >::getChannelName ( size_t  index) [protected]

Definition at line 338 of file EXRReaderProcess.tcc.

template<class View >
template<typename PixelType >
void tuttle::plugin::exr::reader::EXRReaderProcess< View >::initExrChannel ( DataVector data,
Imf::Slice &  slice,
Imf::FrameBuffer &  frameBuffer,
Imf::PixelType  pixelType,
std::string  channelID,
const Imath::Box2i &  dw,
int  w,
int  h 
) [protected]

Definition at line 194 of file EXRReaderProcess.tcc.

template<class View >
void tuttle::plugin::exr::reader::EXRReaderProcess< View >::multiThreadProcessImages ( const OfxRectI procWindowRoW) [virtual]

Function called by rendering thread each time a process must be done.

Parameters:
[in]procWindowRoWProcessing window in RoW

Implements tuttle::plugin::ImageProcessor.

Definition at line 74 of file EXRReaderProcess.tcc.

References tuttle::plugin::viewer::img, terry::algorithm::transform_pixels(), TUTTLE_ERROR, TUTTLE_TLOG, and boost::gil::view().

Here is the call graph for this function:

template<class View >
template<class DView >
void tuttle::plugin::exr::reader::EXRReaderProcess< View >::readImage ( DView  dst,
const std::string &  filepath 
)
template<class View >
void tuttle::plugin::exr::reader::EXRReaderProcess< View >::setup ( const OFX::RenderArguments args) [virtual]

Reimplemented from tuttle::plugin::ImageGilProcessor< View >.

Definition at line 51 of file EXRReaderProcess.tcc.

References OFX::RenderArguments::time.

template<class View >
template<class DView , typename workingView >
void tuttle::plugin::exr::reader::EXRReaderProcess< View >::sliceCopy ( Imf::InputFile &  input,
const Imf::Slice *  slice,
DView &  dst,
const EXRReaderProcessParams params,
int  w,
int  h,
int  n 
) [protected]

Field Documentation

template<class View>
boost::scoped_ptr<Imf::InputFile> tuttle::plugin::exr::reader::EXRReaderProcess< View >::_exrImage [protected]

Pointer to an exr image.

Definition at line 32 of file EXRReaderProcess.hpp.

Definition at line 31 of file EXRReaderProcess.hpp.

template<class View>
EXRReaderPlugin& tuttle::plugin::exr::reader::EXRReaderProcess< View >::_plugin [protected]

Rendering plugin.

Definition at line 30 of file EXRReaderProcess.hpp.


The documentation for this class was generated from the following files: