static void scaling_test_for (shared_ptr<Film> film, shared_ptr<VideoContent> content, string image, string container)
{
+ content->set_scale (VideoContentScale (Ratio::from_id (image)));
film->set_container (Ratio::from_id (container));
film->make_dcp ();
wait_for_jobs ();
- content->set_scale (VideoContentScale (Ratio::from_id (image)));
-
boost::filesystem::path ref;
ref = "test";
ref /= "data";
film->examine_and_add_content (imc);
wait_for_jobs ();
-
- imc->set_video_length (ContentTime::from_frames (1, 24));
+ imc->set_video_length (1);
+
+ /* F-133: 133 image in a flat container */
scaling_test_for (film, imc, "133", "185");
+ /* F: flat image in a flat container */
scaling_test_for (film, imc, "185", "185");
+ /* F-S: scope image in a flat container */
scaling_test_for (film, imc, "239", "185");
+ /* S-133: 133 image in a scope container */
scaling_test_for (film, imc, "133", "239");
+ /* S-F: flat image in a scope container */
scaling_test_for (film, imc, "185", "239");
+ /* S: scope image in a scope container */
scaling_test_for (film, imc, "239", "239");
}