X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_decoder.h;h=32d334ec1530e45551f45639ddf63f25d30c0202;hb=aebfa24afe42d80693df66318e5d2818ebf5989b;hp=d81b20b5c30d2d4793870aa07e286155b55daf77;hpb=946dbad9821e676f1d8fdc5abba459da54b8e84c;p=dcpomatic.git diff --git a/src/lib/dcp_decoder.h b/src/lib/dcp_decoder.h index d81b20b5c..32d334ec1 100644 --- a/src/lib/dcp_decoder.h +++ b/src/lib/dcp_decoder.h @@ -17,6 +17,10 @@ */ +/** @file src/dcp_decoder.h + * @brief A decoder of existing DCPs. + */ + #include "video_decoder.h" #include "audio_decoder.h" #include "subtitle_decoder.h" @@ -26,21 +30,29 @@ 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, boost::shared_ptr); + DCPDecoder (boost::shared_ptr, bool fast); + + std::list > 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 subtitles_during (ContentTimePeriod, bool starting) const; + 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; - boost::shared_ptr _log; boost::shared_ptr _dcp_content; };