TuttleOFX
1
|
#include <WriterPlugin.hpp>
Public Member Functions | |
WriterPlugin (OfxImageEffectHandle handle) | |
virtual | ~WriterPlugin ()=0 |
virtual void | changedParam (const OFX::InstanceChangedArgs &args, const std::string ¶mName) |
called when a param has just had its value changed | |
virtual void | getClipPreferences (OFX::ClipPreferencesSetter &clipPreferences) |
get the clip preferences | |
virtual bool | isIdentity (const OFX::RenderArguments &args, OFX::Clip *&identityClip, double &identityTime) |
client is identity function, returns the clip and time for the identity function | |
virtual void | beginSequenceRender (const OFX::BeginSequenceRenderArguments &args) |
client begin sequence render function | |
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 | getAbsoluteDirectory () const |
std::string | getAbsoluteFirstFilename () const |
OfxTime | getFirstTime () const |
OfxTime | getLastTime () const |
Data Fields | |
OFX::Clip * | _clipSrc |
Input image clip. | |
OFX::Clip * | _clipDst |
Ouput image clip. | |
OFX::PushButtonParam * | _paramRenderButton |
Render push button. | |
OFX::StringParam * | _paramFilepath |
Target file path. | |
OFX::BooleanParam * | _paramRenderAlways |
Render always. | |
OFX::ChoiceParam * | _paramBitDepth |
Bit depth. | |
OFX::IntParam * | _paramForceNewRender |
Hack parameter, to force a new rendering. | |
OFX::BooleanParam * | _paramPremult |
Protected Member Functions | |
bool | varyOnTime () const |
Private Attributes | |
bool | _isSequence |
sequenceParser::Sequence | _filePattern |
Filename pattern manager. | |
bool | _oneRender |
OfxTime | _oneRenderAtTime |
Definition at line 24 of file WriterPlugin.hpp.
tuttle::plugin::WriterPlugin::WriterPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 14 of file WriterPlugin.cpp.
References _clipDst, _clipSrc, _filePattern, _isSequence, _paramBitDepth, _paramFilepath, _paramForceNewRender, _paramPremult, _paramRenderAlways, _paramRenderButton, OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ImageEffect::fetchClip(), OFX::ParamSet::fetchIntParam(), OFX::ParamSet::fetchPushButtonParam(), OFX::ParamSet::fetchStringParam(), OFX::StringParam::getValue(), sequenceParser::Sequence::initFromDetection(), kOfxImageEffectOutputClipName, kOfxImageEffectSimpleSourceClipName, tuttle::plugin::kParamPremultiplied, tuttle::plugin::kParamWriterForceNewRender, tuttle::plugin::kParamWriterRender, tuttle::plugin::kParamWriterRenderAlways, tuttle::plugin::kTuttlePluginBitDepth, and tuttle::plugin::kTuttlePluginFilename.
tuttle::plugin::WriterPlugin::~WriterPlugin | ( | ) | [pure virtual] |
Definition at line 30 of file WriterPlugin.cpp.
void tuttle::plugin::WriterPlugin::beginSequenceRender | ( | const OFX::BeginSequenceRenderArguments & | args | ) | [virtual] |
client begin sequence render function
Reimplemented from OFX::ImageEffect.
Reimplemented in tuttle::plugin::av::writer::AVWriterPlugin.
Definition at line 75 of file WriterPlugin.cpp.
References getAbsoluteDirectory().
void tuttle::plugin::WriterPlugin::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::av::writer::AVWriterPlugin, tuttle::plugin::dpx::writer::DPXWriterPlugin, and tuttle::plugin::jpeg2000::writer::Jpeg2000WriterPlugin.
Definition at line 34 of file WriterPlugin.cpp.
References _filePattern, _isSequence, _oneRender, _oneRenderAtTime, _paramFilepath, _paramForceNewRender, OFX::IntParam::getValue(), OFX::StringParam::getValue(), sequenceParser::Sequence::initFromDetection(), tuttle::plugin::kParamWriterRender, tuttle::plugin::kTuttlePluginFilename, OFX::IntParam::setValue(), and OFX::InstanceChangedArgs::time.
std::string tuttle::plugin::WriterPlugin::getAbsoluteDirectory | ( | ) | const [inline] |
Definition at line 57 of file WriterPlugin.hpp.
References _filePattern, _isSequence, _paramFilepath, sequenceParser::FileObject::getAbsoluteDirectory(), and OFX::StringParam::getValue().
Referenced by beginSequenceRender().
std::string Sequence::getAbsoluteFilenameAt | ( | const OfxTime | time | ) | const [inline] |
Definition at line 49 of file WriterPlugin.hpp.
References _filePattern, _isSequence, _paramFilepath, sequenceParser::Sequence::getAbsoluteFilenameAt(), and OFX::StringParam::getValue().
Referenced by tuttle::plugin::imagemagick::writer::ImageMagickWriterPlugin::getProcessParams(), tuttle::plugin::png::writer::PngWriterPlugin::getProcessParams(), tuttle::plugin::jpeg::writer::JpegWriterPlugin::getProcessParams(), tuttle::plugin::jpeg2000::writer::Jpeg2000WriterPlugin::getProcessParams(), tuttle::plugin::exr::writer::EXRWriterPlugin::getProcessParams(), tuttle::plugin::turboJpeg::writer::TurboJpegWriterPlugin::getProcessParams(), tuttle::plugin::openImageIO::writer::OpenImageIOWriterPlugin::getProcessParams(), tuttle::plugin::dpx::writer::DPXWriterPlugin::getProcessParams(), render(), and tuttle::plugin::dpx::writer::DPXWriterPlugin::render().
std::string Sequence::getAbsoluteFirstFilename | ( | ) | const [inline] |
Definition at line 71 of file WriterPlugin.hpp.
References _filePattern, _isSequence, _paramFilepath, sequenceParser::Sequence::getAbsoluteFirstFilename(), and OFX::StringParam::getValue().
void tuttle::plugin::WriterPlugin::getClipPreferences | ( | OFX::ClipPreferencesSetter & | clipPreferences | ) | [virtual] |
get the clip preferences
Reimplemented from OFX::ImageEffect.
Reimplemented in tuttle::plugin::av::writer::AVWriterPlugin.
Definition at line 49 of file WriterPlugin.cpp.
References OFX::ClipPreferencesSetter::setOutputFrameVarying(), and varyOnTime().
Time Sequence::getFirstTime | ( | ) | const [inline] |
Definition at line 79 of file WriterPlugin.hpp.
References _filePattern, _isSequence, sequenceParser::Sequence::getFirstTime(), and kOfxFlagInfiniteMin.
Time Sequence::getLastTime | ( | ) | const [inline] |
Definition at line 87 of file WriterPlugin.hpp.
References _filePattern, _isSequence, sequenceParser::Sequence::getLastTime(), and kOfxFlagInfiniteMax.
bool tuttle::plugin::WriterPlugin::isIdentity | ( | const OFX::RenderArguments & | args, |
OFX::Clip *& | identityClip, | ||
double & | identityTime | ||
) | [virtual] |
client is identity function, returns the clip and time for the identity function
If the effect would do no processing for the given param set and render arguments, then this function should return true and set the identityClip pointer to point to the clip that is the identity and identityTime to be the time at which to access the clip for the identity operation.
Reimplemented from OFX::ImageEffect.
Reimplemented in tuttle::plugin::av::writer::AVWriterPlugin.
Definition at line 55 of file WriterPlugin.cpp.
References _clipSrc, _oneRender, _oneRenderAtTime, _paramRenderAlways, OFX::getImageEffectHostDescription(), OFX::BooleanParam::getValue(), and OFX::RenderArguments::time.
void tuttle::plugin::WriterPlugin::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::av::writer::AVWriterPlugin, tuttle::plugin::dpx::writer::DPXWriterPlugin, tuttle::plugin::openImageIO::writer::OpenImageIOWriterPlugin, tuttle::plugin::jpeg2000::writer::Jpeg2000WriterPlugin, tuttle::plugin::turboJpeg::writer::TurboJpegWriterPlugin, tuttle::plugin::exr::writer::EXRWriterPlugin, tuttle::plugin::png::writer::PngWriterPlugin, tuttle::plugin::imagemagick::writer::ImageMagickWriterPlugin, and tuttle::plugin::jpeg::writer::JpegWriterPlugin.
Definition at line 84 of file WriterPlugin.cpp.
References _clipDst, _clipSrc, _oneRender, OFX::Clip::fetchImage(), getAbsoluteFilenameAt(), OFX::RenderArguments::time, TUTTLE_LOG_INFO, TUTTLE_TLOG, TUTTLE_TLOG_VAR, and TUTTLE_TRACE.
bool tuttle::plugin::WriterPlugin::varyOnTime | ( | ) | const [inline, protected] |
Definition at line 39 of file WriterPlugin.hpp.
References _isSequence.
Referenced by getClipPreferences().
Ouput image clip.
Reimplemented from tuttle::plugin::ImageEffectGilPlugin.
Definition at line 99 of file WriterPlugin.hpp.
Referenced by render(), and WriterPlugin().
Input image clip.
Attributes
Reimplemented from tuttle::plugin::ImageEffectGilPlugin.
Definition at line 98 of file WriterPlugin.hpp.
Referenced by tuttle::plugin::av::writer::AVWriterPlugin::beginSequenceRender(), tuttle::plugin::dpx::writer::DPXWriterPlugin::getProcessParams(), isIdentity(), tuttle::plugin::imagemagick::writer::ImageMagickWriterPlugin::render(), render(), tuttle::plugin::dpx::writer::DPXWriterPlugin::render(), tuttle::plugin::av::writer::AVWriterPlugin::render(), and WriterPlugin().
Filename pattern manager.
Definition at line 43 of file WriterPlugin.hpp.
Referenced by changedParam(), getAbsoluteDirectory(), getAbsoluteFilenameAt(), getAbsoluteFirstFilename(), getFirstTime(), getLastTime(), and WriterPlugin().
bool tuttle::plugin::WriterPlugin::_isSequence [private] |
Definition at line 42 of file WriterPlugin.hpp.
Referenced by changedParam(), getAbsoluteDirectory(), getAbsoluteFilenameAt(), getAbsoluteFirstFilename(), getFirstTime(), getLastTime(), varyOnTime(), and WriterPlugin().
bool tuttle::plugin::WriterPlugin::_oneRender [private] |
Definition at line 45 of file WriterPlugin.hpp.
Referenced by changedParam(), isIdentity(), and render().
Definition at line 46 of file WriterPlugin.hpp.
Referenced by changedParam(), and isIdentity().
Bit depth.
Definition at line 104 of file WriterPlugin.hpp.
Referenced by tuttle::plugin::jpeg2000::writer::Jpeg2000WriterPlugin::changedParam(), tuttle::plugin::png::writer::PngWriterPlugin::getProcessParams(), tuttle::plugin::jpeg2000::writer::Jpeg2000WriterPlugin::getProcessParams(), tuttle::plugin::exr::writer::EXRWriterPlugin::getProcessParams(), tuttle::plugin::openImageIO::writer::OpenImageIOWriterPlugin::getProcessParams(), and WriterPlugin().
Target file path.
Definition at line 102 of file WriterPlugin.hpp.
Referenced by changedParam(), getAbsoluteDirectory(), getAbsoluteFilenameAt(), getAbsoluteFirstFilename(), tuttle::plugin::av::writer::AVWriterPlugin::getProcessParams(), and WriterPlugin().
Hack parameter, to force a new rendering.
Definition at line 105 of file WriterPlugin.hpp.
Referenced by changedParam(), and WriterPlugin().
Premult
Reimplemented in tuttle::plugin::turboJpeg::writer::TurboJpegWriterPlugin, and tuttle::plugin::jpeg::writer::JpegWriterPlugin.
Definition at line 106 of file WriterPlugin.hpp.
Referenced by tuttle::plugin::openImageIO::writer::OpenImageIOWriterPlugin::getProcessParams(), and WriterPlugin().
Render always.
Definition at line 103 of file WriterPlugin.hpp.
Referenced by isIdentity(), and WriterPlugin().