*/
+#include <boost/test/unit_test.hpp>
+#include <boost/filesystem.hpp>
+#include "lib/film.h"
+#include "lib/ffmpeg_content.h"
+#include "lib/ratio.h"
+#include "lib/dcp_content_type.h"
+#include "test.h"
+
+using boost::shared_ptr;
+
/** @file test/ffmpeg_dcp_test.cc
* @brief Test scaling and black-padding of images from a still-image source.
*/
shared_ptr<Film> film = new_test_film ("ffmpeg_dcp_test");
film->set_name ("test_film2");
shared_ptr<FFmpegContent> c (new FFmpegContent (film, "test/data/test.mp4"));
- c->set_ratio (Ratio::from_id ("185"));
+ c->set_scale (VideoContentScale (Ratio::from_id ("185")));
film->examine_and_add_content (c);
wait_for_jobs ();
boost::filesystem::path p = test_film_dir ("ffmpeg_dcp_test");
shared_ptr<Film> f (new Film (p.string ()));
f->read_metadata ();
- BOOST_CHECK (f->have_dcp());
+ BOOST_CHECK (!f->dcps().empty());
p /= f->dcp_name();
- p /= f->dcp_video_mxf_filename();
+ p /= f->video_mxf_filename();
boost::filesystem::remove (p);
- BOOST_CHECK (!f->have_dcp ());
+ BOOST_CHECK (f->dcps().empty());
}