summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-05 20:31:26 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-05 21:09:40 +0200
commitad7244de981a7dd0b9b4f8f3d62d4704f1968012 (patch)
tree2d5818563e35585b3a45d42b2a7ffd51584592fc /test
parentf755fd20c0c026128e23a165e3b524a275d6f803 (diff)
Use std::vector for LUTs.
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..c1e7fc1a 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);
+ auto lut = tf->lut (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);
+ auto lut = tf->lut (bit_depth, inverse);
int const count = rint (pow (2.0, bit_depth));
for (int i = 0; i < count; ++i) {