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/modified_gamma_transfer_function.h | |
| parent | 986bb0acba0aa73fc2ac0190a32e8fa8c6e636b4 (diff) | |
Various fixes to XYZ/RGB transforms.
Diffstat (limited to 'src/modified_gamma_transfer_function.h')
| -rw-r--r-- | src/modified_gamma_transfer_function.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modified_gamma_transfer_function.h b/src/modified_gamma_transfer_function.h index 0c6a6b84..aec52de7 100644 --- a/src/modified_gamma_transfer_function.h +++ b/src/modified_gamma_transfer_function.h @@ -29,34 +29,34 @@ namespace dcp { class ModifiedGammaTransferFunction : public TransferFunction { public: - ModifiedGammaTransferFunction (float power, float threshold, float A, float B); + ModifiedGammaTransferFunction (bool inverse, double power, double threshold, double A, double B); - float power () const { + double power () const { return _power; } - float threshold () const { + double threshold () const { return _threshold; } - float A () const { + double A () const { return _A; } - float B () const { + double B () const { return _B; } - bool about_equal (boost::shared_ptr<const TransferFunction>, float epsilon) const; + bool about_equal (boost::shared_ptr<const TransferFunction>, double epsilon) const; protected: - float * make_lut (int bit_depth) const; + double * make_lut (int bit_depth) const; private: - float _power; - float _threshold; - float _A; - float _B; + double _power; + double _threshold; + double _A; + double _B; }; } |
