TuttleOFX
1
|
Exr reader. More...
#include <EXRReaderProcess.hpp>
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 ¶ms, 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 ¶ms, 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. |
Exr reader.
Definition at line 24 of file EXRReaderProcess.hpp.
typedef std::vector<char, OfxAllocator<char> > tuttle::plugin::exr::reader::EXRReaderProcess< View >::DataVector [protected] |
Definition at line 28 of file EXRReaderProcess.hpp.
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.
tuttle::plugin::exr::reader::EXRReaderProcess< View >::EXRReaderProcess | ( | EXRReaderPlugin & | instance | ) |
Definition at line 43 of file EXRReaderProcess.tcc.
References tuttle::plugin::ImageProcessor::setNoMultiThreading().
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.
std::string tuttle::plugin::exr::reader::EXRReaderProcess< View >::getChannelName | ( | size_t | index | ) | [protected] |
Definition at line 338 of file EXRReaderProcess.tcc.
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.
void tuttle::plugin::exr::reader::EXRReaderProcess< View >::multiThreadProcessImages | ( | const OfxRectI & | procWindowRoW | ) | [virtual] |
Function called by rendering thread each time a process must be done.
[in] | procWindowRoW | Processing 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().
void tuttle::plugin::exr::reader::EXRReaderProcess< View >::readImage | ( | DView | dst, |
const std::string & | filepath | ||
) |
Definition at line 139 of file EXRReaderProcess.tcc.
References tuttle::plugin::eParamReaderChannelAuto, tuttle::plugin::eParamReaderChannelGray, tuttle::plugin::eParamReaderChannelRGB, and tuttle::plugin::eParamReaderChannelRGBA.
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.
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] |
Definition at line 287 of file EXRReaderProcess.tcc.
References tuttle::plugin::exr::reader::EXRReaderProcessParams::_displayWindow, tuttle::max(), tuttle::min(), terry::subimage_view(), TUTTLE_TLOG_VAR2, TUTTLE_TLOG_VAR4, and TUTTLE_WARNING.
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.
EXRReaderProcessParams tuttle::plugin::exr::reader::EXRReaderProcess< View >::_params [protected] |
Definition at line 31 of file EXRReaderProcess.hpp.
EXRReaderPlugin& tuttle::plugin::exr::reader::EXRReaderProcess< View >::_plugin [protected] |
Rendering plugin.
Definition at line 30 of file EXRReaderProcess.hpp.