X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_decoder.h;h=a9540c3cf05e6896901683d1eaf5c9a20f770889;hb=290d6d7a61aadda3f6d317465507caa7ffac1ba2;hp=ef4dad3f5dcb7db8c2d304fba7346ab4f5e58d9b;hpb=27b83475435dda4e84a90cf59a52f150905c4ab1;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_decoder.h b/src/lib/dcp_subtitle_decoder.h index ef4dad3f5..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 "caption_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 (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; };