diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-31 03:14:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-31 03:14:24 +0100 |
| commit | 8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8 (patch) | |
| tree | f8b25b13ac3732838be259e469d045438d999e7b /test/video_level_test.cc | |
| parent | 4985d87750c87019dfe5dc7ef44e12c45326dd0e (diff) | |
More enum class additions.
Diffstat (limited to 'test/video_level_test.cc')
| -rw-r--r-- | test/video_level_test.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/video_level_test.cc b/test/video_level_test.cc index 632551fa4..2461bb9b3 100644 --- a/test/video_level_test.cc +++ b/test/video_level_test.cc @@ -56,6 +56,7 @@ using std::max; using std::pair; using std::string; using std::dynamic_pointer_cast; +using std::make_shared; using boost::optional; #if BOOST_VERSION >= 106100 using namespace boost::placeholders; @@ -67,7 +68,7 @@ static shared_ptr<Image> grey_image (dcp::Size size, uint8_t pixel) { - shared_ptr<Image> grey(new Image(AV_PIX_FMT_RGB24, size, true)); + auto grey = make_shared<Image>(AV_PIX_FMT_RGB24, size, true); for (int y = 0; y < size.height; ++y) { uint8_t* p = grey->data()[0] + y * grey->stride()[0]; for (int x = 0; x < size.width; ++x) { @@ -414,14 +415,14 @@ V_movie_range (shared_ptr<Film> film) shared_ptr<TranscodeJob> job (new TranscodeJob(film)); job->set_encoder ( shared_ptr<FFmpegEncoder>( - new FFmpegEncoder (film, job, film->file("export.mov"), EXPORT_FORMAT_PRORES, true, false, false, 23) + new FFmpegEncoder (film, job, film->file("export.mov"), ExportFormat::PRORES, true, false, false, 23) ) ); JobManager::instance()->add (job); BOOST_REQUIRE (!wait_for_jobs()); /* This is a bit of a hack; add the exported file into the project so we can decode it */ - shared_ptr<FFmpegContent> content(new FFmpegContent(film->file("export.mov"))); + auto content = make_shared<FFmpegContent>(film->file("export.mov")); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); |
