X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fdcp_subtitle_decoder.h;h=a9540c3cf05e6896901683d1eaf5c9a20f770889;hb=28111007e2e6fd62f5810be780706ae1618bd33f;hp=076dc3f3bb9bd9af3dd28838140c786b6f5543b6;hpb=de2af791bdfdcd653752cba970e59efc7bf810c7;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_decoder.h b/src/lib/dcp_subtitle_decoder.h index 076dc3f3b..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); - void pass (); - void seek (ContentTime time, bool accurate); + bool pass (); + 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; };