X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsubtitle_encoder.h;h=a10e4ba47e09e27e5cb16296c9c1bc0ffde8804e;hb=HEAD;hp=165d5fcb67792f409b3d8e2060b0fa2a707cc565;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/src/lib/subtitle_encoder.h b/src/lib/subtitle_encoder.h index 165d5fcb6..0815b1fff 100644 --- a/src/lib/subtitle_encoder.h +++ b/src/lib/subtitle_encoder.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2019 Carl Hetherington + Copyright (C) 2019-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,39 +18,42 @@ */ -#include "types.h" -#include "player_text.h" + #include "dcp_text_track.h" -#include "encoder.h" #include "dcpomatic_time.h" +#include "encoder.h" +#include "player_text.h" + namespace dcp { class SubtitleAsset; } + class Film; + /** @class SubtitleEncoder. * @brief An `encoder' which extracts a film's subtitles to DCP XML format. */ class SubtitleEncoder : public Encoder { public: - SubtitleEncoder (std::shared_ptr film, std::shared_ptr job, boost::filesystem::path output, std::string intial_name, bool split_reels, bool include_font); + SubtitleEncoder (std::shared_ptr film, std::shared_ptr job, boost::filesystem::path output, std::string initial_name, bool split_reels, bool include_font); - void go (); + void go () override; /** @return the number of frames that are done */ - Frame frames_done () const; + Frame frames_done () const override; - bool finishing () const { + bool finishing () const override { return false; } private: void text (PlayerText subs, TextType type, boost::optional track, dcpomatic::DCPTimePeriod period); - std::vector, boost::filesystem::path> > _assets; + std::vector, boost::filesystem::path>> _assets; std::vector _reels; bool _split_reels; bool _include_font;