- L->video->set_frame_type (VIDEO_FRAME_TYPE_3D_LEFT);
- R->video->set_frame_type (VIDEO_FRAME_TYPE_3D_RIGHT);
+ L->video->set_frame_type (VideoFrameType::THREE_D_LEFT);
+ R->video->set_frame_type (VideoFrameType::THREE_D_RIGHT);
+
+ film->set_three_d (true);
+ make_and_verify_dcp (film);
+ check_dcp ("test/data/threed_test6", film->dir(film->dcp_name()));
+}
+
+
+/** Check 2D content set as being 3D; this should give an informative error */
+BOOST_AUTO_TEST_CASE (threed_test7)
+{
+ using boost::filesystem::path;
+
+ auto film = new_test_film2 ("threed_test7");
+ path const content_path = "test/data/flat_red.png";
+ auto c = content_factory(content_path).front();
+ film->examine_and_add_content (c);
+ BOOST_REQUIRE (!wait_for_jobs());
+
+ c->video->set_frame_type (VideoFrameType::THREE_D);
+ c->video->set_length (24);