diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-01 22:53:01 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-04 17:17:12 +0200 |
| commit | 08f96200aacf9f91ef3e3f5b80224a5b2437f279 (patch) | |
| tree | 04ed6b723d3c41e514f8f78659590a89809b3658 /src/lib | |
| parent | e81c5eb9e8ff875240dde9fdaaab0a46f99af615 (diff) | |
Move Film::make_kdms to the call sites.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/film.cc | 41 | ||||
| -rw-r--r-- | src/lib/film.h | 13 |
2 files changed, 1 insertions, 53 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index a24e9aa30..cbbdf5964 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -1502,47 +1502,6 @@ Film::make_kdm ( ).encrypt (signer, recipient, trusted_devices, formulation, disable_forensic_marking_picture, disable_forensic_marking_audio); } -/** @param screens Screens to make KDMs for. - * @param cpl_file Path to CPL to make KDMs for. - * @param from KDM from time expressed as a local time in the time zone of the Screen's Cinema. - * @param until KDM to time expressed as a local time in the time zone of the Screen's Cinema. - * @param formulation KDM formulation to use. - * @param disable_forensic_marking_picture true to disable forensic marking of picture. - * @param disable_forensic_marking_audio if not set, don't disable forensic marking of audio. If set to 0, - * disable all forensic marking; if set above 0, disable forensic marking above that channel. - */ -list<shared_ptr<ScreenKDM> > -Film::make_kdms ( - list<shared_ptr<Screen> > screens, - boost::filesystem::path cpl_file, - boost::posix_time::ptime from, - boost::posix_time::ptime until, - dcp::Formulation formulation, - bool disable_forensic_marking_picture, - optional<int> disable_forensic_marking_audio - ) const -{ - list<shared_ptr<ScreenKDM> > kdms; - - BOOST_FOREACH (shared_ptr<Screen> i, screens) { - if (i->recipient) { - dcp::EncryptedKDM const kdm = make_kdm ( - i->recipient.get(), - i->trusted_device_thumbprints(), - cpl_file, - dcp::LocalTime (from, i->cinema ? i->cinema->utc_offset_hour() : 0, i->cinema ? i->cinema->utc_offset_minute() : 0), - dcp::LocalTime (until, i->cinema ? i->cinema->utc_offset_hour() : 0, i->cinema ? i->cinema->utc_offset_minute() : 0), - formulation, - disable_forensic_marking_picture, - disable_forensic_marking_audio - ); - - kdms.push_back (shared_ptr<ScreenKDM>(new DCPScreenKDM(i, kdm))); - } - } - - return kdms; -} /** @return The approximate disk space required to encode a DCP of this film with the * current settings, in bytes. diff --git a/src/lib/film.h b/src/lib/film.h index 6cce07c17..40d366f8f 100644 --- a/src/lib/film.h +++ b/src/lib/film.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2019 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -60,7 +60,6 @@ class AudioProcessor; class AudioMapping; class Ratio; class Job; -class ScreenKDM; class Film; struct isdcf_name_test; @@ -169,16 +168,6 @@ public: boost::optional<int> disable_forensic_marking_audio ) const; - std::list<boost::shared_ptr<ScreenKDM> > make_kdms ( - std::list<boost::shared_ptr<dcpomatic::Screen> > screens, - boost::filesystem::path cpl_file, - boost::posix_time::ptime from, - boost::posix_time::ptime until, - dcp::Formulation formulation, - bool disable_forensic_marking_picture, - boost::optional<int> disable_forensic_marking_audio - ) const; - int state_version () const { return _state_version; } |
