[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [digikam] imageplugins/color: Filmtool: set default gamma to 1.8
From:       Matthias Welwarsky <matze () welwarsky ! de>
Date:       2012-03-03 17:13:44
Message-ID: 20120303171344.75206A60C4 () git ! kde ! org
[Download RAW message or body]

Git commit 3312123ad0c44034eb95c811a69575bd4a397125 by Matthias Welwarsky.
Committed on 03/03/2012 at 18:09.
Pushed by welwarsky into branch 'master'.

Filmtool: set default gamma to 1.8

The input to the filmtool is normally a linear raw scan, which requires
application of a gamma curve. 1.8 is a good default value.

M  +5    -4    imageplugins/color/filmtool.cpp

http://commits.kde.org/digikam/3312123ad0c44034eb95c811a69575bd4a397125

diff --git a/imageplugins/color/filmtool.cpp b/imageplugins/color/filmtool.cpp
index e51e3ae..1f39832 100644
--- a/imageplugins/color/filmtool.cpp
+++ b/imageplugins/color/filmtool.cpp
@@ -270,9 +270,10 @@ FilmTool::FilmTool(QObject* const parent)
     d->gammaInput = new RDoubleNumInput();
     d->gammaInput->setDecimals(2);
     d->gammaInput->setRange(0.1, 3.0, 0.01);
-    d->gammaInput->setDefaultValue(1.0);
+    d->gammaInput->setDefaultValue(1.8);
     d->gammaInput->setToolTip( i18n( "Gamma input value." ) );
-    d->gammaInput->setWhatsThis( i18n("Select the gamma input value here."));
+    d->gammaInput->setWhatsThis( i18n("Linear raw scans of film negatives require \
application of a gamma curve. " +            "Standard values are 1.8 or 2.2."));
 
     // -------------------------------------------------------------
 
@@ -349,7 +350,7 @@ void FilmTool::slotResetSettings()
     QList<QListWidgetItem*> matchingItems = d->cnType->findItems(profileName, \
Qt::MatchExactly);  d->cnType->setCurrentItem(matchingItems.first());
 
-    double gamma      = 1.0;
+    double gamma      = 1.8;
     d->gammaInput->setValue(gamma);
     gammaInputChanged(gamma);
 
@@ -516,7 +517,7 @@ void FilmTool::readSettings()
     QList<QListWidgetItem*> matchingItems = d->cnType->findItems(profileName, \
Qt::MatchExactly);  d->cnType->setCurrentItem(matchingItems.first());
 
-    double gamma      = group.readEntry(d->configGammaInputEntry, 1.0);
+    double gamma      = group.readEntry(d->configGammaInputEntry, 1.8);
     d->gammaInput->setValue(gamma);
     gammaInputChanged(gamma);
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic