Implémentation de RipplingMOO (entralecement + auto-for).
[GPU.git] / WCudaMSE / Tuto_Image / src / cpp / core / 01_Vague / b_moo / VagueMOO.h
1 #ifndef VAGUE_MOO_H_
2 #define VAGUE_MOO_H_
3
4 #include "cudaType.h"
5
6
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 class VagueMOO
16 {
17
18 /*--------------------------------------*\
19 |* Constructeur *|
20 \*-------------------------------------*/
21
22 public:
23
24 VagueMOO(unsigned int w, unsigned int h, float dt);
25 virtual ~VagueMOO(void);
26
27 /*--------------------------------------*\
28 |* Methode *|
29 \*-------------------------------------*/
30
31 public:
32
33 void process(uchar4* ptrTabPixels, int w, int h);
34 void animationStep();
35 float getT();
36 float getDT();
37
38 private:
39
40 // Balayage image
41 void entrelacementOMP(uchar4* ptrTabPixels,int w, int h);
42 void forAutoOMP(uchar4* ptrTabPixels,int w, int h);
43
44 /*--------------------------------------*\
45 |* Attribut *|
46 \*-------------------------------------*/
47
48 private:
49
50 // Inputs
51 double dt;
52 unsigned char w;
53
54 // Tools
55 double t;
56 bool isEntrelacement;
57 };
58
59 #endif
60
61 /*----------------------------------------------------------------------*\
62 |* End *|
63 /*----------------------------------------------------------------------*/