TuttleOFX
1
|
00001 #ifndef JPEG_WRITER_PROCESS_HPP 00002 #define JPEG_WRITER_PROCESS_HPP 00003 00004 #include <tuttle/plugin/global.hpp> 00005 #include <tuttle/plugin/ImageGilFilterProcessor.hpp> 00006 00007 namespace tuttle { 00008 namespace plugin { 00009 namespace jpeg { 00010 namespace writer { 00011 00012 /** 00013 * @brief Base class for the denoising processor 00014 * 00015 */ 00016 template<class View> 00017 class JpegWriterProcess : public ImageGilFilterProcessor<View> 00018 { 00019 public: 00020 typedef typename View::value_type Pixel; 00021 00022 protected: 00023 JpegWriterPlugin& _plugin; ///< Rendering plugin 00024 JpegWriterProcessParams _params; 00025 00026 public: 00027 JpegWriterProcess( JpegWriterPlugin& instance ); 00028 00029 void setup( const OFX::RenderArguments& args ); 00030 00031 void multiThreadProcessImages( const OfxRectI& procWindowRoW ); 00032 00033 template<class Bits> 00034 void writeImage( View& src ); 00035 }; 00036 00037 } 00038 } 00039 } 00040 } 00041 00042 #include "JpegWriterProcess.tcc" 00043 00044 #endif