diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-03 21:33:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-03 21:33:30 +0000 |
| commit | 9655ed4740f08899698052f232256fcf7b77c58e (patch) | |
| tree | 195e8f30ec4c5dd5beeecfb371acf7a3ceaa7898 /src/gamma_transfer_function.h | |
| parent | 986bb0acba0aa73fc2ac0190a32e8fa8c6e636b4 (diff) | |
Various fixes to XYZ/RGB transforms.
Diffstat (limited to 'src/gamma_transfer_function.h')
| -rw-r--r-- | src/gamma_transfer_function.h | 10 |
1 files changed, 5 insertions, 5 deletions
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<const TransferFunction> other, float epsilon) const; + bool about_equal (boost::shared_ptr<const TransferFunction> other, double epsilon) const; protected: - float * make_lut (int bit_depth) const; + double * make_lut (int bit_depth) const; private: - float _gamma; + double _gamma; }; } |
