TuttleOFX
1
|
Png reader. More...
#include <PngReaderPlugin.hpp>
Public Member Functions | |
PngReaderPlugin (OfxImageEffectHandle handle) | |
PngReaderProcessParams | getProcessParams (const OfxTime time) |
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 | |
void | render (const OFX::RenderArguments &args) |
The overridden render function. |
Png reader.
Definition at line 20 of file PngReaderPlugin.hpp.
tuttle::plugin::png::reader::PngReaderPlugin::PngReaderPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 20 of file PngReaderPlugin.cpp.
void tuttle::plugin::png::reader::PngReaderPlugin::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 32 of file PngReaderPlugin.cpp.
void tuttle::plugin::png::reader::PngReaderPlugin::getClipPreferences | ( | OFX::ClipPreferencesSetter & | clipPreferences | ) | [virtual] |
get the clip preferences
Reimplemented from tuttle::plugin::ReaderPlugin.
Definition at line 66 of file PngReaderPlugin.cpp.
References tuttle::plugin::ReaderPlugin::_clipDst, OFX::eBitDepthNone, 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(), boost::gil::png_read_color_type(), boost::gil::png_read_precision(), OFX::ClipPreferencesSetter::setClipBitDepth(), OFX::ClipPreferencesSetter::setClipComponents(), and OFX::ClipPreferencesSetter::setPixelAspectRatio().
PngReaderProcessParams tuttle::plugin::png::reader::PngReaderPlugin::getProcessParams | ( | const OfxTime | time | ) |
Definition at line 24 of file PngReaderPlugin.cpp.
References tuttle::plugin::png::reader::PngReaderProcessParams::_filepath, and tuttle::plugin::ReaderPlugin::getAbsoluteFilenameAt().
bool tuttle::plugin::png::reader::PngReaderPlugin::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 37 of file PngReaderPlugin.cpp.
References tuttle::plugin::ReaderPlugin::_clipDst, tuttle::plugin::ReaderPlugin::getAbsoluteFilenameAt(), OFX::Clip::getPixelAspectRatio(), OFX::RegionOfDefinitionArguments::time, TUTTLE_INFO, TUTTLE_TLOG_VAR, OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.
void tuttle::plugin::png::reader::PngReaderPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Reimplemented from tuttle::plugin::ReaderPlugin.
Definition at line 127 of file PngReaderPlugin.cpp.