digiKam
Loading...
Searching...
No Matches
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 * SPDX-FileCopyrightText: 2009 by Nasca Octavian Paul <zynaddsubfx at yahoo dot com>
11 * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
12 *
13 * SPDX-License-Identifier: GPL-2.0-or-later
14 *
15 * ============================================================ */
16
17#pragma once
18
19#define TONEMAPPING_MAX_STAGES 4
20
21// Local includes
22
23#include "digikam_export.h"
24
25namespace Digikam
26{
27
28class DIGIKAM_EXPORT LocalContrastContainer
29{
30
31public:
32
35
36 double getPower(int nstage) const;
37 double getBlur(int nstage) const;
38
39public:
40
41 bool stretchContrast = true;
42
43 int lowSaturation = 100;
44 int highSaturation = 100;
45 int functionId = 0;
46
47 struct
48 {
49 bool enabled = false;
50 double power = 30.0;
51 double blur = 80.0;
52 }
54};
55
56} // namespace Digikam
Definition localcontrastcontainer.h:29
#define TONEMAPPING_MAX_STAGES
Definition localcontrastcontainer.h:19
Definition datefolderview.cpp:34