summaryrefslogtreecommitdiff
path: root/src/lib/isdcf_metadata.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-10 17:14:17 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-10 17:14:17 +0100
commitf0cc79a6c34b8198155f6e519d4464385ea30049 (patch)
tree7509eb1f3ff30187905d55bb8c48a765a9ee209f /src/lib/isdcf_metadata.cc
parente7bc3bd16456c17bc6fe1d7981040b14e820505e (diff)
Support ISDCF naming convention version 9.
Reported-by: Elia Orselli
Diffstat (limited to 'src/lib/isdcf_metadata.cc')
-rw-r--r--src/lib/isdcf_metadata.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/isdcf_metadata.cc b/src/lib/isdcf_metadata.cc
index ae99280ca..dfba50a9a 100644
--- a/src/lib/isdcf_metadata.cc
+++ b/src/lib/isdcf_metadata.cc
@@ -38,6 +38,14 @@ ISDCFMetadata::ISDCFMetadata (shared_ptr<const cxml::Node> node)
studio = node->string_child ("Studio");
facility = node->string_child ("Facility");
package_type = node->string_child ("PackageType");
+
+ /* This stuff was added later */
+ temp_version = node->optional_bool_child ("TempVersion").get_value_or (false);
+ pre_release = node->optional_bool_child ("PreRelease").get_value_or (false);
+ red_band = node->optional_bool_child ("RedBand").get_value_or (false);
+ chain = node->optional_string_child ("Chain").get_value_or ("");
+ two_d_version_of_three_d = node->optional_bool_child ("TwoDVersionOfThreeD").get_value_or (false);
+ mastered_luminance = node->optional_string_child ("MasteredLuminance").get_value_or ("");
}
void
@@ -51,6 +59,12 @@ ISDCFMetadata::as_xml (xmlpp::Node* root) const
root->add_child("Studio")->add_child_text (studio);
root->add_child("Facility")->add_child_text (facility);
root->add_child("PackageType")->add_child_text (package_type);
+ root->add_child("TempVersion")->add_child_text (temp_version ? "1" : "0");
+ root->add_child("PreRelease")->add_child_text (pre_release ? "1" : "0");
+ root->add_child("RedBand")->add_child_text (red_band ? "1" : "0");
+ root->add_child("Chain")->add_child_text (chain);
+ root->add_child("TwoDVersionOfThreeD")->add_child_text (two_d_version_of_three_d ? "1" : "0");
+ root->add_child("MasteredLuminance")->add_child_text (mastered_luminance);
}
void