summaryrefslogtreecommitdiff
path: root/src/smpte_subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-06 15:14:58 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-06 15:14:58 +0100
commit4debca21936fd004fdcabe8d6178694f8cbf5f4d (patch)
tree50694eb7edee2800db77de3febe0532c666ab70a /src/smpte_subtitle_asset.h
parent4c2e6d70f15deb7e571af4a49c8643d3957f7b99 (diff)
Give SMPTESubtitleAsset an intrinsic duration since it is a MXF like Picture/Sound.
Diffstat (limited to 'src/smpte_subtitle_asset.h')
-rw-r--r--src/smpte_subtitle_asset.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/smpte_subtitle_asset.h b/src/smpte_subtitle_asset.h
index 6862ed11..23c0e948 100644
--- a/src/smpte_subtitle_asset.h
+++ b/src/smpte_subtitle_asset.h
@@ -58,6 +58,7 @@ public:
Glib::ustring xml_as_string () const;
void write (boost::filesystem::path path) const;
+ void add (SubtitleString);
void add_font (std::string id, boost::filesystem::path file);
void set_content_title_text (std::string t) {
@@ -84,6 +85,10 @@ public:
_start_time = t;
}
+ void set_intrinsic_duration (int64_t d) {
+ _intrinsic_duration = d;
+ }
+
/** @return title of the film that these subtitles are for,
* to be presented to the user.
*/
@@ -137,6 +142,10 @@ protected:
private:
void read_fonts (boost::shared_ptr<ASDCP::TimedText::MXFReader>);
+ /** The total length of this content in video frames. The amount of
+ * content presented may be less than this.
+ */
+ int64_t _intrinsic_duration;
std::string _content_title_text;
boost::optional<std::string> _language;
boost::optional<std::string> _annotation_text;