TuttleOFX
1
|
Exr reader. More...
#include <EXRReaderPlugin.hpp>
Public Member Functions | |
EXRReaderPlugin (OfxImageEffectHandle handle) | |
EXRReaderProcessParams | getProcessParams (const OfxTime time) |
void | changedParam (const OFX::InstanceChangedArgs &args, const std::string ¶mName) |
called when a param has just had its value changed | |
void | getClipPreferences (OFX::ClipPreferencesSetter &clipPreferences) |
get the clip preferences | |
bool | getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod) |
The get RoD action. | |
void | render (const OFX::RenderArguments &args) |
The overridden render function. | |
const std::vector< std::string > & | channelNames () const |
const std::vector < OFX::ChoiceParam * > & | channelChoice () const |
Protected Attributes | |
std::vector< OFX::ChoiceParam * > | _vChannelChoice |
Channel choice. | |
std::vector< std::string > | _vChannelNames |
Channel names. | |
OFX::ChoiceParam * | _outComponents |
Components list. | |
OFX::ChoiceParam * | _redComponents |
index of Red components | |
OFX::ChoiceParam * | _greenComponents |
index of Green components | |
OFX::ChoiceParam * | _blueComponents |
index of Blue components | |
OFX::ChoiceParam * | _alphaComponents |
index of Alpha components | |
OFX::ChoiceParam * | _outputData |
Output data. | |
int | _channels |
number of channels in file | |
float | _par |
pixel aspect ratio | |
Private Member Functions | |
void | updateCombos () |
Exr reader.
Definition at line 27 of file EXRReaderPlugin.hpp.
tuttle::plugin::exr::reader::EXRReaderPlugin::EXRReaderPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 23 of file EXRReaderPlugin.cpp.
References _alphaComponents, _blueComponents, _greenComponents, _outComponents, _outputData, _redComponents, _vChannelChoice, OFX::ParamSet::fetchChoiceParam(), tuttle::plugin::exr::reader::kParamOutputAlphaIs, tuttle::plugin::exr::reader::kParamOutputBlueIs, tuttle::plugin::exr::reader::kParamOutputData, tuttle::plugin::exr::reader::kParamOutputGreenIs, tuttle::plugin::exr::reader::kParamOutputRedIs, tuttle::plugin::kTuttlePluginChannel, and updateCombos().
void tuttle::plugin::exr::reader::EXRReaderPlugin::changedParam | ( | const OFX::InstanceChangedArgs & | args, |
const std::string & | paramName | ||
) | [virtual] |
called when a param has just had its value changed
Reimplemented from tuttle::plugin::ReaderPlugin.
Definition at line 63 of file EXRReaderPlugin.cpp.
References _outComponents, _vChannelChoice, tuttle::plugin::eParamReaderChannelAuto, tuttle::plugin::eParamReaderChannelGray, tuttle::plugin::eParamReaderChannelRGB, tuttle::plugin::eParamReaderChannelRGBA, OFX::ChoiceParam::getValue(), tuttle::plugin::kTuttlePluginChannel, tuttle::plugin::kTuttlePluginFilename, and updateCombos().
const std::vector<OFX::ChoiceParam*>& tuttle::plugin::exr::reader::EXRReaderPlugin::channelChoice | ( | ) | const [inline] |
Definition at line 41 of file EXRReaderPlugin.hpp.
References _vChannelChoice.
const std::vector<std::string>& tuttle::plugin::exr::reader::EXRReaderPlugin::channelNames | ( | ) | const [inline] |
Definition at line 40 of file EXRReaderPlugin.hpp.
References _vChannelNames.
void tuttle::plugin::exr::reader::EXRReaderPlugin::getClipPreferences | ( | OFX::ClipPreferencesSetter & | clipPreferences | ) | [virtual] |
get the clip preferences
Reimplemented from tuttle::plugin::ReaderPlugin.
Definition at line 164 of file EXRReaderPlugin.cpp.
References _channels, tuttle::plugin::ReaderPlugin::_clipDst, _par, tuttle::plugin::eParamReaderChannelAuto, OFX::ePixelComponentAlpha, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, tuttle::plugin::ReaderPlugin::getExplicitChannelConversion(), OFX::getImageEffectHostDescription(), OFX::ClipPreferencesSetter::setClipComponents(), and OFX::ClipPreferencesSetter::setPixelAspectRatio().
EXRReaderProcessParams tuttle::plugin::exr::reader::EXRReaderPlugin::getProcessParams | ( | const OfxTime | time | ) |
Definition at line 44 of file EXRReaderPlugin.cpp.
References tuttle::plugin::exr::reader::EXRReaderProcessParams::_alphaChannelIndex, _alphaComponents, tuttle::plugin::exr::reader::EXRReaderProcessParams::_blueChannelIndex, _blueComponents, _channels, tuttle::plugin::exr::reader::EXRReaderProcessParams::_displayWindow, tuttle::plugin::exr::reader::EXRReaderProcessParams::_fileComponents, tuttle::plugin::exr::reader::EXRReaderProcessParams::_filepath, tuttle::plugin::exr::reader::EXRReaderProcessParams::_greenChannelIndex, _greenComponents, tuttle::plugin::exr::reader::EXRReaderProcessParams::_outComponents, _outComponents, _outputData, tuttle::plugin::exr::reader::EXRReaderProcessParams::_redChannelIndex, _redComponents, tuttle::plugin::ReaderPlugin::getAbsoluteFilenameAt(), and OFX::ChoiceParam::getValue().
bool tuttle::plugin::exr::reader::EXRReaderPlugin::getRegionOfDefinition | ( | const OFX::RegionOfDefinitionArguments & | args, |
OfxRectD & | rod | ||
) | [virtual] |
The get RoD action.
If the effect wants change the rod from the default value (which is the union of RoD's of all input clips) it should set the rod argument and return true.
This is all in cannonical coordinates.
Implements tuttle::plugin::ReaderPlugin.
Definition at line 205 of file EXRReaderPlugin.cpp.
References _outputData, _par, tuttle::plugin::ReaderPlugin::getAbsoluteFilenameAt(), OFX::ChoiceParam::getValue(), OFX::RegionOfDefinitionArguments::time, OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.
void tuttle::plugin::exr::reader::EXRReaderPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Reimplemented from tuttle::plugin::ReaderPlugin.
Definition at line 234 of file EXRReaderPlugin.cpp.
void tuttle::plugin::exr::reader::EXRReaderPlugin::updateCombos | ( | ) | [private] |
Definition at line 109 of file EXRReaderPlugin.cpp.
References _channels, _par, _vChannelChoice, _vChannelNames, and tuttle::plugin::ReaderPlugin::getAbsoluteFirstFilename().
Referenced by changedParam(), and EXRReaderPlugin().
index of Alpha components
Definition at line 53 of file EXRReaderPlugin.hpp.
Referenced by EXRReaderPlugin(), and getProcessParams().
index of Blue components
Definition at line 52 of file EXRReaderPlugin.hpp.
Referenced by EXRReaderPlugin(), and getProcessParams().
int tuttle::plugin::exr::reader::EXRReaderPlugin::_channels [protected] |
number of channels in file
Definition at line 55 of file EXRReaderPlugin.hpp.
Referenced by getClipPreferences(), getProcessParams(), and updateCombos().
index of Green components
Definition at line 51 of file EXRReaderPlugin.hpp.
Referenced by EXRReaderPlugin(), and getProcessParams().
Components list.
Definition at line 49 of file EXRReaderPlugin.hpp.
Referenced by changedParam(), EXRReaderPlugin(), and getProcessParams().
Output data.
Definition at line 54 of file EXRReaderPlugin.hpp.
Referenced by EXRReaderPlugin(), getProcessParams(), and getRegionOfDefinition().
float tuttle::plugin::exr::reader::EXRReaderPlugin::_par [protected] |
pixel aspect ratio
Definition at line 56 of file EXRReaderPlugin.hpp.
Referenced by getClipPreferences(), getRegionOfDefinition(), and updateCombos().
index of Red components
Definition at line 50 of file EXRReaderPlugin.hpp.
Referenced by EXRReaderPlugin(), and getProcessParams().
std::vector<OFX::ChoiceParam*> tuttle::plugin::exr::reader::EXRReaderPlugin::_vChannelChoice [protected] |
Channel choice.
Definition at line 47 of file EXRReaderPlugin.hpp.
Referenced by changedParam(), channelChoice(), EXRReaderPlugin(), and updateCombos().
std::vector<std::string> tuttle::plugin::exr::reader::EXRReaderPlugin::_vChannelNames [protected] |
Channel names.
Definition at line 48 of file EXRReaderPlugin.hpp.
Referenced by channelNames(), and updateCombos().