X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_decoder.h;h=a9540c3cf05e6896901683d1eaf5c9a20f770889;hb=4a6d23119eceeba42abe0f2615cfaac92e74c83c;hp=359d191457379f8713ed9ee78035c3ac0a6b0a42;hpb=eb135e8dcdf36ae82420bcd18e954ad593b3e9a5;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_decoder.h b/src/lib/dcp_subtitle_decoder.h index 359d19145..a9540c3cf 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-2020 Carl Hetherington This file is part of DCP-o-matic. @@ -18,22 +18,27 @@ */ -#include "subtitle_decoder.h" +#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, boost::shared_ptr log); + 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 (dcp::SubtitleString 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; };