Fix source comment and misc. typos

Found via `codespell -q 3 -I ../rawtherapy-whitelist.txt -S ./rtdata/languages -L hist,fo,reall,bloc,alph`
This commit is contained in:
luz.paz 2019-06-03 17:38:50 -04:00
parent 386ae560b1
commit cc60ea2248
15 changed files with 22 additions and 22 deletions

View File

@ -1429,7 +1429,7 @@ TP_COLORAPP_SURROUND_AVER;Average
TP_COLORAPP_SURROUND_DARK;Dark TP_COLORAPP_SURROUND_DARK;Dark
TP_COLORAPP_SURROUND_DIM;Dim TP_COLORAPP_SURROUND_DIM;Dim
TP_COLORAPP_SURROUND_EXDARK;Extremly Dark (Cutsheet) TP_COLORAPP_SURROUND_EXDARK;Extremly Dark (Cutsheet)
TP_COLORAPP_SURROUND_TOOLTIP;Changes tones and colors to take into account the viewing conditions of the output device.\n\n<b>Average</b>: Average light environment (standard). The image will not change.\n\n<b>Dim</b>: Dim environment (TV). The image will become slighty dark.\n\n<b>Dark</b>: Dark environment (projector). The image will become more dark.\n\n<b>Extremly Dark</b>: Extremly dark environment (cutsheet). The image will become very dark. TP_COLORAPP_SURROUND_TOOLTIP;Changes tones and colors to take into account the viewing conditions of the output device.\n\n<b>Average</b>: Average light environment (standard). The image will not change.\n\n<b>Dim</b>: Dim environment (TV). The image will become slightly dark.\n\n<b>Dark</b>: Dark environment (projector). The image will become more dark.\n\n<b>Extremly Dark</b>: Extremly dark environment (cutsheet). The image will become very dark.
TP_COLORAPP_TCMODE_BRIGHTNESS;Brightness TP_COLORAPP_TCMODE_BRIGHTNESS;Brightness
TP_COLORAPP_TCMODE_CHROMA;Chroma TP_COLORAPP_TCMODE_CHROMA;Chroma
TP_COLORAPP_TCMODE_COLORF;Colorfulness TP_COLORAPP_TCMODE_COLORF;Colorfulness

View File

@ -6,7 +6,7 @@
[General] [General]
# Setting MultiUser to false will use the application's installation directory as cache directory, # Setting MultiUser to false will use the application's installation directory as cache directory,
# which can be useful if you want to keep the application and all the cache datas in a single place, # which can be useful if you want to keep the application and all the cache data in a single place,
# an external HD for example # an external HD for example
MultiUser=true MultiUser=true

View File

@ -6,7 +6,7 @@
[General] [General]
# Setting MultiUser to false will use the application's installation directory as cache directory, # Setting MultiUser to false will use the application's installation directory as cache directory,
# which can be useful if you want to keep the application and all the cache datas in a single place, # which can be useful if you want to keep the application and all the cache data in a single place,
# an external HD for example # an external HD for example
MultiUser=true MultiUser=true

View File

@ -6,7 +6,7 @@
[General] [General]
# Setting MultiUser to false will use the application's installation directory as cache directory, # Setting MultiUser to false will use the application's installation directory as cache directory,
# which can be useful if you want to keep the application and all the cache datas in a single place, # which can be useful if you want to keep the application and all the cache data in a single place,
# an external HD for example # an external HD for example
MultiUser=true MultiUser=true
# Windows users should not use the system theme : some composed widget won't be usable # Windows users should not use the system theme : some composed widget won't be usable

View File

@ -406,7 +406,7 @@ bool MultiDiagonalSymmetricMatrix::CreateIncompleteCholeskyFactorization(int Max
fp = 1; fp = 1;
for(int ii = 1; ii < m; ii++) { for(int ii = 1; ii < m; ii++) {
fp = rtengine::min(StartRows[ii] - StartRows[ii - 1], MaxFillAbove); //Guarunteed positive since StartRows must be created in increasing order. fp = rtengine::min(StartRows[ii] - StartRows[ii - 1], MaxFillAbove); //Guaranteed positive since StartRows must be created in increasing order.
mic = mic + fp; mic = mic + fp;
} }

View File

@ -1796,7 +1796,7 @@ public:
static inline double huelab_to_huehsv2 (float HH) static inline double huelab_to_huehsv2 (float HH)
{ {
//hr=translate Hue Lab value (-Pi +Pi) in approximative hr (hsv values) (0 1) [red 1/6 yellow 1/6 green 1/6 cyan 1/6 blue 1/6 magenta 1/6 ] //hr=translate Hue Lab value (-Pi +Pi) in approximative hr (hsv values) (0 1) [red 1/6 yellow 1/6 green 1/6 cyan 1/6 blue 1/6 magenta 1/6 ]
// with multi linear correspondances (I expect there is no error !!) // with multi linear correspondences (I expect there is no error !!)
double hr = 0.0; double hr = 0.0;
//always put h between 0 and 1 //always put h between 0 and 1

View File

@ -1206,10 +1206,10 @@ void RawImageSource::igv_interpolate(int winw, int winh)
} }
for (; col < width; col++, indx += 2) { for (; col < width; col++, indx += 2) {
dest1[indx >> 1] = CLIP(rawData[row][col]); //rawData = RT datas dest1[indx >> 1] = CLIP(rawData[row][col]); //rawData = RT data
col++; col++;
if(col < width) if(col < width)
dest2[indx >> 1] = CLIP(rawData[row][col]); //rawData = RT datas dest2[indx >> 1] = CLIP(rawData[row][col]); //rawData = RT data
} }
} }
@ -1561,7 +1561,7 @@ void RawImageSource::igv_interpolate(int winw, int winh)
for (int row = 0; row < height - 0; row++) for (int row = 0; row < height - 0; row++)
for (int col = 0, indx = row * width + col; col < width - 0; col++, indx++) { for (int col = 0, indx = row * width + col; col < width - 0; col++, indx++) {
int c = FC(row, col); int c = FC(row, col);
rgb[c][indx] = CLIP(rawData[row][col]); //rawData = RT datas rgb[c][indx] = CLIP(rawData[row][col]); //rawData = RT data
} }
// border_interpolate2(7, rgb); // border_interpolate2(7, rgb);

