From cbbb9e63b7ec7a5c34f186ceafe5da6be8faa739 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 5 May 2022 20:56:14 +0200 Subject: Allow LUTs to be created with a particular range. --- test/colour_conversion_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 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 tf, int bit_depth, bool inverse, static void check_modified_gamma (shared_ptr 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) { -- cgit v1.2.3