Debian Codegraph @

src/Libpfs/tm/TonemapOperator.h

raw
1 /*
2 * This file is a part of LuminanceHDR package.
3 * ----------------------------------------------------------------------
4 * Copyright (C) 2006,2007 Giuseppe Rota
5 * Copyright (C) 2011 Davide Anastasia
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * ----------------------------------------------------------------------
21 *
22 * Original Work
23 * @author Giuseppe Rota <[email protected]>
24 * Improvements, bugfixing
25 * @author Franco Comida <[email protected]>
26 * Refactory of TMThread.h class to TonemapOperator in order to remove
27 * dependency from QObject and QThread
28 * @author Davide Anastasia <[email protected]>
29 *
30 */
31
32 #ifndef TONEMAPOPERATOR_H
33 #define TONEMAPOPERATOR_H
34
35 #include <stdexcept>
36
37 #include "Core/TonemappingOptions.h"
38
39 // Forward declaration
40 namespace pfs {
41 class Progress;
42 class Frame;
43 }
44
45 class TonemapOperator {
46 public:
47 static TonemapOperator *getTonemapOperator(const TMOperator tmo);
48 virtual ~TonemapOperator();
49
50 //!
51 //! \return return the underlying type of the TonemapOperator
52 //!
53 virtual TMOperator getType() const = 0;
54
55 //!
56 //! Get a Frame in RGB and processes it.
57 //! \note input frame is MODIFIED
58 //! If you want to keep the original frame, make a copy before
59 //!
60 virtual void tonemapFrame(pfs::Frame &, TonemappingOptions *,
61 pfs::Progress &ph) = 0;
62
63 protected:
64 TonemapOperator();
65 };
66
67 #endif // TONEMAPOPERATOR_H