summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-05 17:38:48 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-05 18:53:39 +0200
commit969c9c28c87e83f4e3fcb7b52a921773d363511f (patch)
tree361713cfbb0246b75af7442f257375c27655083b /test
parent504955b1e8036a25b1dc196625e530808ac42e99 (diff)
Use two LUTs.inaccurate-gamma
Diffstat (limited to 'test')
-rw-r--r--test/colour_conversion_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/colour_conversion_test.cc b/test/colour_conversion_test.cc
index 5a6bdd85..04c182a3 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)
{
- double const * lut = tf->lut (bit_depth, inverse);
+ double const * lut = tf->lut ("all", 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)
{
- double const * lut = tf->lut (bit_depth, inverse);
+ double const * lut = tf->lut ("all", 0, 1, bit_depth, inverse);
int const count = rint (pow (2.0, bit_depth));
for (int i = 0; i < count; ++i) {