Reinstate subtitle speed-up patch 526fd6de4c80a7ac9614a1cb0209efff7b171cd5 but only...
[dcpomatic.git] / src / lib / dcp_decoder.h
index 7d26139ba47ab6d62a403c066fc091aab30f1c89..0db707160b88e6a9a736136e5b4f983fd5086771 100644 (file)
@@ -30,15 +30,21 @@ namespace dcp {
 }
 
 class DCPContent;
-class Log;
+struct dcp_subtitle_within_dcp_test;
 
 class DCPDecoder : public VideoDecoder, public AudioDecoder, public SubtitleDecoder
 {
 public:
-       DCPDecoder (boost::shared_ptr<const DCPContent>);
+       DCPDecoder (boost::shared_ptr<const DCPContent>, bool fast);
+
+       std::list<boost::shared_ptr<dcp::Reel> > reels () const {
+               return _reels;
+       }
 
 private:
-       bool pass ();
+       friend struct dcp_subtitle_within_dcp_test;
+
+       bool pass (PassReason, bool accurate);
        void seek (ContentTime t, bool accurate);
 
        std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const;