summaryrefslogtreecommitdiff
path: root/src/lib/film.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-18 01:06:49 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-20 22:57:59 +0100
commite519feaca11005d330e7b8403b948d4ad9cc3ae8 (patch)
tree5c43aba1dd590d1abad189ac7f39b5d4ecbb1f5e /src/lib/film.h
parent556dd9cc254bf3ef18c41fcfe5948484c91cc440 (diff)
Store subtitle language(s) in Film, and allow setup of those
languages from the Interop/SMPTE metadata dialogues.
Diffstat (limited to 'src/lib/film.h')
-rw-r--r--src/lib/film.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/film.h b/src/lib/film.h
index 4854d2ae7..4c71c9e16 100644
--- a/src/lib/film.h
+++ b/src/lib/film.h
@@ -175,8 +175,6 @@ public:
return _state_version;
}
- std::string subtitle_language () const;
-
std::vector<NamedChannel> audio_output_names () const;
void repeat_content (ContentList, int);
@@ -240,7 +238,8 @@ public:
CHAIN,
DISTRIBUTOR,
FACILITY,
- LUMINANCE
+ LUMINANCE,
+ SUBTITLE_LANGUAGES
};
@@ -378,6 +377,10 @@ public:
return _luminance;
}
+ std::vector<dcp::LanguageTag> subtitle_languages () const {
+ return _subtitle_languages;
+ }
+
/* SET */
void set_directory (boost::filesystem::path);
@@ -419,6 +422,9 @@ public:
void set_facility (std::string f);
void set_distributor (std::string d);
void set_luminance (dcp::Luminance l);
+ void set_subtitle_language (dcp::LanguageTag language);
+ void unset_subtitle_language ();
+ void set_subtitle_languages (std::vector<dcp::LanguageTag> languages);
void add_ffoc_lfoc (Markers& markers) const;
@@ -524,6 +530,7 @@ private:
std::string _distributor;
std::string _facility;
dcp::Luminance _luminance;
+ std::vector<dcp::LanguageTag> _subtitle_languages;
int _state_version;