From 1b86d8b56cdb6f7289864fab708e40795494373d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 1 Feb 2026 22:49:03 +0100 Subject: Reproduce all extension metadata (even if not recognised). --- src/cpl.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'src/cpl.h') diff --git a/src/cpl.h b/src/cpl.h index 7bbb2d53..4f1bc834 100644 --- a/src/cpl.h +++ b/src/cpl.h @@ -44,6 +44,7 @@ #include "asset.h" #include "certificate.h" #include "content_kind.h" +#include "extension_metadata.h" #include "key.h" #include "language_tag.h" #include "main_sound_configuration.h" @@ -323,21 +324,13 @@ public: void set_additional_subtitle_languages(std::vector const& lang); - void set_sign_language_video_language(dcp::LanguageTag lang) { - _sign_language_video_language = lang.as_string(); - } + void set_sign_language_video_language(dcp::LanguageTag lang); - boost::optional sign_language_video_language() const { - return _sign_language_video_language; - } + boost::optional sign_language_video_language() const; - void set_dolby_edr_image_transfer_function(std::string function) { - _dolby_edr_image_transfer_function = function; - } + void set_dolby_edr_image_transfer_function(std::string const& function); - boost::optional dolby_edr_image_transfer_function() const { - return _dolby_edr_image_transfer_function; - } + boost::optional dolby_edr_image_transfer_function() const; Standard standard() const { return _standard; @@ -369,6 +362,13 @@ private: void maybe_write_composition_metadata_asset(xmlpp::Element* node) const; void read_composition_metadata_asset(cxml::ConstNodePtr node, std::vector* notes); std::vector create_mca_subdescriptors(std::shared_ptr asset) const; + boost::optional extension_metadata_value(std::string const& scope, std::string const& name, std::string const& property) const; + void set_extension_metadata_value( + std::string const& scope, + std::string const& name, + std::string const& property, + std::string const& value + ); std::string _issuer; std::string _creator; @@ -404,9 +404,8 @@ private: boost::optional _main_picture_active_area; /* See note for _release_territory above */ std::vector _additional_subtitle_languages; - boost::optional _sign_language_video_language; - boost::optional _dolby_edr_image_transfer_function; std::vector _mca_sub_descriptors; + std::vector _extension_metadata; bool _read_composition_metadata = false; std::vector> _reels; -- cgit v1.2.3