Various bug fixes (including negative thumbnail bug and return-to-file-browser-tab bugs) and lens data update

This commit is contained in:
ghorvath
2010-01-31 20:28:04 +00:00
parent e247b37e54
commit 57d9e113b9
9 changed files with 267 additions and 44 deletions

View File

@@ -195,9 +195,9 @@ IImage8* Thumbnail::processImage (const procparams::ProcParams& params, int rhei
int rmi, gmi, bmi;
if (!isRaw || !params.hlrecovery.enabled) {
logDefGain = 0.0;
rmi = 16384.0 * rm * defGain / mul_lum;
gmi = 16384.0 * gm * defGain / mul_lum;
bmi = 16384.0 * bm * defGain / mul_lum;
rmi = 1024.0 * rm * defGain / mul_lum;
gmi = 1024.0 * gm * defGain / mul_lum;
bmi = 1024.0 * bm * defGain / mul_lum;
}
else {
rmi = 1024.0 * rm / mul_lum;
@@ -213,7 +213,7 @@ IImage8* Thumbnail::processImage (const procparams::ProcParams& params, int rhei
else
rwidth = thumbImg->width * rheight / thumbImg->height;
Image16* baseImg = thumbImg->resize (rwidth, rheight, interp);
Image16* baseImg = thumbImg->resize (rwidth, rheight, interp);
if (params.coarse.rotate) {
Image16* tmp = baseImg->rotate (params.coarse.rotate);