X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FTuto_Image%2Fsrc%2Fcpp%2Fcore%2F02_Damier_Zoomable%2Fb_moo%2FDamierMOO.h;fp=WCudaMSE%2FTuto_Image%2Fsrc%2Fcpp%2Fcore%2F02_Damier_Zoomable%2Fb_moo%2FDamierMOO.h;h=df015d96b7424ed17ea29c29d8dbe679194c4b29;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.h b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.h new file mode 100755 index 0000000..df015d9 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.h @@ -0,0 +1,70 @@ +#ifndef DAMIER_MOO_H_ +#define DAMIER_MOO_H_ + +#include "cudaType.h" + +#include "VariateurF.h" +#include "DomaineMath.h" +#include "DamierMath.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class DamierMOO + { + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + DamierMOO(unsigned int w, unsigned int h, float dt, int n); + virtual ~DamierMOO(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + void process(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath); + + int getN(); + float getT(); + + void animationStep(); + + private: + + void forAutoOMP(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath); + void entrelacementOMP(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath); + + void workPixel(uchar4* ptrColorIJ,int i, int j,int s, const DomaineMath& domaineMath,DamierMath* ptrDamierMath); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + protected: + + // Inputs + int n; + unsigned int w; + unsigned int h; + + // Tools + VariateurF variateurT; // fait varier para animation t + bool isEntrelacement; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/