2
* This file is a part of Qtpfsgui package.
3
* ----------------------------------------------------------------------
4
* Copyright (C) 2006,2007 Giuseppe Rota
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
* ----------------------------------------------------------------------
21
* @author Giuseppe Rota <grota@users.sourceforge.net>
28
#include <QStringList>
30
struct qtpfsgui_opts {
31
//options for RAW import functionality, thanks to dcraw
32
QStringList dcraw_options;
33
//color used to draw the NAN/INF or the negative colors
34
unsigned int naninfcolor, negcolor;
35
//if true, we save a logluv tiff (if false a uncompressed 32 bit tiff)
37
//path to save temporary cached pfs files.
38
QString tempfilespath;
39
//number of threads to use (where threaded execution is enabled).
41
//Image format used to save LDRs in batch mode.
42
QString batch_ldr_format;
45
class QtPfsGuiOptions {
47
static void loadOptions (qtpfsgui_opts *dest);
50
enum tmoperator {ashikhmin,drago,durand,fattal,pattanaik,reinhard02,reinhard05,mantiuk};
51
struct tonemapping_options {
54
enum tmoperator tmoperator;
58
bool eq2; //false means eq4
93
float chromaticAdaptation;
94
float lightAdaptation;
98
float saturationfactor;
99
bool contrastequalization;
104
class TMOptionsOperations {
106
TMOptionsOperations(tonemapping_options* opts);
107
static tonemapping_options* parseFile(QString file);
108
static tonemapping_options* getDefaultTMOptions();
109
QString getPostfix();
110
QString getCaption();
111
QString getExifComment();
113
tonemapping_options* opts;