diff --git a/rtengine/color.cc b/rtengine/color.cc index 66887f550..171a7efcd 100644 --- a/rtengine/color.cc +++ b/rtengine/color.cc @@ -887,7 +887,7 @@ void Color::xyz2rgb (vfloat x, vfloat y, vfloat z, vfloat &r, vfloat &g, vfloat #ifdef __SSE2__ void Color::trcGammaBW (float &r, float &g, float &b, float gammabwr, float gammabwg, float gammabwb) { - // correct gamma for black and white image : pseudo TRC curve of ICC profil + // correct gamma for black and white image : pseudo TRC curve of ICC profile vfloat rgbv = _mm_set_ps(0.f, r, r, r); // input channel is always r vfloat gammabwv = _mm_set_ps(0.f, gammabwb, gammabwg, gammabwr); vfloat c65535v = F2V(65535.f); @@ -903,7 +903,7 @@ void Color::trcGammaBW (float &r, float &g, float &b, float gammabwr, float gamm } void Color::trcGammaBWRow (float *r, float *g, float *b, int width, float gammabwr, float gammabwg, float gammabwb) { - // correct gamma for black and white image : pseudo TRC curve of ICC profil + // correct gamma for black and white image : pseudo TRC curve of ICC profile vfloat c65535v = F2V(65535.f); vfloat gammabwrv = F2V(gammabwr); vfloat gammabwgv = F2V(gammabwg); @@ -931,7 +931,7 @@ void Color::trcGammaBWRow (float *r, float *g, float *b, int width, float gammab #else void Color::trcGammaBW (float &r, float &g, float &b, float gammabwr, float gammabwg, float gammabwb) { - // correct gamma for black and white image : pseudo TRC curve of ICC profil + // correct gamma for black and white image : pseudo TRC curve of ICC profile float in = r; // input channel is always r in /= 65535.0f; in = max(in, 0.f); diff --git a/rtengine/improcfun.cc b/rtengine/improcfun.cc index 7fcee7512..3d3d9de9c 100644 --- a/rtengine/improcfun.cc +++ b/rtengine/improcfun.cc @@ -40,7 +40,7 @@ #include "improccoordinator.h" #include "clutstore.h" #include "ciecam02.h" -#define BENCHMARK +//#define BENCHMARK #include "StopWatch.h" #include "../rtgui/ppversion.h" #include "../rtgui/guiutils.h" @@ -4132,7 +4132,7 @@ void ImProcFunctions::rgbProc (Imagefloat* working, LabImage* lab, PipetteBuffer #endif } - } else if (algm == 1) { //Luminance mixer in Lab mode to avoid artifacts + } else if (algm == 1) { //Luminance mixer in Lab mode to avoid artefacts for (int i = istart, ti = 0; i < tH; i++, ti++) { for (int j = jstart, tj = 0; j < tW; j++, tj++) { //rgb => xyz