Reduced updates to progress bar for amaze demosaic
This commit is contained in:
parent
643a9e7d54
commit
d05754fbf8
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user