Make some more files cppcheck clean (#6133)

* Make some more files cppcheck clean

* revert change of dcrop.cc from last commit

* Replace calculation: y = pow(x, 1/ (2.f * 2.f)) by y = sqrt(sqrt(x))

* Revert "Replace calculation: y = pow(x, 1/ (2.f * 2.f)) by y = sqrt(sqrt(x))"

This reverts commit d639c67249f1723fa9f9e55e0442afcb862eba91.
This commit is contained in:
Ingo Weyrich
2021-02-24 22:39:23 +01:00
committed by GitHub
parent 7a2463a81a
commit f727477710
6 changed files with 18 additions and 40 deletions

View File

@@ -543,8 +543,8 @@ BENCHFUN
// calculate contrast based blend factors to reduce sharpening in regions with low contrast
JaggedArray<float> blend(W, H);
float contrast = params->sharpenMicro.contrast / 100.0;
buildBlendMask(luminance, blend, W, H, contrast);
float contrastThreshold = params->sharpenMicro.contrast / 100.0;
buildBlendMask(luminance, blend, W, H, contrastThreshold);
#ifdef _OPENMP
#pragma omp parallel