diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-17 23:07:03 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-17 23:07:05 +0200 |
| commit | 4347717803d202a41792faf42e846fd73a0586bf (patch) | |
| tree | abc717a630e4768f3b05376274b8d47aaa059c57 /src/cpl.h | |
| parent | 47b82590f5d1538b599e323daa5e0c792e4d4695 (diff) | |
Introduce SMPTEFlavour and use it to decide which optional things to write.
This also adds a possibly-correct idea of what "SMPTE A" is supposed to mean.
Diffstat (limited to 'src/cpl.h')
| -rw-r--r-- | src/cpl.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -47,6 +47,7 @@ #include "key.h" #include "language_tag.h" #include "rating.h" +#include "smpte_flavour.h" #include "verify.h" #include <boost/filesystem.hpp> #include <boost/function.hpp> @@ -127,13 +128,11 @@ public: * * @param file Filename to write * @param signer Signer to sign the CPL, or 0 to add no signature - * @param include_mca_subdescriptors true to add a MCASubDescriptors tag to metadata, - * false to omit it. */ - void write_xml ( + void write_xml( boost::filesystem::path file, std::shared_ptr<const CertificateChain>, - bool include_mca_subdescriptors = true + SMPTEFlavour flavour = SMPTEFlavour::BV21 ) const; void resolve_refs (std::vector<std::shared_ptr<Asset>>); @@ -358,7 +357,7 @@ protected: private: friend struct ::verify_invalid_language3; - void maybe_write_composition_metadata_asset(xmlpp::Element* node, bool include_mca_subdescriptors) const; + void maybe_write_composition_metadata_asset(xmlpp::Element* node, SMPTEFlavour flavour) const; void read_composition_metadata_asset (cxml::ConstNodePtr node); void write_mca_subdescriptors(xmlpp::Element* parent, std::shared_ptr<const SoundAsset> asset) const; |
