TuttleOFX
1
|
ImageMagick reader. More...
#include <ImageMagickReaderPlugin.hpp>
Public Member Functions | |
ImageMagickReaderPlugin (OfxImageEffectHandle handle) | |
ImageMagickReaderProcessParams | getProcessParams (const OfxTime time) |
void | render (const OFX::RenderArguments &args) |
The overridden render function. | |
void | changedParam (const OFX::InstanceChangedArgs &args, const std::string ¶mName) |
called when a param has just had its value changed | |
bool | getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod) |
The get RoD action. | |
void | getClipPreferences (OFX::ClipPreferencesSetter &clipPreferences) |
get the clip preferences |
ImageMagick reader.
Definition at line 20 of file ImageMagickReaderPlugin.hpp.
tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::ImageMagickReaderPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 18 of file ImageMagickReaderPlugin.cpp.
void tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::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 72 of file ImageMagickReaderPlugin.cpp.
void tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::getClipPreferences | ( | OFX::ClipPreferencesSetter & | clipPreferences | ) | [virtual] |
get the clip preferences
Reimplemented from tuttle::plugin::ReaderPlugin.
Definition at line 111 of file ImageMagickReaderPlugin.cpp.
References tuttle::plugin::ReaderPlugin::_clipDst, OFX::eBitDepthFloat, OFX::eBitDepthUByte, OFX::eBitDepthUShort, tuttle::plugin::eParamReaderBitDepthAuto, tuttle::plugin::eParamReaderChannelAuto, OFX::ePixelComponentAlpha, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, tuttle::plugin::ReaderPlugin::getAbsoluteFirstFilename(), tuttle::plugin::ReaderPlugin::getExplicitBitDepthConversion(), tuttle::plugin::ReaderPlugin::getExplicitChannelConversion(), OFX::getImageEffectHostDescription(), OFX::ClipPreferencesSetter::setClipBitDepth(), OFX::ClipPreferencesSetter::setClipComponents(), OFX::ClipPreferencesSetter::setPixelAspectRatio(), and TUTTLE_LOG_WARNING.
ImageMagickReaderProcessParams tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::getProcessParams | ( | const OfxTime | time | ) |
Definition at line 24 of file ImageMagickReaderPlugin.cpp.
References tuttle::plugin::imagemagick::reader::ImageMagickReaderProcessParams::_filepath, and tuttle::plugin::ReaderPlugin::getAbsoluteFilenameAt().
bool tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::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 77 of file ImageMagickReaderPlugin.cpp.
References tuttle::plugin::ReaderPlugin::_clipDst, tuttle::plugin::ReaderPlugin::getAbsoluteFilenameAt(), OFX::Clip::getPixelAspectRatio(), OFX::RegionOfDefinitionArguments::time, OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.
void tuttle::plugin::imagemagick::reader::ImageMagickReaderPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Reimplemented from tuttle::plugin::ReaderPlugin.
Definition at line 37 of file ImageMagickReaderPlugin.cpp.
References tuttle::plugin::ReaderPlugin::_clipDst, OFX::ePixelComponentAlpha, OFX::ePixelComponentCustom, OFX::ePixelComponentNone, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, OFX::Clip::getPixelComponents(), OFX::Clip::getPixelDepth(), and OFX::mapPixelComponentEnumToString().