X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_decoder.h;h=e5533927b4b77f9e485ff56efcd498f8f0dc8976;hb=d60fd90a6e13c727a05b629c8c4b93d4bf3b717b;hp=4b52a1ac418d25582d9f6a70c9ad4e30c48e1c5b;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_decoder.h b/src/lib/dcp_subtitle_decoder.h index 4b52a1ac4..e5533927b 100644 --- a/src/lib/dcp_subtitle_decoder.h +++ b/src/lib/dcp_subtitle_decoder.h @@ -18,7 +18,7 @@ */ -#include "subtitle_decoder.h" +#include "text_decoder.h" #include "dcp_subtitle.h" class DCPSubtitleContent; @@ -26,17 +26,14 @@ class DCPSubtitleContent; class DCPSubtitleDecoder : public DCPSubtitle, public Decoder { public: - DCPSubtitleDecoder (boost::shared_ptr); + DCPSubtitleDecoder (boost::shared_ptr film, boost::shared_ptr); -protected: - bool pass (PassReason, bool accurate); + bool pass (); void seek (ContentTime time, bool accurate); private: - std::list image_subtitles_during (ContentTimePeriod, bool starting) const; - std::list text_subtitles_during (ContentTimePeriod, bool starting) const; - ContentTimePeriod content_time_period (dcp::SubtitleString s) const; + ContentTimePeriod content_time_period (boost::shared_ptr s) const; - std::list _subtitles; - std::list::const_iterator _next; + std::list > _subtitles; + std::list >::const_iterator _next; };