- sound MXF Language [/]
- ccap reel <Language> [/]
- MainSubtitleLanguageList [/]
- - RFC5646SpokenLanguage
+ - RFC5646SpokenLanguage [*] awkward; held in MXFs and duplicated in CPL metadata
- CPL metadata ReleaseTerritory
+7 [/]
+7.1 picture essence encoding; frame size, rate and 2D/3D will be one of the four allowed combinations
+
#include <vector>
-struct verify_invalid_sound_reel_and_additional_language;
+struct verify_various_invalid_languages;
namespace dcp {
std::string pkl_type (Standard standard) const;
private:
- friend struct ::verify_invalid_sound_reel_and_additional_language;
+ friend struct ::verify_various_invalid_languages;
void maybe_write_composition_metadata_asset (xmlpp::Element* node) const;
void read_composition_metadata_asset (cxml::ConstNodePtr node);
verify_language_tag (i, notes);
}
+ if (cpl->release_territory()) {
+ verify_language_tag (cpl->release_territory().get(), notes);
+ }
+
/* Check that the CPL's hash corresponds to the PKL */
BOOST_FOREACH (shared_ptr<PKL> i, dcp->pkls()) {
optional<string> h = i->hash(cpl->id());
}
-/* SMPTE DCP with invalid <Language> in the MainSound reel and in the CPL additional subtitles languages */
-BOOST_AUTO_TEST_CASE (verify_invalid_sound_reel_and_additional_language)
+/* SMPTE DCP with invalid <Language> in the MainSound reel, the CPL additional subtitles languages and
+ * the release territory.
+ */
+BOOST_AUTO_TEST_CASE (verify_various_invalid_languages)
{
- boost::filesystem::path const dir("build/test/verify_invalid_sound_reel_and_additional_language");
+ boost::filesystem::path const dir("build/test/verify_various_invalid_languages");
prepare_directory (dir);
shared_ptr<dcp::MonoPictureAsset> picture = simple_picture (dir, "foo");
cpl->set_main_sound_sample_rate (48000);
cpl->set_main_picture_stored_area (dcp::Size(1998, 1080));
cpl->set_main_picture_active_area (dcp::Size(1440, 1080));
+ cpl->_release_territory = "fred-jim";
shared_ptr<dcp::DCP> dcp(new dcp::DCP(dir));
dcp->add (cpl);
dcp->write_xml (dcp::SMPTE);
vector<boost::filesystem::path> dirs;
dirs.push_back (dir);
list<dcp::VerificationNote> notes = dcp::verify (dirs, &stage, &progress, xsd_test);
- BOOST_REQUIRE_EQUAL (notes.size(), 3U);
+ BOOST_REQUIRE_EQUAL (notes.size(), 4U);
list<dcp::VerificationNote>::const_iterator i = notes.begin ();
BOOST_CHECK_EQUAL (i->code(), dcp::VerificationNote::BAD_LANGUAGE);
BOOST_REQUIRE (i->note());
++i;
BOOST_CHECK_EQUAL (i->code(), dcp::VerificationNote::BAD_LANGUAGE);
BOOST_REQUIRE (i->note());
+ BOOST_CHECK_EQUAL (*i->note(), "fred-jim");
+ ++i;
+ BOOST_CHECK_EQUAL (i->code(), dcp::VerificationNote::BAD_LANGUAGE);
+ BOOST_REQUIRE (i->note());
BOOST_CHECK_EQUAL (*i->note(), "frobozz");
++i;
}