ahd demosaic: further 10% speedup

This commit is contained in:
heckflosse
2018-08-02 16:14:57 +02:00
parent 3be9baec52
commit 7b883f054f

View File

@@ -28,6 +28,7 @@
#include "rt_math.h"
#include "../rtgui/multilangmgr.h"
#include "median.h"
#define BENCHMARK
#include "StopWatch.h"
namespace rtengine
@@ -168,9 +169,7 @@ void RawImageSource::ahd_demosaic()
for (int d = 0; d < 2; d++) {
homo[d][tr][tc] = 0;
for (int i = 0; i < 4; i++) {
if (ldiff[d][i] <= leps && abdiff[d][i] <= abeps) {
homo[d][tr][tc]++;
}
homo[d][tr][tc] += ((ldiff[d][i] <= leps) * (abdiff[d][i] <= abeps));
}
}
}