X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_decoder.h;h=95e783d0612a9876ec5f40050240bbd1e3bb03af;hb=fc1441eeaa3c0805c37809685ea7a3f5ca173666;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..95e783d06 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,16 +18,19 @@ */ + #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 (); void seek (dcpomatic::ContentTime time, bool accurate); @@ -35,10 +38,10 @@ public: std::vector fonts () 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; };