X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_decoder.h;h=95e783d0612a9876ec5f40050240bbd1e3bb03af;hb=cf9e7b9d0fb2545139dbd9bdc4c3313e7312ac66;hp=e5533927b4b77f9e485ff56efcd498f8f0dc8976;hpb=84012cdd64f451891febd36154b7226ea21a899b;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_decoder.h b/src/lib/dcp_subtitle_decoder.h index e5533927b..95e783d06 100644 --- a/src/lib/dcp_subtitle_decoder.h +++ b/src/lib/dcp_subtitle_decoder.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,22 +18,30 @@ */ + #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 (ContentTime time, bool accurate); + void seek (dcpomatic::ContentTime time, bool accurate); + + std::vector fonts () const; private: - ContentTimePeriod content_time_period (boost::shared_ptr s) const; + dcpomatic::ContentTimePeriod content_time_period (std::shared_ptr s) const; + + std::vector> _subtitles; + std::vector>::const_iterator _next; - std::list > _subtitles; - std::list >::const_iterator _next; + std::vector _fonts; };