summaryrefslogtreecommitdiff
path: root/test/optimise_stills_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-20 16:54:37 +0200
committerCarl Hetherington <cth@carlh.net>2024-05-21 23:52:46 +0200
commite3dba6242aed7415eddbbfb1e5d56ce6680603c1 (patch)
tree8628ae20b900cd03638648ef34711a56bf7ef3a6 /test/optimise_stills_test.cc
parent19b6cd41712d38cb5b1c97659c8a1cc86e784812 (diff)
Replace all new_test_film with new_test_film2.
Diffstat (limited to 'test/optimise_stills_test.cc')
-rw-r--r--test/optimise_stills_test.cc18
1 files changed, 4 insertions, 14 deletions
diff --git a/test/optimise_stills_test.cc b/test/optimise_stills_test.cc
index 50514041b..5bf94c0a5 100644
--- a/test/optimise_stills_test.cc
+++ b/test/optimise_stills_test.cc
@@ -74,14 +74,9 @@ check (string name, int check_full, int check_repeat)
/** Make a 2D DCP out of a 2D still and check that the J2K encoding is only done once for each frame */
BOOST_AUTO_TEST_CASE (optimise_stills_test1)
{
- auto film = new_test_film ("optimise_stills_test1");
- LogSwitcher ls (film->log());
- film->set_container (Ratio::from_id ("185"));
- film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR"));
- film->set_name ("frobozz");
auto content = content_factory("test/data/flat_red.png")[0];
- film->examine_and_add_content (content);
- BOOST_REQUIRE (!wait_for_jobs ());
+ auto film = new_test_film2("optimise_stills_test1", { content });
+ LogSwitcher ls (film->log());
make_and_verify_dcp (film);
check ("optimise_stills_test1", 1, 10 * 24 - 1);
@@ -91,14 +86,9 @@ BOOST_AUTO_TEST_CASE (optimise_stills_test1)
/** Make a 3D DCP out of a 3D L/R still and check that the J2K encoding is only done once for L and R */
BOOST_AUTO_TEST_CASE (optimise_stills_test2)
{
- auto film = new_test_film ("optimise_stills_test2");
- LogSwitcher ls (film->log());
- film->set_container (Ratio::from_id ("185"));
- film->set_dcp_content_type (DCPContentType::from_isdcf_name("TLR"));
- film->set_name ("frobozz");
auto content = content_factory("test/data/flat_red.png")[0];
- film->examine_and_add_content (content);
- BOOST_REQUIRE (!wait_for_jobs ());
+ auto film = new_test_film2("optimise_stills_test2", { content });
+ LogSwitcher ls (film->log());
content->video->set_frame_type (VideoFrameType::THREE_D_LEFT_RIGHT);
film->set_three_d (true);
make_and_verify_dcp (film);