summaryrefslogtreecommitdiff
path: root/test/low_bitrate_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-09-15 23:36:21 +0200
committerCarl Hetherington <cth@carlh.net>2021-09-27 13:41:46 +0200
commit3799e91d126d243d41c44dcb0ca1bfa66b53a57e (patch)
tree74348b18d5ac0ef81bbebb27fe32862b22baa0b2 /test/low_bitrate_test.cc
parent9bfa07293928c371d59db2091ba2b7e715ce5994 (diff)
Replace aligned bool with enum Alignment.
Diffstat (limited to 'test/low_bitrate_test.cc')
-rw-r--r--test/low_bitrate_test.cc20
1 files changed, 18 insertions, 2 deletions
diff --git a/test/low_bitrate_test.cc b/test/low_bitrate_test.cc
index 33ce2635d..7050dd771 100644
--- a/test/low_bitrate_test.cc
+++ b/test/low_bitrate_test.cc
@@ -35,10 +35,26 @@ using std::make_shared;
BOOST_AUTO_TEST_CASE (low_bitrate_test)
{
- auto image = make_shared<Image>(AV_PIX_FMT_RGB24, dcp::Size(1998, 1080), true);
+ auto image = make_shared<Image>(AV_PIX_FMT_RGB24, dcp::Size(1998, 1080), Image::Alignment::PADDED);
image->make_black ();
+
auto proxy = make_shared<RawImageProxy>(image);
- auto frame = make_shared<PlayerVideo>(proxy, Crop(), boost::optional<double>(), dcp::Size(1998, 1080), dcp::Size(1998, 1080), Eyes::BOTH, Part::WHOLE, boost::optional<ColourConversion>(), VideoRange::FULL, std::weak_ptr<Content>(), boost::optional<Frame>(), false);
+
+ auto frame = make_shared<PlayerVideo>(
+ proxy,
+ Crop(),
+ boost::optional<double>(),
+ dcp::Size(1998, 1080),
+ dcp::Size(1998, 1080),
+ Eyes::BOTH,
+ Part::WHOLE,
+ boost::optional<ColourConversion>(),
+ VideoRange::FULL,
+ std::weak_ptr<Content>(),
+ boost::optional<Frame>(),
+ false
+ );
+
auto dcp_video = make_shared<DCPVideo>(frame, 0, 24, 100000000, Resolution::TWO_K);
auto j2k = dcp_video->encode_locally();
BOOST_REQUIRE (j2k.size() >= 16536);