Support dnggainmap (embedded correction) for Bayer files (#6382)

* dng gainmap support, #6379
* dng GainMap: control sensitivity of checkbox, #6379
* dng GainMap: partial paste
* dng GainMap: moved isGainMapSupported() from dcraw.h to dcraw.cc
* RawImageSource::applyDngGainMap: small speedup
* Change GUI to separate gainmap from other flat-field; also reorder checkbox

Co-authored-by: Thanatomanic <6567747+Thanatomanic@users.noreply.github.com>
This commit is contained in:
Ingo Weyrich
2023-01-02 21:30:06 +01:00
committed by GitHub
parent 2101b846c3
commit 8d29d361a8
22 changed files with 299 additions and 21 deletions

View File

@@ -23,6 +23,7 @@
#include <gtkmm.h>
#include "adjuster.h"
#include "checkbox.h"
#include "guiutils.h"
#include "toolpanel.h"
@@ -42,7 +43,7 @@ public:
// add other info here
};
class FlatField final : public ToolParamBlock, public AdjusterListener, public FoldableToolPanel, public rtengine::FlatFieldAutoClipListener
class FlatField final : public ToolParamBlock, public AdjusterListener, public CheckBoxListener, public FoldableToolPanel, public rtengine::FlatFieldAutoClipListener
{
protected:
@@ -52,6 +53,7 @@ protected:
Gtk::Label *ffInfo;
Gtk::Button *flatFieldFileReset;
Gtk::CheckButton* flatFieldAutoSelect;
CheckBox* flatFieldFromMetaData;
Adjuster* flatFieldClipControl;
Adjuster* flatFieldBlurRadius;
MyComboBoxText* flatFieldBlurType;
@@ -64,8 +66,10 @@ protected:
Glib::ustring lastShortcutPath;
bool b_filter_asCurrent;
bool israw;
rtengine::ProcEvent EvFlatFieldFromMetaData;
IdleRegister idle_register;
public:
FlatField ();
@@ -90,4 +94,6 @@ public:
ffp = p;
};
void flatFieldAutoClipValueChanged(int n = 0) override;
void checkBoxToggled(CheckBox* c, CheckValue newval) override;
void setGainMap(bool enabled);
};