diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-10-19 23:40:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-10-19 23:40:31 +0100 |
| commit | 8c2d83b42b14b52310fdd8b7709d961e4e48aac5 (patch) | |
| tree | 69a30935f4349726cc308f8dd260f7bf3c221ada /test | |
| parent | 11ce310370ec99c0e382fa60f7b39157c1f0b4a4 (diff) | |
Fix misunderstandings in decoder frame handling for 3D/3D-alternate.
Diffstat (limited to 'test')
| -rw-r--r-- | test/threed_test.cc | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/test/threed_test.cc b/test/threed_test.cc index 5a28122c0..4ffbdf0e6 100644 --- a/test/threed_test.cc +++ b/test/threed_test.cc @@ -34,9 +34,9 @@ using std::cout; using boost::shared_ptr; -BOOST_AUTO_TEST_CASE (threed_test) +BOOST_AUTO_TEST_CASE (threed_test1) { - shared_ptr<Film> film = new_test_film ("threed_test"); + shared_ptr<Film> film = new_test_film ("threed_test2"); film->set_name ("test_film2"); shared_ptr<FFmpegContent> c (new FFmpegContent (film, "test/data/test.mp4")); film->examine_and_add_content (c); @@ -53,3 +53,26 @@ BOOST_AUTO_TEST_CASE (threed_test) wait_for_jobs (); } + +/** Basic sanity check of 3D-alternate; at the moment this is just to make sure + * that such a transcode completes without error. + */ +BOOST_AUTO_TEST_CASE (threed_test2) +{ + shared_ptr<Film> film = new_test_film ("threed_test2"); + film->set_name ("test_film2"); + shared_ptr<FFmpegContent> c (new FFmpegContent (film, "test/data/test.mp4")); + film->examine_and_add_content (c); + wait_for_jobs (); + + c->video->set_frame_type (VIDEO_FRAME_TYPE_3D_ALTERNATE); + c->video->set_scale (VideoContentScale (Ratio::from_id ("185"))); + + film->set_container (Ratio::from_id ("185")); + film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TST")); + film->set_three_d (true); + film->make_dcp (); + film->write_metadata (); + + wait_for_jobs (); +} |
