TuttleOFX
1
|
00001 #ifndef _TUTTLE_PLUGIN_JPEG_READER_PLUGIN_HPP_ 00002 #define _TUTTLE_PLUGIN_JPEG_READER_PLUGIN_HPP_ 00003 00004 #include <tuttle/plugin/context/ReaderPlugin.hpp> 00005 00006 namespace tuttle { 00007 namespace plugin { 00008 namespace jpeg { 00009 namespace reader { 00010 00011 struct JpegReaderProcessParams 00012 { 00013 std::string _filepath; ///< filepath 00014 }; 00015 00016 /** 00017 * @brief Jpeg reader 00018 * 00019 */ 00020 class JpegReaderPlugin : public ReaderPlugin 00021 { 00022 public: 00023 JpegReaderPlugin( OfxImageEffectHandle handle ); 00024 00025 public: 00026 JpegReaderProcessParams 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