X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fsubrip_decoder.h;h=b899b5dd8cd53138e735016bcfa06a282d7d64ff;hb=9e025d3f85f9d6d855b3d5e6c90bca0eac3a3d49;hp=26d5d501006c021ee7892667246b626e817a43f3;hpb=58588c485eac7c488a574fe923576f109ec0134e;p=dcpomatic.git diff --git a/src/lib/subrip_decoder.h b/src/lib/subrip_decoder.h index 26d5d5010..b899b5dd8 100644 --- a/src/lib/subrip_decoder.h +++ b/src/lib/subrip_decoder.h @@ -28,11 +28,17 @@ class SubRipContent; class SubRipDecoder : public SubtitleDecoder, public SubRip { public: - SubRipDecoder (boost::shared_ptr, boost::shared_ptr); - - bool pass (); + SubRipDecoder (boost::shared_ptr); + +protected: + void seek (ContentTime time, bool accurate); + bool pass (PassReason); private: + std::list image_subtitles_during (ContentTimePeriod, bool starting) const; + std::list text_subtitles_during (ContentTimePeriod, bool starting) const; + ContentTimePeriod content_time_period (sub::Subtitle s) const; + size_t _next; };