X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_decoder.h;h=32d334ec1530e45551f45639ddf63f25d30c0202;hb=aebfa24afe42d80693df66318e5d2818ebf5989b;hp=7d26139ba47ab6d62a403c066fc091aab30f1c89;hpb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;p=dcpomatic.git diff --git a/src/lib/dcp_decoder.h b/src/lib/dcp_decoder.h index 7d26139ba..32d334ec1 100644 --- a/src/lib/dcp_decoder.h +++ b/src/lib/dcp_decoder.h @@ -30,20 +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); + DCPDecoder (boost::shared_ptr, bool fast); + + std::list > 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 image_subtitles_during (ContentTimePeriod, bool starting) const; std::list 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 > _reels; std::list >::iterator _reel;