Bugfix and Enhancement for Clut, Issue 2584, Kudos to Fl?ssie
This commit is contained in:
@@ -25,7 +25,12 @@
|
||||
#include "addsetids.h"
|
||||
#include "guiutils.h"
|
||||
#include "../rtengine/safegtk.h"
|
||||
#include "version.h"
|
||||
#include "version.h"
|
||||
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h>
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
@@ -353,9 +358,13 @@ void Options::setDefaults () {
|
||||
histogramBar = true;
|
||||
histogramFullMode = false;
|
||||
|
||||
rgbDenoiseThreadLimit = 0;
|
||||
|
||||
filledProfile = false;
|
||||
rgbDenoiseThreadLimit = 0;
|
||||
#if defined( _OPENMP ) && defined( __x86_64__ )
|
||||
clutCacheSize = omp_get_num_procs();
|
||||
#else
|
||||
clutCacheSize = 1;
|
||||
#endif
|
||||
filledProfile = false;
|
||||
|
||||
showProfileSelector = true;
|
||||
FileBrowserToolbarSingleRow = false;
|
||||
@@ -726,7 +735,7 @@ if (keyFile.has_group ("Clipping Indication")) {
|
||||
}
|
||||
|
||||
if (keyFile.has_group ("Performance")) {
|
||||
if (keyFile.has_key ("Performance", "RgbDenoiseThreadLimit")) rgbDenoiseThreadLimit = keyFile.get_integer ("Performance", "RgbDenoiseThreadLimit");
|
||||
if (keyFile.has_key ("Performance", "RgbDenoiseThreadLimit")) rgbDenoiseThreadLimit = keyFile.get_integer ("Performance", "RgbDenoiseThreadLimit");
|
||||
if( keyFile.has_key ("Performance", "NRauto")) rtSettings.nrauto = keyFile.get_double("Performance", "NRauto");
|
||||
if( keyFile.has_key ("Performance", "NRautomax")) rtSettings.nrautomax = keyFile.get_double("Performance", "NRautomax");
|
||||
if( keyFile.has_key ("Performance", "NRhigh")) rtSettings.nrhigh = keyFile.get_double("Performance", "NRhigh");
|
||||
@@ -736,8 +745,7 @@ if (keyFile.has_group ("Performance")) {
|
||||
if (keyFile.has_key ("Performance", "LevNRAUT")) rtSettings.leveldnaut = keyFile.get_integer("Performance", "LevNRAUT");
|
||||
if (keyFile.has_key ("Performance", "LevNRLISS")) rtSettings.leveldnliss = keyFile.get_integer("Performance", "LevNRLISS");
|
||||
if (keyFile.has_key ("Performance", "SIMPLNRAUT")) rtSettings.leveldnautsimpl = keyFile.get_integer("Performance", "SIMPLNRAUT");
|
||||
|
||||
|
||||
if (keyFile.has_key ("Performance", "ClutCacheSize")) clutCacheSize = keyFile.get_integer ("Performance", "ClutCacheSize");
|
||||
}
|
||||
|
||||
if (keyFile.has_group ("GUI")) {
|
||||
@@ -1009,7 +1017,7 @@ int Options::saveToFile (Glib::ustring fname) {
|
||||
keyFile.set_integer ("Clipping Indication", "ShadowThreshold", shadowThreshold);
|
||||
keyFile.set_boolean ("Clipping Indication", "BlinkClipped", blinkClipped);
|
||||
|
||||
keyFile.set_integer ("Performance", "RgbDenoiseThreadLimit", rgbDenoiseThreadLimit);
|
||||
keyFile.set_integer ("Performance", "RgbDenoiseThreadLimit", rgbDenoiseThreadLimit);
|
||||
keyFile.set_double ("Performance", "NRauto", rtSettings.nrauto);
|
||||
keyFile.set_double ("Performance", "NRautomax", rtSettings.nrautomax);
|
||||
keyFile.set_double ("Performance", "NRhigh", rtSettings.nrhigh);
|
||||
@@ -1019,6 +1027,7 @@ int Options::saveToFile (Glib::ustring fname) {
|
||||
keyFile.set_integer ("Performance", "LevNRAUT", rtSettings.leveldnaut);
|
||||
keyFile.set_integer ("Performance", "LevNRLISS", rtSettings.leveldnliss);
|
||||
keyFile.set_integer ("Performance", "SIMPLNRAUT", rtSettings.leveldnautsimpl);
|
||||
keyFile.set_integer ("Performance", "ClutCacheSize", clutCacheSize);
|
||||
|
||||
keyFile.set_string ("Output", "Format", saveFormat.format);
|
||||
keyFile.set_integer ("Output", "JpegQuality", saveFormat.jpegQuality);
|
||||
|
Reference in New Issue
Block a user