digiKam
Loading...
Searching...
No Matches
drawdecodersettings.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2006-12-09
7 * Description : Raw decoding settings
8 *
9 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2006-2013 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
11 * SPDX-FileCopyrightText: 2007-2008 by Guillaume Castagnino <casta at xwing dot info>
12 *
13 * SPDX-License-Identifier: GPL-2.0-or-later
14 *
15 * ============================================================ */
16
17#pragma once
18
19// Qt includes
20
21#include <QRect>
22#include <QString>
23#include <QDebug>
24
25// Local includes
26
27#include "digikam_export.h"
28
29namespace Digikam
30{
31
32class DIGIKAM_EXPORT DRawDecoderSettings
33{
34
35public:
36
62 {
63 BILINEAR = 0,
64 VNG = 1,
65 PPG = 2,
66 AHD = 3,
67 DCB = 4,
68 DHT = 11,
69 AAHD = 12
70 };
71
81 {
82 NONE = 0,
83 CAMERA = 1,
84 AUTO = 2,
85 CUSTOM = 3,
86 AERA = 4
87 };
88
96 {
97 NONR = 0,
99 FBDDNR
100 };
101
109 {
110 NOINPUTCS = 0,
112 CUSTOMINPUTCS
113 };
114
125 {
126 RAWCOLOR = 0,
131 CUSTOMOUTPUTCS
132 };
133
134public:
135
140
145 DRawDecoderSettings& operator=(const DRawDecoderSettings& o);
146
150 bool operator==(const DRawDecoderSettings& o) const;
151
156
160 void optimizeTimeLoading();
161
162public:
163
168 bool fixColorsHighlights = false;
169
173 bool autoBrightness = true;
174
178 bool sixteenBitsImage = false;
179
185 bool halfSizeColorImage = false;
186
190 WhiteBalance whiteBalance = CAMERA;
191
195 int customWhiteBalance = 6500;
196 double customWhiteBalanceGreen = 1.0;
197
201 bool RGBInterpolate4Colors = false;
202
208 bool DontStretchPixels = false;
209
219 int unclipColors = 0;
220
225 DecodingQuality RAWQuality = BILINEAR;
226
231 int medianFilterPasses = 0;
232
236 NoiseReduction NRType = NONR;
237
242 int NRThreshold = 0;
243
247 double brightness = 1.0;
248
252 bool enableBlackPoint = false;
253
257 int blackPoint = 0;
258
262 bool enableWhitePoint = false;
263
267 int whitePoint = 0;
268
273 InputColorSpace inputColorSpace = NOINPUTCS;
274
279
284 OutputColorSpace outputColorSpace = SRGB;
285
290
295
300
301 //-- Extended demosaicing settings ----------------------------------------------------------
302
304
310 int dcbIterations = -1;
311
315 bool dcbEnhanceFl = false;
316
320 bool expoCorrection = false;
321
326 double expoCorrectionShift = 1.0;
327
333 double expoCorrectionHighlight = 0.0;
334};
335
337QDebug operator<<(QDebug dbg, const DRawDecoderSettings& s);
338
339} // namespace Digikam
Definition drawdecodersettings.h:33
NoiseReduction
Definition drawdecodersettings.h:96
@ WAVELETSNR
Definition drawdecodersettings.h:98
QRect whiteBalanceArea
Definition drawdecodersettings.h:299
WhiteBalance
Definition drawdecodersettings.h:81
QString outputProfile
Definition drawdecodersettings.h:289
InputColorSpace
Definition drawdecodersettings.h:109
@ EMBEDDED
Definition drawdecodersettings.h:111
DecodingQuality
Definition drawdecodersettings.h:62
QString inputProfile
Definition drawdecodersettings.h:278
OutputColorSpace
Definition drawdecodersettings.h:125
@ PROPHOTO
Definition drawdecodersettings.h:130
@ ADOBERGB
Definition drawdecodersettings.h:128
@ WIDEGAMMUT
Definition drawdecodersettings.h:129
@ SRGB
Definition drawdecodersettings.h:127
QString deadPixelMap
Definition drawdecodersettings.h:294
Definition datefolderview.cpp:34
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition dbengineparameters.cpp:930
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition searchtextbar.cpp:40