TuttleOFX
1
|
#include <ReaderPlugin.hpp>
Public Member Functions | |
ReaderPlugin (OfxImageEffectHandle handle) | |
virtual | ~ReaderPlugin ()=0 |
virtual void | changedParam (const OFX::InstanceChangedArgs &args, const std::string ¶mName) |
called when a param has just had its value changed | |
virtual bool | getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod)=0 |
The get RoD action. | |
virtual void | getClipPreferences (OFX::ClipPreferencesSetter &clipPreferences) |
get the clip preferences | |
virtual bool | getTimeDomain (OfxRangeD &range) |
what is the time domain of this effect, valid only in the general context | |
virtual void | render (const OFX::RenderArguments &args) |
client render function, this is one of the few that must be overridden | |
std::string | getAbsoluteFilenameAt (const OfxTime time) const |
std::string | getAbsoluteFirstFilename () const |
OfxTime | getFirstTime () const |
OfxTime | getLastTime () const |
EParamReaderBitDepth | getExplicitBitDepthConversion () const |
EParamReaderChannel | getExplicitChannelConversion () const |
OFX::EBitDepth | getOfxExplicitConversion () const |
Data Fields | |
OFX::Clip * | _clipDst |
user parameters | |
OFX::StringParam * | _paramFilepath |
File path. | |
OFX::ChoiceParam * | _paramBitDepth |
Explicit bit depth conversion. | |
OFX::ChoiceParam * | _paramChannel |
Protected Member Functions | |
virtual bool | varyOnTime () const |
Private Attributes | |
bool | _isSequence |
sequenceParser::Sequence | _filePattern |
Filename pattern manager. |
Definition at line 16 of file ReaderPlugin.hpp.
tuttle::plugin::ReaderPlugin::ReaderPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 8 of file ReaderPlugin.cpp.
References _clipDst, _filePattern, _isSequence, _paramBitDepth, _paramChannel, _paramFilepath, OFX::ParamSet::fetchChoiceParam(), OFX::ImageEffect::fetchClip(), OFX::ParamSet::fetchStringParam(), OFX::StringParam::getValue(), sequenceParser::Sequence::initFromDetection(), kOfxImageEffectOutputClipName, tuttle::plugin::kTuttlePluginBitDepth, tuttle::plugin::kTuttlePluginChannel, and tuttle::plugin::kTuttlePluginFilename.
tuttle::plugin::ReaderPlugin::~ReaderPlugin | ( | ) | [pure virtual] |
Definition at line 18 of file ReaderPlugin.cpp.
void tuttle::plugin::ReaderPlugin::changedParam | ( | const OFX::InstanceChangedArgs & | args, |
const std::string & | paramName | ||
) | [virtual] |
called when a param has just had its value changed
Reimplemented from OFX::ImageEffect.
Reimplemented in tuttle::plugin::raw::reader::RawReaderPlugin, tuttle::plugin::av::reader::AVReaderPlugin, tuttle::plugin::exr::reader::EXRReaderPlugin, tuttle::plugin::turboJpeg::reader::TurboJpegReaderPlugin, tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin, tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin, tuttle::plugin::jpeg::reader::JpegReaderPlugin, tuttle::plugin::png::reader::PngReaderPlugin, tuttle::plugin::dpx::reader::DPXReaderPlugin, and tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin.
Definition at line 21 of file ReaderPlugin.cpp.
References _filePattern, _isSequence, _paramFilepath, OFX::StringParam::getValue(), sequenceParser::Sequence::initFromDetection(), and tuttle::plugin::kTuttlePluginFilename.
std::string tuttle::plugin::ReaderPlugin::getAbsoluteFilenameAt | ( | const OfxTime | time | ) | const [inline] |
Definition at line 31 of file ReaderPlugin.hpp.
References _filePattern, _isSequence, _paramFilepath, sequenceParser::Sequence::getAbsoluteFilenameAt(), and OFX::StringParam::getValue().
Referenced by tuttle::plugin::dpx::reader::DPXReaderPlugin::changedParam(), tuttle::plugin::dpx::reader::DPXReaderPlugin::getProcessParams(), tuttle::plugin::jpeg::reader::JpegReaderPlugin::getProcessParams(), tuttle::plugin::png::reader::PngReaderPlugin::getProcessParams(), tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::getProcessParams(), tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin::getProcessParams(), tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::getProcessParams(), tuttle::plugin::turboJpeg::reader::TurboJpegReaderPlugin::getProcessParams(), tuttle::plugin::exr::reader::EXRReaderPlugin::getProcessParams(), tuttle::plugin::raw::reader::RawReaderPlugin::getProcessParams(), tuttle::plugin::dpx::reader::DPXReaderPlugin::getRegionOfDefinition(), tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin::getRegionOfDefinition(), tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::getRegionOfDefinition(), tuttle::plugin::jpeg::reader::JpegReaderPlugin::getRegionOfDefinition(), tuttle::plugin::png::reader::PngReaderPlugin::getRegionOfDefinition(), tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::getRegionOfDefinition(), tuttle::plugin::turboJpeg::reader::TurboJpegReaderPlugin::getRegionOfDefinition(), tuttle::plugin::exr::reader::EXRReaderPlugin::getRegionOfDefinition(), render(), and tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::retrieveFileInfo().
std::string tuttle::plugin::ReaderPlugin::getAbsoluteFirstFilename | ( | ) | const [inline] |
Definition at line 46 of file ReaderPlugin.hpp.
References _filePattern, _isSequence, _paramFilepath, sequenceParser::Sequence::getAbsoluteFirstFilename(), and OFX::StringParam::getValue().
Referenced by getClipPreferences(), tuttle::plugin::dpx::reader::DPXReaderPlugin::getClipPreferences(), tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin::getClipPreferences(), tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::getClipPreferences(), tuttle::plugin::png::reader::PngReaderPlugin::getClipPreferences(), and tuttle::plugin::exr::reader::EXRReaderPlugin::updateCombos().
void tuttle::plugin::ReaderPlugin::getClipPreferences | ( | OFX::ClipPreferencesSetter & | clipPreferences | ) | [virtual] |
get the clip preferences
Reimplemented from OFX::ImageEffect.
Reimplemented in tuttle::plugin::raw::reader::RawReaderPlugin, tuttle::plugin::av::reader::AVReaderPlugin, tuttle::plugin::exr::reader::EXRReaderPlugin, tuttle::plugin::turboJpeg::reader::TurboJpegReaderPlugin, tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin, tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin, tuttle::plugin::jpeg::reader::JpegReaderPlugin, tuttle::plugin::png::reader::PngReaderPlugin, tuttle::plugin::dpx::reader::DPXReaderPlugin, and tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin.
Definition at line 29 of file ReaderPlugin.cpp.
References _clipDst, OFX::eBitDepthFloat, OFX::eBitDepthUByte, OFX::eBitDepthUShort, tuttle::plugin::eParamReaderBitDepthAuto, tuttle::plugin::eParamReaderBitDepthByte, tuttle::plugin::eParamReaderBitDepthFloat, tuttle::plugin::eParamReaderBitDepthShort, tuttle::plugin::eParamReaderChannelAuto, tuttle::plugin::eParamReaderChannelGray, tuttle::plugin::eParamReaderChannelRGB, tuttle::plugin::eParamReaderChannelRGBA, OFX::ePixelComponentAlpha, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, getAbsoluteFirstFilename(), getExplicitBitDepthConversion(), getExplicitChannelConversion(), OFX::getImageEffectHostDescription(), OFX::ClipPreferencesSetter::setClipBitDepth(), OFX::ClipPreferencesSetter::setClipComponents(), OFX::ClipPreferencesSetter::setOutputFrameVarying(), OFX::ClipPreferencesSetter::setPixelAspectRatio(), and varyOnTime().
EParamReaderBitDepth tuttle::plugin::ReaderPlugin::getExplicitBitDepthConversion | ( | ) | const [inline] |
Definition at line 70 of file ReaderPlugin.hpp.
References _paramBitDepth, and OFX::ChoiceParam::getValue().
Referenced by getClipPreferences(), tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin::getClipPreferences(), tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::getClipPreferences(), tuttle::plugin::png::reader::PngReaderPlugin::getClipPreferences(), tuttle::plugin::jpeg::reader::JpegReaderPlugin::getClipPreferences(), tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::getClipPreferences(), tuttle::plugin::turboJpeg::reader::TurboJpegReaderPlugin::getClipPreferences(), tuttle::plugin::av::reader::AVReaderPlugin::getClipPreferences(), tuttle::plugin::raw::reader::RawReaderPlugin::getClipPreferences(), and getOfxExplicitConversion().
EParamReaderChannel tuttle::plugin::ReaderPlugin::getExplicitChannelConversion | ( | ) | const [inline] |
Definition at line 76 of file ReaderPlugin.hpp.
References _paramChannel, and OFX::ChoiceParam::getValue().
Referenced by getClipPreferences(), tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin::getClipPreferences(), tuttle::plugin::png::reader::PngReaderPlugin::getClipPreferences(), tuttle::plugin::jpeg::reader::JpegReaderPlugin::getClipPreferences(), tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::getClipPreferences(), tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::getClipPreferences(), tuttle::plugin::turboJpeg::reader::TurboJpegReaderPlugin::getClipPreferences(), and tuttle::plugin::exr::reader::EXRReaderPlugin::getClipPreferences().
OfxTime tuttle::plugin::ReaderPlugin::getFirstTime | ( | ) | const [inline] |
Definition at line 54 of file ReaderPlugin.hpp.
References _filePattern, _isSequence, sequenceParser::Sequence::getFirstTime(), and kOfxFlagInfiniteMin.
Referenced by tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::getClipPreferences(), tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::getProcessParams(), and getTimeDomain().
OfxTime tuttle::plugin::ReaderPlugin::getLastTime | ( | ) | const [inline] |
Definition at line 62 of file ReaderPlugin.hpp.
References _filePattern, _isSequence, sequenceParser::Sequence::getLastTime(), and kOfxFlagInfiniteMax.
Referenced by tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::getProcessParams(), and getTimeDomain().
OFX::EBitDepth tuttle::plugin::ReaderPlugin::getOfxExplicitConversion | ( | ) | const [inline] |
Definition at line 81 of file ReaderPlugin.hpp.
References OFX::eBitDepthFloat, OFX::eBitDepthNone, OFX::eBitDepthUByte, OFX::eBitDepthUShort, tuttle::plugin::eParamReaderBitDepthAuto, tuttle::plugin::eParamReaderBitDepthByte, tuttle::plugin::eParamReaderBitDepthFloat, tuttle::plugin::eParamReaderBitDepthShort, and getExplicitBitDepthConversion().
Referenced by tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::getClipPreferences().
virtual bool tuttle::plugin::ReaderPlugin::getRegionOfDefinition | ( | const OFX::RegionOfDefinitionArguments & | args, |
OfxRectD & | rod | ||
) | [pure 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.
Reimplemented from OFX::ImageEffect.
Implemented in tuttle::plugin::raw::reader::RawReaderPlugin, tuttle::plugin::av::reader::AVReaderPlugin, tuttle::plugin::exr::reader::EXRReaderPlugin, tuttle::plugin::turboJpeg::reader::TurboJpegReaderPlugin, tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin, tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin, tuttle::plugin::jpeg::reader::JpegReaderPlugin, tuttle::plugin::png::reader::PngReaderPlugin, tuttle::plugin::dpx::reader::DPXReaderPlugin, and tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin.
bool tuttle::plugin::ReaderPlugin::getTimeDomain | ( | OfxRangeD & | range | ) | [virtual] |
what is the time domain of this effect, valid only in the general context
get the time domain
return true if range was set, otherwise the default (the union of the time domain of all input clips) is used
Reimplemented from OFX::ImageEffect.
Reimplemented in tuttle::plugin::av::reader::AVReaderPlugin.
Definition at line 81 of file ReaderPlugin.cpp.
References getFirstTime(), getLastTime(), OfxRangeD::max, OfxRangeD::min, TUTTLE_INFO, and TUTTLE_TLOG.
void tuttle::plugin::ReaderPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
client render function, this is one of the few that must be overridden
Implements OFX::ImageEffect.
Reimplemented in tuttle::plugin::raw::reader::RawReaderPlugin, tuttle::plugin::av::reader::AVReaderPlugin, tuttle::plugin::exr::reader::EXRReaderPlugin, tuttle::plugin::turboJpeg::reader::TurboJpegReaderPlugin, tuttle::plugin::jpeg::reader::JpegReaderPlugin, tuttle::plugin::png::reader::PngReaderPlugin, tuttle::plugin::dpx::reader::DPXReaderPlugin, tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin, tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin, and tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin.
Definition at line 89 of file ReaderPlugin.cpp.
References getAbsoluteFilenameAt(), OFX::RenderArguments::time, and TUTTLE_LOG_INFO.
virtual bool tuttle::plugin::ReaderPlugin::varyOnTime | ( | ) | const [inline, protected, virtual] |
Definition at line 98 of file ReaderPlugin.hpp.
References _isSequence.
Referenced by getClipPreferences(), and tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::getProcessParams().
Destination image clip
Reimplemented in tuttle::plugin::av::reader::AVReaderPlugin.
Definition at line 101 of file ReaderPlugin.hpp.
Referenced by getClipPreferences(), tuttle::plugin::dpx::reader::DPXReaderPlugin::getClipPreferences(), tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin::getClipPreferences(), tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::getClipPreferences(), tuttle::plugin::png::reader::PngReaderPlugin::getClipPreferences(), tuttle::plugin::jpeg::reader::JpegReaderPlugin::getClipPreferences(), tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::getClipPreferences(), tuttle::plugin::turboJpeg::reader::TurboJpegReaderPlugin::getClipPreferences(), tuttle::plugin::exr::reader::EXRReaderPlugin::getClipPreferences(), tuttle::plugin::raw::reader::RawReaderPlugin::getClipPreferences(), tuttle::plugin::dpx::reader::DPXReaderPlugin::getRegionOfDefinition(), tuttle::plugin::openImageIO::reader::OpenImageIOReaderPlugin::getRegionOfDefinition(), tuttle::plugin::png::reader::PngReaderPlugin::getRegionOfDefinition(), tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::getRegionOfDefinition(), tuttle::plugin::jpeg::reader::JpegReaderPlugin::getRegionOfDefinition(), tuttle::plugin::turboJpeg::reader::TurboJpegReaderPlugin::getRegionOfDefinition(), tuttle::plugin::raw::reader::RawReaderPlugin::getRegionOfDefinition(), ReaderPlugin(), tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::render(), tuttle::plugin::jpeg2000::reader::Jpeg2000ReaderPlugin::render(), and tuttle::plugin::dpx::reader::DPXReaderPlugin::render().
Filename pattern manager.
Definition at line 111 of file ReaderPlugin.hpp.
Referenced by changedParam(), getAbsoluteFilenameAt(), getAbsoluteFirstFilename(), getFirstTime(), getLastTime(), and ReaderPlugin().
bool tuttle::plugin::ReaderPlugin::_isSequence [private] |
Definition at line 110 of file ReaderPlugin.hpp.
Referenced by changedParam(), getAbsoluteFilenameAt(), getAbsoluteFirstFilename(), getFirstTime(), getLastTime(), ReaderPlugin(), and varyOnTime().
Explicit bit depth conversion.
Definition at line 105 of file ReaderPlugin.hpp.
Referenced by tuttle::plugin::av::reader::AVReaderPlugin::AVReaderPlugin(), getExplicitBitDepthConversion(), and ReaderPlugin().
Explicit component conversion
Definition at line 106 of file ReaderPlugin.hpp.
Referenced by getExplicitChannelConversion(), and ReaderPlugin().
File path.
Reimplemented in tuttle::plugin::av::reader::AVReaderPlugin.
Definition at line 104 of file ReaderPlugin.hpp.
Referenced by changedParam(), getAbsoluteFilenameAt(), getAbsoluteFirstFilename(), and ReaderPlugin().