X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_decoder.h;h=d1237b2761c337a9b629b3baad7383e6b3e4ce19;hb=59953282b9f9da1164f39181347a01672c4f674c;hp=b53b88dedab7806eaa12b6c8ba6dc6d20641dabe;hpb=ddcd4f3ba0af3e9d49dbb68127317cd0d871a248;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_decoder.h b/src/lib/dcp_subtitle_decoder.h index b53b88ded..d1237b276 100644 --- a/src/lib/dcp_subtitle_decoder.h +++ b/src/lib/dcp_subtitle_decoder.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2020 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,27 +18,32 @@ */ + #include "text_decoder.h" #include "dcp_subtitle.h" #include "font_data.h" + class DCPSubtitleContent; + class DCPSubtitleDecoder : public DCPSubtitle, public Decoder { public: - DCPSubtitleDecoder (boost::shared_ptr film, boost::shared_ptr); + DCPSubtitleDecoder (std::shared_ptr film, std::shared_ptr); + + bool pass () override; + void seek (dcpomatic::ContentTime time, bool accurate) override; - bool pass (); - void seek (dcpomatic::ContentTime time, bool accurate); + std::vector fonts () const override; - std::vector fonts () const; + boost::optional first () const; private: - dcpomatic::ContentTimePeriod content_time_period (boost::shared_ptr s) const; + dcpomatic::ContentTimePeriod content_time_period (std::shared_ptr s) const; - std::list > _subtitles; - std::list >::const_iterator _next; + std::vector> _subtitles; + std::vector>::const_iterator _next; std::vector _fonts; };