ahd_demosaic: removed stopwatch and improved progress bar
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
#include "rt_math.h"
|
#include "rt_math.h"
|
||||||
#include "../rtgui/multilangmgr.h"
|
#include "../rtgui/multilangmgr.h"
|
||||||
#include "median.h"
|
#include "median.h"
|
||||||
#define BENCHMARK
|
//#define BENCHMARK
|
||||||
#include "StopWatch.h"
|
#include "StopWatch.h"
|
||||||
|
|
||||||
namespace rtengine
|
namespace rtengine
|
||||||
@@ -205,7 +205,7 @@ void RawImageSource::ahd_demosaic()
|
|||||||
#pragma omp critical (ahdprogress)
|
#pragma omp critical (ahdprogress)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
progress += 32.0 * SQR(TS - 32) / (height * width);
|
progress += 32.0 * SQR(TS - 6) / (height * width);
|
||||||
progress = std::min(progress, 1.0);
|
progress = std::min(progress, 1.0);
|
||||||
plistener->setProgress(progress);
|
plistener->setProgress(progress);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user