diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-27 22:59:12 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-09-21 21:57:18 +0200 |
| commit | b933775fc54e0b51ad3777d72bf2866f0c04bacc (patch) | |
| tree | c13133d7cfe9722f3b2eeaa52a8686e029172377 /src/reel_subtitle_asset.h | |
| parent | 1ae2755dbbaa30b6240dfd304c289253a577b424 (diff) | |
Support CPL metadata.
Diffstat (limited to 'src/reel_subtitle_asset.h')
| -rw-r--r-- | src/reel_subtitle_asset.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/reel_subtitle_asset.h b/src/reel_subtitle_asset.h index 4cc03cf1..123478cf 100644 --- a/src/reel_subtitle_asset.h +++ b/src/reel_subtitle_asset.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2017 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net> This file is part of libdcp. @@ -38,6 +38,7 @@ #ifndef LIBDCP_REEL_SUBTITLE_ASSET_H #define LIBDCP_REEL_SUBTITLE_ASSET_H +#include "language_tag.h" #include "reel_asset.h" #include "reel_mxf.h" #include "subtitle_asset.h" @@ -62,9 +63,17 @@ public: return asset_of_type<SubtitleAsset> (); } + void set_language (dcp::LanguageTag language); + + boost::optional<dcp::LanguageTag> language () const { + return _language; + } + private: std::string key_type () const; std::string cpl_node_name (Standard standard) const; + + boost::optional<dcp::LanguageTag> _language; }; } |
