X-Git-Url: http://git.euphorik.ch/?p=GPU.git;a=blobdiff_plain;f=WCudaMSE%2FStudent_OMP_Image%2Fsrc%2Fcpp%2Fcore%2F01_Rippling%2Fb_moo%2FRipplingMOO.h;h=001faf779e8da8f19a325ca588295002e1a08bb7;hp=6e26b26957f82d1654f5be22a1e5bdef82f4fed9;hb=1ad82fc988adf2f8837584ec26873953a83dc7b8;hpb=00e3a81161ef7d45c0a4eb7f212cd6522afea394 diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.h b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.h index 6e26b26..001faf7 100755 --- a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.h +++ b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.h @@ -1,60 +1,61 @@ -#ifndef RIPPLING_MOO_H_ -#define RIPPLING_MOO_H_ - -#include "cudaType.h" - -/*----------------------------------------------------------------------*\ - |* Declaration *| - \*---------------------------------------------------------------------*/ - -/*--------------------------------------*\ - |* Public *| - \*-------------------------------------*/ - -class RipplingMOO - { - - /*--------------------------------------*\ - |* Constructeur *| - \*-------------------------------------*/ - - public: - - RipplingMOO(unsigned int w, unsigned int h, float dt); - virtual ~RipplingMOO(void); - - /*--------------------------------------*\ - |* Methode *| - \*-------------------------------------*/ - - public: - - void process(uchar4* ptrTabPixels, int w, int h); - void animationStep(); - float getT(); - - private: - - void entrelacementOMP(uchar4* ptrTabPixels); // Code entrainement Cuda - void forAutoOMP(uchar4* ptrTabPixels); // Code naturel et direct OMP, plus performsnt - - /*--------------------------------------*\ - |* Attribut *| - \*-------------------------------------*/ - - private: - - // Inputs - double dt; - - // Tools - double t; - bool isEntrelacement; - - }; - -#endif - -/*----------------------------------------------------------------------*\ - |* End *| - \*---------------------------------------------------------------------*/ +#ifndef RIPPLING_MOO_H_ +#define RIPPLING_MOO_H_ + +#include "cudaType.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class RipplingMOO + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + RipplingMOO(unsigned int w, unsigned int h, float dt); + virtual ~RipplingMOO(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + void process(uchar4* ptrTabPixels, int w, int h); + void animationStep(); + float getT(); + + private: + + void entrelacementOMP(uchar4* ptrTabPixels); // Code entrainement Cuda + void forAutoOMP(uchar4* ptrTabPixels); // Code naturel et direct OMP, plus performsnt + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + const unsigned int w; + const unsigned int h; + + // Inputs + const double dt; + + // Tools + double t; + bool isEntrelacement; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/