From d05754fbf8bbb3943a72beea4ee4dcbbcb96cb54 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Fri, 2 Oct 2015 23:03:32 +0200 Subject: [PATCH] Reduced updates to progress bar for amaze demosaic --- rtengine/amaze_demosaic_RT.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rtengine/amaze_demosaic_RT.cc b/rtengine/amaze_demosaic_RT.cc index 10a3687e6..289bfa46e 100644 --- a/rtengine/amaze_demosaic_RT.cc +++ b/rtengine/amaze_demosaic_RT.cc @@ -31,13 +31,14 @@ #include "procparams.h" #include "sleef.c" #include "opthelper.h" +#include "StopWatch.h" namespace rtengine { SSEFUNCTION void RawImageSource::amaze_demosaic_RT(int winx, int winy, int winw, int winh) { - +StopWatch Stop1("amaze_demosaic_RT"); #define HCLIP(x) x //is this still necessary??? //min(clip_pt,x) @@ -1615,10 +1616,10 @@ SSEFUNCTION void RawImageSource::amaze_demosaic_RT(int winx, int winy, int winw, if(plistener) { progresscounter++; - if(progresscounter % 4 == 0) { + if(progresscounter % 16 == 0) { #pragma omp critical { - progress += (double)4 * ((TS - 32) * (TS - 32)) / (height * width); + progress += (double)16 * ((TS - 32) * (TS - 32)) / (height * width); if (progress > 1.0) {