From 9655ed4740f08899698052f232256fcf7b77c58e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 3 Jan 2015 21:33:30 +0000 Subject: Various fixes to XYZ/RGB transforms. --- src/transfer_function.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/transfer_function.h') diff --git a/src/transfer_function.h b/src/transfer_function.h index 31a794e2..16d00c1a 100644 --- a/src/transfer_function.h +++ b/src/transfer_function.h @@ -29,17 +29,22 @@ namespace dcp { class TransferFunction : public boost::noncopyable { public: + TransferFunction (bool inverse); + virtual ~TransferFunction (); - float const * lut (int bit_depth) const; + /** @return A look-up table (of size 2^bit_depth) whose values range from 0 to 1 */ + double const * lut (int bit_depth) const; - virtual bool about_equal (boost::shared_ptr other, float epsilon) const = 0; + virtual bool about_equal (boost::shared_ptr other, double epsilon) const; protected: - virtual float * make_lut (int bit_depth) const = 0; + virtual double * make_lut (int bit_depth) const = 0; + + bool _inverse; private: - mutable std::map _luts; + mutable std::map _luts; }; } -- cgit v1.2.3