Jafar
|
00001 /* $Id: $ */ 00002 00003 #ifndef _IMAGE_IMAGE_PREPROCESSOR_HPP_ 00004 #define _IMAGE_IMAGE_PREPROCESSOR_HPP_ 00005 00006 #include <list> 00007 #include <image/Image.hpp> 00008 00009 namespace jafar { 00010 namespace image { 00014 class ImagePreprocessorNode { 00015 public: 00022 virtual void preprocessImage(const jafar::image::Image& src, jafar::image::Image& dst) =0; 00023 virtual bool hasWork() { return true; } 00024 00025 virtual ~ImagePreprocessorNode() { } 00026 00027 }; 00031 class ImagePreprocessor : public ImagePreprocessorNode { 00032 public: 00044 ImagePreprocessor(int width, int height, int depth, JfrImage_TypeColorSpace colorSpace); 00045 virtual ~ImagePreprocessor(); 00046 void appendNode(ImagePreprocessorNode* node) 00047 { m_nodes.push_back(node); m_nodeCount++; } 00051 virtual void preprocessImage(const jafar::image::Image& src, jafar::image::Image& dst); 00052 virtual void preprocessImage2(const jafar::image::Image& src, jafar::image::Image& dst); 00053 private: 00054 jafar::image::Image* m_buffer; 00055 jafar::image::Image* m_buffer2; 00056 jafar::image::Image* m_buffer3; 00057 std::list<ImagePreprocessorNode*> m_nodes; 00058 int m_nodeCount; 00059 }; 00060 } 00061 } 00062 00063 00064 00065 #endif
Generated on Wed Oct 15 2014 00:37:21 for Jafar by doxygen 1.7.6.1 |