diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-04-25 23:27:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-04-25 23:27:42 +0100 |
| commit | 588397fc600e888acf77375fe39c238ff2bf3649 (patch) | |
| tree | 57de26395a3ae08555b805b969082bfae7f3ffaa /src/lib/player.h | |
| parent | d19ba00f1995495977bdee206305c42a96eb0f57 (diff) | |
Collect player subtitle processing into a Subtitle class.
Diffstat (limited to 'src/lib/player.h')
| -rw-r--r-- | src/lib/player.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/lib/player.h b/src/lib/player.h index 4368f48ba..5dad80ec7 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -30,6 +30,7 @@ #include "audio_merger.h" #include "audio_content.h" #include "piece.h" +#include "subtitle.h" class Job; class Film; @@ -142,20 +143,7 @@ private: boost::shared_ptr<PlayerImage> _black_frame; std::map<boost::shared_ptr<AudioContent>, boost::shared_ptr<Resampler> > _resamplers; - struct { - boost::weak_ptr<Piece> piece; - boost::shared_ptr<Image> image; - dcpomatic::Rect<double> rect; - Time from; - Time to; - } _in_subtitle; - - struct { - boost::shared_ptr<Image> image; - Position<int> position; - Time from; - Time to; - } _out_subtitle; + boost::optional<Subtitle> _subtitle; #ifdef DCPOMATIC_DEBUG boost::shared_ptr<Content> _last_video; |
