From 5d8d757f7d4c47db6705fdb3f926e81eca8621b3 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Mon, 6 Aug 2018 23:59:07 +0200 Subject: [PATCH] ahd_demosaic: removed stopwatch and improved progress bar --- rtengine/ahd_demosaic_RT.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/ahd_demosaic_RT.cc b/rtengine/ahd_demosaic_RT.cc index a25ca1363..7931bf17d 100644 --- a/rtengine/ahd_demosaic_RT.cc +++ b/rtengine/ahd_demosaic_RT.cc @@ -29,7 +29,7 @@ #include "rt_math.h" #include "../rtgui/multilangmgr.h" #include "median.h" -#define BENCHMARK +//#define BENCHMARK #include "StopWatch.h" namespace rtengine @@ -205,7 +205,7 @@ void RawImageSource::ahd_demosaic() #pragma omp critical (ahdprogress) #endif { - progress += 32.0 * SQR(TS - 32) / (height * width); + progress += 32.0 * SQR(TS - 6) / (height * width); progress = std::min(progress, 1.0); plistener->setProgress(progress); }