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/gamma_transfer_function.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gamma_transfer_function.h') diff --git a/src/gamma_transfer_function.h b/src/gamma_transfer_function.h index 85035f66..17efe12e 100644 --- a/src/gamma_transfer_function.h +++ b/src/gamma_transfer_function.h @@ -24,19 +24,19 @@ namespace dcp { class GammaTransferFunction : public TransferFunction { public: - GammaTransferFunction (float gamma); + GammaTransferFunction (bool inverse, double gamma); - float gamma () const { + double gamma () const { return _gamma; } - bool about_equal (boost::shared_ptr other, float epsilon) const; + bool about_equal (boost::shared_ptr other, double epsilon) const; protected: - float * make_lut (int bit_depth) const; + double * make_lut (int bit_depth) const; private: - float _gamma; + double _gamma; }; } -- cgit v1.2.3