From e7b0efb709d097a57a698a0e6da37cbc6d5ddfe5 Mon Sep 17 00:00:00 2001 From: natureh Date: Wed, 24 Aug 2011 01:13:41 +0200 Subject: [PATCH] Adding a warning about croppedHistogram calculation --- rtengine/imagefloat.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rtengine/imagefloat.cc b/rtengine/imagefloat.cc index d4f92c91f..5fb02d6f4 100644 --- a/rtengine/imagefloat.cc +++ b/rtengine/imagefloat.cc @@ -252,6 +252,12 @@ void Imagefloat::calcCroppedHistogram(const ProcParams ¶ms, float scale, LUT int x1, x2, y1, y2; params.crop.mapToResized(width, height, scale, x1, x2, y1, y2); + /* + * WARNING: this parallelization is not 100% safe. Some of its values + * are underestimated by 1 or 2, but in practical, it doesn't seem to be + * annoying in any way, so i guess we may leave it as is... + * (Hombre) + */ #pragma omp parallel for for (int y=y1; y