Basics of splitting up Decoder tree like Content.
[dcpomatic.git] / src / lib / dcp_subtitle_decoder.h
index a27d6b2dba44ab9fa66f8fbbebc5b68736b9ef0c..fcefc0201c492326c8a44655f353546c8969afa2 100644 (file)
 
 class DCPSubtitleContent;
 
-class DCPSubtitleDecoder : public SubtitleDecoder, public DCPSubtitle
+class DCPSubtitleDecoder : public DCPSubtitle, public Decoder
 {
 public:
        DCPSubtitleDecoder (boost::shared_ptr<const DCPSubtitleContent>);
 
 protected:
-       bool pass ();
+       bool pass (PassReason, bool accurate);
        void seek (ContentTime time, bool accurate);
 
 private:
        std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const;
        std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod, bool starting) const;
+       ContentTimePeriod content_time_period (dcp::SubtitleString s) const;
 
        std::list<dcp::SubtitleString> _subtitles;
        std::list<dcp::SubtitleString>::const_iterator _next;