summaryrefslogtreecommitdiff
path: root/src/lib/colour_conversion.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-08-16 20:14:33 +0100
committerCarl Hetherington <cth@carlh.net>2013-08-16 21:51:15 +0100
commit74a8d26a8907c6e00e29f054178a3425f44e38ed (patch)
treefd700ba8471edcbd6e9e6481a3ca1397397a2d5d /src/lib/colour_conversion.h
parentc2909b61d360510241ef37abd255269bd8aa9526 (diff)
Very basics of colour conversion configuration.
Diffstat (limited to 'src/lib/colour_conversion.h')
-rw-r--r--src/lib/colour_conversion.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/lib/colour_conversion.h b/src/lib/colour_conversion.h
new file mode 100644
index 000000000..ed89f8c63
--- /dev/null
+++ b/src/lib/colour_conversion.h
@@ -0,0 +1,45 @@
+/*
+ Copyright (C) 2013 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include <boost/utility.hpp>
+#include <boost/numeric/ublas/matrix.hpp>
+
+namespace cxml {
+ class Node;
+}
+
+namespace xmlpp {
+ class Node;
+}
+
+class ColourConversion : public boost::noncopyable
+{
+public:
+ ColourConversion ();
+ ColourConversion (std::string, float, bool, float const matrix[3][3], float);
+ ColourConversion (boost::shared_ptr<cxml::Node>);
+
+ void as_xml (xmlpp::Node *) const;
+
+ std::string name;
+ float input_gamma;
+ bool input_gamma_linearised;
+ boost::numeric::ublas::matrix<float> matrix;
+ float output_gamma;
+};