Fix nonfunctional send-problem-report.
[dcpomatic.git] / src / lib / dcp_decoder.h
index 8afebff57dbe0858dc1ccb20e10de74b9acc45fe..32d334ec1530e45551f45639ddf63f25d30c0202 100644 (file)
@@ -30,18 +30,27 @@ 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:
+       friend struct dcp_subtitle_within_dcp_test;
+
+       bool pass (PassReason, bool accurate);
        void seek (ContentTime t, bool accurate);
-       bool pass ();
-       std::list<ContentTimePeriod> subtitles_during (ContentTimePeriod, bool starting) const;
 
+       std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const;
+       std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod, bool starting) const;
+
+       /** Time of next thing to return from pass relative to the start of _reel */
        ContentTime _next;
        std::list<boost::shared_ptr<dcp::Reel> > _reels;
        std::list<boost::shared_ptr<dcp::Reel> >::iterator _reel;