Optimise checking of existing image data.
[dcpomatic.git] / src / lib / dcp_decoder.h
index 3a05325c744ec195ed0b3320193840804b4e4dc1..15220810d0f63b5e9c871121084d110d7579f1ba 100644 (file)
@@ -30,17 +30,19 @@ 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);
 
 private:
-       bool pass (PassReason);
+       friend struct dcp_subtitle_within_dcp_test;
+
+       bool pass ();
        void seek (ContentTime t, bool accurate);
-       
+
        std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const;
        std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod, bool starting) const;