digiKam
imagequalitycontainer.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 : 2013-08-19
7  * Description : Image quality Settings Container.
8  *
9  * Copyright (C) 2013-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_IMAGE_QUALITY_CONTAINER_H
25 #define DIGIKAM_IMAGE_QUALITY_CONTAINER_H
26 
27 // Qt includes
28 
29 #include <QDebug>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 
35 namespace Digikam
36 {
37 
38 class DIGIKAM_EXPORT ImageQualityContainer
39 {
40 public:
41 
45 
46  ImageQualityContainer& operator=(const ImageQualityContainer& other);
47 
48 public:
49 
50  void readFromConfig();
51  void writeToConfig();
52 
53 public:
54 
55  bool enableSorter;
56 
57  bool detectBlur;
58  bool detectNoise;
61 
62  bool lowQRejected;
65 
66  int speed;
70  int blurWeight;
74 };
75 
77 DIGIKAM_EXPORT QDebug operator<<(QDebug dbg, const ImageQualityContainer& s);
78 
79 } // namespace Digikam
80 
81 #endif // DIGIKAM_IMAGE_QUALITY_CONTAINER_H
Definition: imagequalitycontainer.h:39
int exposureWeight
Definition: imagequalitycontainer.h:73
int acceptedThreshold
Item accepted threshold.
Definition: imagequalitycontainer.h:69
int compressionWeight
Item compression level.
Definition: imagequalitycontainer.h:72
int speed
Calculation speed.
Definition: imagequalitycontainer.h:66
bool lowQRejected
Assign Rejected property to low quality.
Definition: imagequalitycontainer.h:62
int blurWeight
Item blur level.
Definition: imagequalitycontainer.h:70
bool enableSorter
Global quality detection enabler/disabler.
Definition: imagequalitycontainer.h:55
int rejectedThreshold
Item rejection threshold.
Definition: imagequalitycontainer.h:67
bool detectBlur
Enable image blur detection.
Definition: imagequalitycontainer.h:57
bool detectCompression
Enable image compression detection.
Definition: imagequalitycontainer.h:59
bool detectNoise
Enable image noise detection.
Definition: imagequalitycontainer.h:58
int pendingThreshold
Item pending threshold.
Definition: imagequalitycontainer.h:68
bool highQAccepted
Assign Accepted property to high quality.
Definition: imagequalitycontainer.h:64
bool detectExposure
Enable image over and under exposure detection.
Definition: imagequalitycontainer.h:60
bool mediumQPending
Assign Pending property to medium quality.
Definition: imagequalitycontainer.h:63
int noiseWeight
Item noise level.
Definition: imagequalitycontainer.h:71
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863