summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-11-22 14:54:31 +0000
committerCarl Hetherington <cth@carlh.net>2017-04-19 23:04:32 +0100
commite11276a822289d7d7d91a4f431f386ad28ef16dd (patch)
tree83c1162b3beb7f9fa11b24409309747dd9753959 /src/lib/subtitle_decoder.h
parentc6b0eb4db564abd41aa0685367a8660d7091e8f8 (diff)
Various work on the audio code.
Diffstat (limited to 'src/lib/subtitle_decoder.h')
-rw-r--r--src/lib/subtitle_decoder.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/subtitle_decoder.h b/src/lib/subtitle_decoder.h
index 904aaed78..a1c4b3ddc 100644
--- a/src/lib/subtitle_decoder.h
+++ b/src/lib/subtitle_decoder.h
@@ -48,6 +48,14 @@ public:
boost::shared_ptr<Log> log
);
+ void set_position (ContentTime position) {
+ _position = position;
+ }
+
+ boost::optional<ContentTime> position () const {
+ return _position;
+ }
+
void emit_image (ContentTimePeriod period, boost::shared_ptr<Image>, dcpomatic::Rect<double>);
void emit_text (ContentTimePeriod period, std::list<dcp::SubtitleString>);
void emit_text (ContentTimePeriod period, sub::Subtitle const & subtitle);
@@ -61,6 +69,7 @@ public:
private:
boost::shared_ptr<const SubtitleContent> _content;
+ boost::optional<ContentTime> _position;
};
#endif