X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_decoder.h;h=32d334ec1530e45551f45639ddf63f25d30c0202;hb=60244758980e851c43574b195159843136a1ae94;hp=3a05325c744ec195ed0b3320193840804b4e4dc1;hpb=9922c1f2eaea674ba2ff6cce5f5853655fd8ad7a;p=dcpomatic.git diff --git a/src/lib/dcp_decoder.h b/src/lib/dcp_decoder.h index 3a05325c7..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 (PassReason); + 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;