Update rawimagesource.cc

Enable parallel decoding for Hasselblad H6D-100cMS pixelshift frames
This commit is contained in:
Ingo Weyrich
2019-09-01 21:39:28 +02:00
committed by GitHub
parent 5ea18efeb8
commit bb97a30058

View File

@@ -1011,12 +1011,12 @@ int RawImageSource::load (const Glib::ustring &fname, bool firstFrameOnly)
} else {
numFrames = 6;
}
#ifdef _OPENMP99
#ifdef _OPENMP
#pragma omp parallel
#endif
{
int errCodeThr = 0;
#ifdef _OPENMP99
#ifdef _OPENMP
#pragma omp for nowait
#endif
for(unsigned int i = 0; i < numFrames; ++i) {
@@ -1028,7 +1028,7 @@ int RawImageSource::load (const Glib::ustring &fname, bool firstFrameOnly)
errCodeThr = riFrames[i]->loadRaw (true, i + 1);
}
}
#ifdef _OPENMP99
#ifdef _OPENMP
#pragma omp critical
#endif
{