X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_decoder.h;h=d735ca6a5515b65f34ad713cb9cf58b401d336d4;hb=ecedb8cd842bf09a4e44f5cc66e227f9e8711cc5;hp=d81b20b5c30d2d4793870aa07e286155b55daf77;hpb=9e4c091e6ef0f79fab10664e95240de2f14e5702;p=dcpomatic.git diff --git a/src/lib/dcp_decoder.h b/src/lib/dcp_decoder.h index d81b20b5c..d735ca6a5 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" @@ -27,20 +31,24 @@ 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); private: - void seek (ContentTime t, bool accurate); + friend struct dcp_subtitle_within_dcp_test; + bool pass (); - std::list subtitles_during (ContentTimePeriod, bool starting) const; + void seek (ContentTime t, bool accurate); + + std::list image_subtitles_during (ContentTimePeriod, bool starting) const; + std::list text_subtitles_during (ContentTimePeriod, bool starting) const; ContentTime _next; std::list > _reels; std::list >::iterator _reel; - boost::shared_ptr _log; boost::shared_ptr _dcp_content; };