diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-22 14:57:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-22 14:57:56 +0100 |
| commit | d342a1befa88cb3f23c7e3fccfd1edaeea968fed (patch) | |
| tree | f566fa87d0de35f3f0c4d7e20752c83b8a5b9bce /src/lib/subtitle_decoder.h | |
| parent | 85d343a420c4df1a08663c8afd3bdb73c8dfa985 (diff) | |
Add ContentTimePeriod class.
Diffstat (limited to 'src/lib/subtitle_decoder.h')
| -rw-r--r-- | src/lib/subtitle_decoder.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/subtitle_decoder.h b/src/lib/subtitle_decoder.h index a26348ee6..fea4ab973 100644 --- a/src/lib/subtitle_decoder.h +++ b/src/lib/subtitle_decoder.h @@ -35,13 +35,13 @@ class SubtitleDecoder : public virtual Decoder public: SubtitleDecoder (); - std::list<boost::shared_ptr<ContentImageSubtitle> > get_image_subtitles (ContentTime from, ContentTime to); - std::list<boost::shared_ptr<ContentTextSubtitle> > get_text_subtitles (ContentTime from, ContentTime to); + std::list<boost::shared_ptr<ContentImageSubtitle> > get_image_subtitles (ContentTimePeriod period); + std::list<boost::shared_ptr<ContentTextSubtitle> > get_text_subtitles (ContentTimePeriod period); protected: void seek (ContentTime, bool); - void image_subtitle (ContentTime from, ContentTime to, boost::shared_ptr<Image>, dcpomatic::Rect<double>); + void image_subtitle (ContentTimePeriod period, boost::shared_ptr<Image>, dcpomatic::Rect<double>); void text_subtitle (std::list<dcp::SubtitleString>); std::list<boost::shared_ptr<ContentImageSubtitle> > _decoded_image_subtitles; @@ -49,7 +49,7 @@ protected: private: template <class T> - std::list<boost::shared_ptr<T> > get (std::list<boost::shared_ptr<T> > const & subs, ContentTime from, ContentTime to); + std::list<boost::shared_ptr<T> > get (std::list<boost::shared_ptr<T> > const & subs, ContentTimePeriod period); }; #endif |
