Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_OMP_Image / src / cpp / core / 01_Rippling / b_moo / RipplingMOO.h
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
new file mode 100755 (executable)
index 0000000..6e26b26
--- /dev/null
@@ -0,0 +1,60 @@
+#ifndef RIPPLING_MOO_H_\r
+#define RIPPLING_MOO_H_\r
+\r
+#include "cudaType.h"\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+class RipplingMOO\r
+    {\r
+\r
+       /*--------------------------------------*\\r
+       |*              Constructeur            *|\r
+        \*-------------------------------------*/\r
+\r
+    public:\r
+\r
+       RipplingMOO(unsigned int w, unsigned int h, float dt);\r
+       virtual ~RipplingMOO(void);\r
+\r
+       /*--------------------------------------*\\r
+       |*              Methode                 *|\r
+        \*-------------------------------------*/\r
+\r
+    public:\r
+\r
+       void process(uchar4* ptrTabPixels, int w, int h);\r
+       void animationStep();\r
+       float getT();\r
+\r
+    private:\r
+\r
+       void entrelacementOMP(uchar4* ptrTabPixels);    // Code entrainement Cuda\r
+       void forAutoOMP(uchar4* ptrTabPixels);          // Code naturel et direct OMP, plus performsnt\r
+\r
+       /*--------------------------------------*\\r
+       |*              Attribut                *|\r
+        \*-------------------------------------*/\r
+\r
+    private:\r
+\r
+       // Inputs\r
+       double dt;\r
+\r
+       // Tools\r
+       double t;\r
+       bool isEntrelacement;\r
+\r
+    };\r
+\r
+#endif\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r