diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-08-11 22:56:59 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-08-11 22:56:59 +0100 |
| commit | 910ea473219f2e7c672ad437d458316deca67025 (patch) | |
| tree | 1af0895962ad3e122858c42d9b7df54e2d0a9bdd /src/wx/kdm_dialog.cc | |
| parent | bd83f1b0e1d8e7aae0af51376dbbb88d5e3f69d0 (diff) | |
Allow specification of audio forensic marking (in KDMs) for some channels only. Default to enabling forensic marking for video and audio (up to and including channel 12). Fixes #1498.
Diffstat (limited to 'src/wx/kdm_dialog.cc')
| -rw-r--r-- | src/wx/kdm_dialog.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc index 55b89a371..5a31501cf 100644 --- a/src/wx/kdm_dialog.cc +++ b/src/wx/kdm_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2019 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -51,6 +51,7 @@ using std::make_pair; using std::runtime_error; using boost::shared_ptr; using boost::bind; +using boost::optional; KDMDialog::KDMDialog (wxWindow* parent, shared_ptr<const Film> film) : wxDialog (parent, wxID_ANY, _("Make KDMs")) @@ -151,10 +152,18 @@ KDMDialog::make_clicked () list<shared_ptr<ScreenKDM> > screen_kdms; try { - + /* Start off by enabling forensic marking for all */ + optional<int> for_audio; + if (!_output->forensic_mark_audio()) { + /* No forensic marking for audio */ + for_audio = 0; + } else if (_output->forensic_mark_audio_up_to()) { + /* Forensic mark up to this channel; disabled on channels greater than this */ + for_audio = _output->forensic_mark_audio_up_to(); + } screen_kdms = film->make_kdms ( _screens->screens(), _cpl->cpl(), _timing->from(), _timing->until(), _output->formulation(), - !_output->forensic_mark_video(), _output->forensic_mark_audio() ? boost::optional<int>() : 0 + !_output->forensic_mark_video(), for_audio ); } catch (runtime_error& e) { |
