diff --git a/rtengine/rawimagesource.cc b/rtengine/rawimagesource.cc index 48e0e6994..903b1258d 100644 --- a/rtengine/rawimagesource.cc +++ b/rtengine/rawimagesource.cc @@ -283,7 +283,7 @@ void RawImageSource::getImage (ColorTemp ctemp, int tran, Image16* image, Previe interpolate_image(image, hrp, rm, gm, bm, pp.skip, tran, fw, imwidth, imheight, sx1, sy1, tid*blk, (tid+1)*blk); else interpolate_image(image, hrp, rm, gm, bm, pp.skip, tran, fw, imwidth, imheight, sx1, sy1, tid*blk,imheight); -} +} #else interpolate_image(image, hrp, rm, gm, bm, pp.skip, tran, fw, imwidth, imheight, sx1, sy1, 0, imheight); #endif @@ -1154,7 +1154,8 @@ void RawImageSource::colorSpaceConversion (Image16* im, ColorManagementParams cm for (int j=0; j<3; j++) for (int k=0; k<3; k++) mat[i][j] += camMatrix[i][k] * work[k][j]; - + +#pragma omp parallel for for (int i=0; iheight; i++) for (int j=0; jwidth; j++) { @@ -1176,7 +1177,8 @@ void RawImageSource::colorSpaceConversion (Image16* im, ColorManagementParams cm if (hTransform) { if (cmp.gammaOnInput) { double gd = pow (2.0, defgain); - defgain = 0.0; + defgain = 0.0; +#pragma omp parallel for for (int i=0; iheight; i++) for (int j=0; jwidth; j++) { im->r[i][j] = CurveFactory::gamma (CLIP(defgain*im->r[i][j]));