diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-28 01:00:25 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-28 01:00:25 +0000 |
| commit | 6154d5f85664a26e9490c9120bef5e742af94490 (patch) | |
| tree | b6d8af6fb5a5d11357b60d84c74ed92ee7859c66 /src/lib/colour_conversion.h | |
| parent | 86c09d276bc4d2a85321f8c1ba4f06c1cdf25b7c (diff) | |
Basic adaptations for changes to libdcp1 colour conversion handling.
Diffstat (limited to 'src/lib/colour_conversion.h')
| -rw-r--r-- | src/lib/colour_conversion.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/colour_conversion.h b/src/lib/colour_conversion.h index dbc6c9d9d..bf883a07c 100644 --- a/src/lib/colour_conversion.h +++ b/src/lib/colour_conversion.h @@ -25,20 +25,19 @@ #undef check #endif +#include <dcp/colour_conversion.h> #include <libcxml/cxml.h> #include <boost/utility.hpp> -#include <boost/optional.hpp> -#include <boost/numeric/ublas/matrix.hpp> namespace xmlpp { class Node; } -class ColourConversion +class ColourConversion : public dcp::ColourConversion { public: ColourConversion (); - ColourConversion (double, bool, double const matrix[3][3], double); + ColourConversion (dcp::ColourConversion); ColourConversion (cxml::NodePtr); virtual void as_xml (xmlpp::Node *) const; @@ -47,18 +46,13 @@ public: boost::optional<size_t> preset () const; static boost::optional<ColourConversion> from_xml (cxml::NodePtr); - - double input_gamma; - bool input_gamma_linearised; - boost::numeric::ublas::matrix<double> matrix; - double output_gamma; }; class PresetColourConversion { public: PresetColourConversion (); - PresetColourConversion (std::string, double, bool, double const matrix[3][3], double); + PresetColourConversion (std::string, dcp::ColourConversion); PresetColourConversion (cxml::NodePtr); void as_xml (xmlpp::Node *) const; |
