diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-05 20:56:14 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-05 21:09:40 +0200 |
| commit | cbbb9e63b7ec7a5c34f186ceafe5da6be8faa739 (patch) | |
| tree | 79ccaa11973954138df02c2022b2ea25c0717b9d /test | |
| parent | ad7244de981a7dd0b9b4f8f3d62d4704f1968012 (diff) | |
Allow LUTs to be created with a particular range.
Diffstat (limited to 'test')
| -rw-r--r-- | test/colour_conversion_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/colour_conversion_test.cc b/test/colour_conversion_test.cc index c1e7fc1a..73de297a 100644 --- a/test/colour_conversion_test.cc +++ b/test/colour_conversion_test.cc @@ -44,7 +44,7 @@ using namespace dcp; static void check_gamma (shared_ptr<const TransferFunction> tf, int bit_depth, bool inverse, float gamma) { - auto lut = tf->lut (bit_depth, inverse); + auto lut = tf->lut(0, 1, bit_depth, inverse); int const count = rint (pow (2.0, bit_depth)); for (int i = 0; i < count; ++i) { @@ -55,7 +55,7 @@ check_gamma (shared_ptr<const TransferFunction> tf, int bit_depth, bool inverse, static void check_modified_gamma (shared_ptr<const TransferFunction> tf, int bit_depth, bool inverse, double power, double threshold, double A, double B) { - auto lut = tf->lut (bit_depth, inverse); + auto lut = tf->lut(0, 1, bit_depth, inverse); int const count = rint (pow (2.0, bit_depth)); for (int i = 0; i < count; ++i) { |
