digiKam
localcontrastcontainer.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 : 2009-08-09
7  * Description : Local Contrast settings container
8  * LDR ToneMapper zynaddsubfx.sourceforge.net/other/tonemapping
9  *
10  * Copyright (C) 2009 by Nasca Octavian Paul <zynaddsubfx at yahoo dot com>
11  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option)
17  * any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_LOCAL_CONTRAST_CONTAINER_H
27 #define DIGIKAM_LOCAL_CONTRAST_CONTAINER_H
28 
29 #define TONEMAPPING_MAX_STAGES 4
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 
35 namespace Digikam
36 {
37 
38 class DIGIKAM_EXPORT LocalContrastContainer
39 {
40 
41 public:
42 
43  explicit LocalContrastContainer();
45 
46  double getPower(int nstage) const;
47  double getBlur(int nstage) const;
48 
49 public:
50 
52 
56 
57  struct
58  {
59  bool enabled;
60  double power;
61  double blur;
62  }
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_LOCAL_CONTRAST_CONTAINER_H
Definition: localcontrastcontainer.h:39
int lowSaturation
Definition: localcontrastcontainer.h:53
bool stretchContrast
Definition: localcontrastcontainer.h:51
double blur
Definition: localcontrastcontainer.h:61
int functionId
Definition: localcontrastcontainer.h:55
double power
Definition: localcontrastcontainer.h:60
int highSaturation
Definition: localcontrastcontainer.h:54
bool enabled
Definition: localcontrastcontainer.h:59
#define TONEMAPPING_MAX_STAGES
Definition: localcontrastcontainer.h:29
Definition: datefolderview.cpp:43