X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fvideo_level_test.cc;h=5ff8bc4c9c1b95fe7026ba40bd4e176d6fb817b1;hb=ebf89c5e6200b65e5cc48bb7b3af23ab68ede749;hp=54513464cd9bdedda41e8ae4766d48cc9d98beea;hpb=3799e91d126d243d41c44dcb0ca1bfa66b53a57e;p=dcpomatic.git diff --git a/test/video_level_test.cc b/test/video_level_test.cc index 54513464c..5ff8bc4c9 100644 --- a/test/video_level_test.cc +++ b/test/video_level_test.cc @@ -114,9 +114,9 @@ BOOST_AUTO_TEST_CASE (ffmpeg_image_video_range_expanded) write_image(grey_image(size, grey_pixel), file); - auto content = content_factory(file).front(); - auto film = new_test_film2 ("ffmpeg_image_video_range_expanded", { content }); - content->video->set_range (VideoRange::VIDEO); + auto content = content_factory(file); + auto film = new_test_film2 ("ffmpeg_image_video_range_expanded", content); + content[0]->video->set_range (VideoRange::VIDEO); auto player = make_shared(film, film->playlist()); shared_ptr player_video; @@ -127,7 +127,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_image_video_range_expanded) BOOST_REQUIRE (!player->pass()); } - auto image = player_video->image ([](AVPixelFormat f) { return f; }, VideoRange::FULL, Image::Alignment::PADDED, false); + auto image = player_video->image ([](AVPixelFormat f) { return f; }, VideoRange::FULL, false); for (int y = 0; y < size.height; ++y) { uint8_t* p = image->data()[0] + y * image->stride()[0]; @@ -260,7 +260,7 @@ shared_ptr movie_V (string name) { auto film = new_test_film2 (name); - auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.mp4").front()); + auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.mp4")[0]); BOOST_REQUIRE (content); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); @@ -278,7 +278,7 @@ shared_ptr movie_VoF (string name) { auto film = new_test_film2 (name); - auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.mp4").front()); + auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.mp4")[0]); BOOST_REQUIRE (content); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); @@ -297,7 +297,7 @@ shared_ptr movie_F (string name) { auto film = new_test_film2 (name); - auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.mov").front()); + auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.mov")[0]); BOOST_REQUIRE (content); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); @@ -315,7 +315,7 @@ shared_ptr movie_FoV (string name) { auto film = new_test_film2 (name); - auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.mov").front()); + auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.mov")[0]); BOOST_REQUIRE (content); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); @@ -334,7 +334,7 @@ shared_ptr image_F (string name) { auto film = new_test_film2 (name); - auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.png").front()); + auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.png")[0]); BOOST_REQUIRE (content); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); @@ -352,7 +352,7 @@ shared_ptr image_FoV (string name) { auto film = new_test_film2 (name); - auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.png").front()); + auto content = dynamic_pointer_cast(content_factory("test/data/rgb_grey_testcard.png")[0]); BOOST_REQUIRE (content); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); @@ -406,9 +406,9 @@ static pair V_movie_range (shared_ptr film) { - auto job = make_shared(film); + auto job = make_shared(film, TranscodeJob::ChangedBehaviour::IGNORE); job->set_encoder ( - make_shared(film, job, film->file("export.mov"), ExportFormat::PRORES, true, false, false, 23) + make_shared(film, job, film->file("export.mov"), ExportFormat::PRORES_HQ, true, false, false, 23) ); JobManager::instance()->add (job); BOOST_REQUIRE (!wait_for_jobs());