TuttleOFX  1
PngReaderPlugin.hpp
Go to the documentation of this file.
00001 #ifndef _PNG_READER_PLUGIN_HPP_
00002 #define _PNG_READER_PLUGIN_HPP_
00003 
00004 #include <tuttle/plugin/context/ReaderPlugin.hpp>
00005 
00006 namespace tuttle {
00007 namespace plugin {
00008 namespace png {
00009 namespace reader {
00010 
00011 struct PngReaderProcessParams
00012 {
00013         std::string _filepath;       ///< filepath
00014 };
00015 
00016 /**
00017  * @brief Png reader
00018  *
00019  */
00020 class PngReaderPlugin : public ReaderPlugin
00021 {
00022 public:
00023         PngReaderPlugin( OfxImageEffectHandle handle );
00024 
00025 public:
00026         PngReaderProcessParams getProcessParams( const OfxTime time );
00027 
00028         void                   changedParam( const OFX::InstanceChangedArgs& args, const std::string& paramName );
00029         bool                   getRegionOfDefinition( const OFX::RegionOfDefinitionArguments& args, OfxRectD& rod );
00030         void                   getClipPreferences( OFX::ClipPreferencesSetter& clipPreferences );
00031 
00032         void                   render( const OFX::RenderArguments& args );
00033 };
00034 
00035 }
00036 }
00037 }
00038 }
00039 
00040 #endif