summaryrefslogtreecommitdiff
path: root/src/lib/kdm.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-26 19:15:56 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-26 19:15:56 +0100
commit075f418cc6d9be06bed7a1d98257ae8d17ef3019 (patch)
treea5a6924da614ea0c65657802fffd291e67487532 /src/lib/kdm.cc
parentd1125d09c7741d05b57b1520531a0451663ad66c (diff)
Support different KDM formulations.
Diffstat (limited to 'src/lib/kdm.cc')
-rw-r--r--src/lib/kdm.cc21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/lib/kdm.cc b/src/lib/kdm.cc
index 5efea089c..49bfae20a 100644
--- a/src/lib/kdm.cc
+++ b/src/lib/kdm.cc
@@ -105,10 +105,11 @@ make_screen_kdms (
list<shared_ptr<Screen> > screens,
boost::filesystem::path cpl,
boost::posix_time::ptime from,
- boost::posix_time::ptime to
+ boost::posix_time::ptime to,
+ libdcp::KDM::Formulation formulation
)
{
- list<libdcp::KDM> kdms = film->make_kdms (screens, cpl, from, to);
+ list<libdcp::KDM> kdms = film->make_kdms (screens, cpl, from, to, formulation);
list<ScreenKDM> screen_kdms;
@@ -129,10 +130,11 @@ make_cinema_kdms (
list<shared_ptr<Screen> > screens,
boost::filesystem::path cpl,
boost::posix_time::ptime from,
- boost::posix_time::ptime to
+ boost::posix_time::ptime to,
+ libdcp::KDM::Formulation formulation
)
{
- list<ScreenKDM> screen_kdms = make_screen_kdms (film, screens, cpl, from, to);
+ list<ScreenKDM> screen_kdms = make_screen_kdms (film, screens, cpl, from, to, formulation);
list<CinemaKDMs> cinema_kdms;
while (!screen_kdms.empty ()) {
@@ -175,10 +177,11 @@ write_kdm_files (
boost::filesystem::path cpl,
boost::posix_time::ptime from,
boost::posix_time::ptime to,
+ libdcp::KDM::Formulation formulation,
boost::filesystem::path directory
)
{
- list<ScreenKDM> screen_kdms = make_screen_kdms (film, screens, cpl, from, to);
+ list<ScreenKDM> screen_kdms = make_screen_kdms (film, screens, cpl, from, to, formulation);
/* Write KDMs to the specified directory */
for (list<ScreenKDM>::iterator i = screen_kdms.begin(); i != screen_kdms.end(); ++i) {
@@ -195,10 +198,11 @@ write_kdm_zip_files (
boost::filesystem::path cpl,
boost::posix_time::ptime from,
boost::posix_time::ptime to,
+ libdcp::KDM::Formulation formulation,
boost::filesystem::path directory
)
{
- list<CinemaKDMs> cinema_kdms = make_cinema_kdms (film, screens, cpl, from, to);
+ list<CinemaKDMs> cinema_kdms = make_cinema_kdms (film, screens, cpl, from, to, formulation);
for (list<CinemaKDMs>::const_iterator i = cinema_kdms.begin(); i != cinema_kdms.end(); ++i) {
boost::filesystem::path path = directory;
@@ -213,10 +217,11 @@ email_kdms (
list<shared_ptr<Screen> > screens,
boost::filesystem::path cpl,
boost::posix_time::ptime from,
- boost::posix_time::ptime to
+ boost::posix_time::ptime to,
+ libdcp::KDM::Formulation formulation
)
{
- list<CinemaKDMs> cinema_kdms = make_cinema_kdms (film, screens, cpl, from, to);
+ list<CinemaKDMs> cinema_kdms = make_cinema_kdms (film, screens, cpl, from, to, formulation);
for (list<CinemaKDMs>::const_iterator i = cinema_kdms.begin(); i != cinema_kdms.end(); ++i) {