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.cpp;h=18f7e3ba248313ce52a405c3922a0e185863479c;hp=18f672dd232943d6e8a9f3764422f6092c67c8f9;hb=f4016003996bd8f9dd903ad9ba6ec6269140a928;hpb=d8613c8e60ee8b1f79466d0427d865138d29761f diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.cpp b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.cpp index 18f672d..18f7e3b 100755 --- a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.cpp +++ b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.cpp @@ -49,10 +49,10 @@ RipplingMOO::~RipplingMOO(void) void RipplingMOO::process(uchar4* ptrTabPixels, int w, int h) // Pourquoi w et h ne sont pas utilisé?? { - if (this->isEntrelacement)x - this->entrelacementOMP(ptrTabPixels); // Plus lent + if (this->isEntrelacement) + this->entrelacementOMP(ptrTabPixels); // Plus lent. else - this->forAutoOMP(ptrTabPixels); // Plus rapide + this->forAutoOMP(ptrTabPixels); // Plus rapide. this->isEntrelacement = ! this->isEntrelacement; // Pour tester que les deux implementations fonctionnent } @@ -109,14 +109,12 @@ void RipplingMOO::forAutoOMP(uchar4* ptrTabPixels) #pragma omp parallel for for (int i = 0; i < h; i++) - { for (int j = 0; j < w; j++) { // int s = i * W + j; const int s = IndiceTools::toS(w, i, j); // i[0,H[ j[0,W[ --> s[0,W*H[ ripplingMath.colorIJ(&ptrTabPixels[s], i, j,t); } - } } /*----------------------------------------------------------------------*\