*/
-#include "subtitle_decoder.h"
+#include "text_decoder.h"
#include "dcp_subtitle.h"
class DCPSubtitleContent;
class DCPSubtitleDecoder : public DCPSubtitle, public Decoder
{
public:
- DCPSubtitleDecoder (boost::shared_ptr<const DCPSubtitleContent>, boost::shared_ptr<Log> log);
+ DCPSubtitleDecoder (boost::shared_ptr<const Film> film, boost::shared_ptr<const DCPSubtitleContent>);
-protected:
- bool pass (PassReason, bool accurate);
- void seek (ContentTime time, bool accurate);
+ bool pass ();
+ void seek (dcpomatic::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;
+ dcpomatic::ContentTimePeriod content_time_period (boost::shared_ptr<dcp::Subtitle> s) const;
- std::list<dcp::SubtitleString> _subtitles;
- std::list<dcp::SubtitleString>::const_iterator _next;
+ std::list<boost::shared_ptr<dcp::Subtitle> > _subtitles;
+ std::list<boost::shared_ptr<dcp::Subtitle> >::const_iterator _next;
};