diff options
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 5dc808c02..e6bf3bd5e 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -97,6 +97,7 @@ Film::Film (boost::filesystem::path dir) , _audio_channels (MAX_AUDIO_CHANNELS) , _three_d (false) , _sequence_video (true) + , _interop (false) , _dirty (false) { set_dci_date_today (); @@ -142,6 +143,12 @@ Film::video_identifier () const << "_" << scaler()->id() << "_" << j2k_bandwidth(); + if (_interop) { + s << "_I"; + } else { + s << "_S"; + } + if (_three_d) { s << "_3D"; } @@ -331,6 +338,7 @@ Film::write_metadata () const root->add_child("AudioChannels")->add_child_text (lexical_cast<string> (_audio_channels)); root->add_child("ThreeD")->add_child_text (_three_d ? "1" : "0"); root->add_child("SequenceVideo")->add_child_text (_sequence_video ? "1" : "0"); + root->add_child("Interop")->add_child_text (_interop ? "1" : "0"); _playlist->as_xml (root->add_child ("Playlist")); doc.write_to_file_formatted (file ("metadata.xml")); @@ -377,6 +385,7 @@ Film::read_metadata () _audio_channels = f.number_child<int> ("AudioChannels"); _sequence_video = f.bool_child ("SequenceVideo"); _three_d = f.bool_child ("ThreeD"); + _interop = f.bool_child ("Interop"); _playlist->set_from_xml (shared_from_this(), f.node_child ("Playlist")); @@ -615,6 +624,13 @@ Film::set_three_d (bool t) } void +Film::set_interop (bool i) +{ + _interop = i; + signal_changed (INTEROP); +} + +void Film::signal_changed (Property p) { _dirty = true; |