View File

@ -415,7 +415,7 @@ void RawImageSource::eahd_demosaic ()
} }
} }
// finish H-2th and H-1th row, homogenity value is still valailable // finish H-2th and H-1th row, homogeneity value is still available
for (int i = H - 1; i < H + 1; i++) for (int i = H - 1; i < H + 1; i++)
for (int j = 0; j < W; j++) { for (int j = 0; j < W; j++) {
int hc = homh[(i - 1) % 3][j]; int hc = homh[(i - 1) % 3][j];

View File

@ -729,7 +729,7 @@ void ImProcFunctions::ciecam_02float (CieImage* ncie, float adap, int pW, int pw
const float hue = params->colorappearance.colorh; const float hue = params->colorappearance.colorh;
const float rstprotection = 100. - params->colorappearance.rstprotection; const float rstprotection = 100. - params->colorappearance.rstprotection;
// extracting datas from 'params' to avoid cache flush (to be confirmed) // extracting data from 'params' to avoid cache flush (to be confirmed)
const ColorAppearanceParams::TcMode curveMode = params->colorappearance.curveMode; const ColorAppearanceParams::TcMode curveMode = params->colorappearance.curveMode;
const bool hasColCurve1 = bool (customColCurve1); const bool hasColCurve1 = bool (customColCurve1);
const bool t1L = hasColCurve1 && curveMode == ColorAppearanceParams::TcMode::LIGHT; const bool t1L = hasColCurve1 && curveMode == ColorAppearanceParams::TcMode::LIGHT;
@ -1668,7 +1668,7 @@ void ImProcFunctions::ciecam_02float (CieImage* ncie, float adap, int pW, int pw
//all this treatments reduce artifacts, but can lead to slighty different results //all this treatments reduce artifacts, but can lead to slightly different results
if (params->defringe.enabled) if (params->defringe.enabled)
if (execsharp) { if (execsharp) {
@ -2231,7 +2231,7 @@ void ImProcFunctions::rgbProc (Imagefloat* working, LabImage* lab, PipetteBuffer
const float shoulder = ((65536.0 / max (1.0f, exp_scale)) * (hlcomprthresh / 200.0)) + 0.1; const float shoulder = ((65536.0 / max (1.0f, exp_scale)) * (hlcomprthresh / 200.0)) + 0.1;
const float hlrange = 65536.0 - shoulder; const float hlrange = 65536.0 - shoulder;
const bool isProPhoto = (params->icm.workingProfile == "ProPhoto"); const bool isProPhoto = (params->icm.workingProfile == "ProPhoto");
// extracting datas from 'params' to avoid cache flush (to be confirmed) // extracting data from 'params' to avoid cache flush (to be confirmed)
ToneCurveMode curveMode = params->toneCurve.curveMode; ToneCurveMode curveMode = params->toneCurve.curveMode;
ToneCurveMode curveMode2 = params->toneCurve.curveMode2; ToneCurveMode curveMode2 = params->toneCurve.curveMode2;
bool highlight = params->toneCurve.hrenabled;//Get the value if "highlight reconstruction" is activated bool highlight = params->toneCurve.hrenabled;//Get the value if "highlight reconstruction" is activated

View File

@ -656,7 +656,7 @@ void RawImageSource::MSR(float** luminance, float** originalLuminance, float **e
float cdfactor = 32768.f / delta; float cdfactor = 32768.f / delta;
maxCD = -9999999.f; maxCD = -9999999.f;
minCD = 9999999.f; minCD = 9999999.f;
// coeff for auto "transmission" with 2 sigma #95% datas // coeff for auto "transmission" with 2 sigma #95% data
float aza = 16300.f / (2.f * stddv); float aza = 16300.f / (2.f * stddv);
float azb = -aza * (mean - 2.f * stddv); float azb = -aza * (mean - 2.f * stddv);
float bza = 16300.f / (2.f * stddv); float bza = 16300.f / (2.f * stddv);

View File

@ -3004,7 +3004,7 @@ void ImProcFunctions::ContAllL (float *koeLi[12], float *maxkoeLi, bool lipschit
if(useChromAndHue) { if(useChromAndHue) {
float modhue = varhue[ii][jj]; float modhue = varhue[ii][jj];
modchro = varchrom[ii * 2][jj * 2]; modchro = varchrom[ii * 2][jj * 2];
// hue chroma skin with initial lab datas // hue chroma skin with initial lab data
scale = 1.f; scale = 1.f;
if(skinprot > 0.f) { if(skinprot > 0.f) {
@ -3216,7 +3216,7 @@ void ImProcFunctions::ContAllAB (LabImage * labco, int maxlvl, float ** varhue,
float LL100 = labco->L[ii * 2][jj * 2] / 327.68f; float LL100 = labco->L[ii * 2][jj * 2] / 327.68f;
float modhue = varhue[ii][jj]; float modhue = varhue[ii][jj];
float modchro = varchrom[ii * 2][jj * 2]; float modchro = varchrom[ii * 2][jj * 2];
// hue chroma skin with initial lab datas // hue chroma skin with initial lab data
float scale = 1.f; float scale = 1.f;
if(skinprot > 0.f) { if(skinprot > 0.f) {
@ -3252,7 +3252,7 @@ void ImProcFunctions::ContAllAB (LabImage * labco, int maxlvl, float ** varhue,
float modchro = varchrom[ii * 2][jj * 2]; float modchro = varchrom[ii * 2][jj * 2];
if(useSkinControl) { if(useSkinControl) {
// hue chroma skin with initial lab datas // hue chroma skin with initial lab data
float LL100 = labco->L[ii * 2][jj * 2] / 327.68f; float LL100 = labco->L[ii * 2][jj * 2] / 327.68f;
float modhue = varhue[ii][jj]; float modhue = varhue[ii][jj];

View File

@ -1621,7 +1621,7 @@ void MyFlatCurve::movePoint(bool moveX, bool moveY, bool pipetteDrag)
} }
} }
// Set datas relative to cursor position // Set data relative to cursor position
void MyFlatCurve::getCursorPosition(Gdk::EventType evType, bool isHint, int evX, int evY, Gdk::ModifierType modifierKey) void MyFlatCurve::getCursorPosition(Gdk::EventType evType, bool isHint, int evX, int evY, Gdk::ModifierType modifierKey)
{ {
int tx, ty; int tx, ty;

View File

@ -44,7 +44,7 @@
// User's settings directory, including images' profiles if used // User's settings directory, including images' profiles if used
Glib::ustring Options::rtdir; Glib::ustring Options::rtdir;
// User's cached datas' directory // User's cached data directory
Glib::ustring Options::cacheBaseDir; Glib::ustring Options::cacheBaseDir;
Options options; Options options;

View File

@ -768,8 +768,8 @@ rtengine::RawImage* ToolPanelCoordinator::getFF()
const rtengine::FramesMetaData *imd = ipc->getInitialImage()->getMetaData(); const rtengine::FramesMetaData *imd = ipc->getInitialImage()->getMetaData();
if (imd) { if (imd) {
// int iso = imd->getISOSpeed(); temporarilly removed because unused // int iso = imd->getISOSpeed(); temporarily removed because unused
// double shutter = imd->getShutterSpeed(); temporarilly removed because unused // double shutter = imd->getShutterSpeed(); temporarily removed because unused
double aperture = imd->getFNumber(); double aperture = imd->getFNumber();
double focallength = imd->getFocalLen(); double focallength = imd->getFocalLen();
std::string maker ( imd->getMake() ); std::string maker ( imd->getMake() );

View File

@ -5,7 +5,7 @@
#set(CMAKE_BUILD_TYPE Release CACHE STRING "Between: None Debug Release RelWithDebInfo MinSizeRel.") #set(CMAKE_BUILD_TYPE Release CACHE STRING "Between: None Debug Release RelWithDebInfo MinSizeRel.")
set(CMAKE_INSTALL_PREFIX ./${CMAKE_BUILD_TYPE} CACHE PATH "Libraries installation path") set(CMAKE_INSTALL_PREFIX ./${CMAKE_BUILD_TYPE} CACHE PATH "Libraries installation path")
set(DATADIR . CACHE PATH "Datas installation path") set(DATADIR . CACHE PATH "Data installation path")
set(BINDIR . CACHE PATH "Binaries installation path") set(BINDIR . CACHE PATH "Binaries installation path")
set(LIBDIR . CACHE PATH "Libraries installation path") set(LIBDIR . CACHE PATH "Libraries installation path")
set(DOCDIR ./doc CACHE PATH "Documentation installation path") set(DOCDIR ./doc CACHE PATH "Documentation installation path")