X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fwriter.h;h=d304133dcb98f2c3d380e191fda78d0d0eef61b1;hb=0877bf6d06de8e6f768534ec40c26bf629618a20;hp=a776e54c3c848d18f27bf46a15bd4ce5728e1114;hpb=9cb73fbc0fa4643612f01665bc6d9fc430656f32;p=dcpomatic.git diff --git a/src/lib/writer.h b/src/lib/writer.h index a776e54c3..d304133dc 100644 --- a/src/lib/writer.h +++ b/src/lib/writer.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2018 Carl Hetherington + Copyright (C) 2012-2019 Carl Hetherington This file is part of DCP-o-matic. @@ -23,8 +23,9 @@ */ #include "types.h" -#include "player_caption.h" +#include "player_text.h" #include "exception_store.h" +#include "dcp_text_track.h" #include #include #include @@ -35,10 +36,13 @@ namespace dcp { class Data; } +namespace dcpomatic { + class Font; +} + class Film; class AudioBuffers; class Job; -class Font; class ReferencedReelAsset; class ReelWriter; @@ -103,9 +107,9 @@ public: void fake_write (Frame, Eyes); bool can_repeat (Frame) const; void repeat (Frame, Eyes); - void write (boost::shared_ptr, DCPTime time); - void write (PlayerCaption text, TextType type, DCPTimePeriod period); - void write (std::list > fonts); + void write (boost::shared_ptr, dcpomatic::DCPTime time); + void write (PlayerText text, TextType type, boost::optional, dcpomatic::DCPTimePeriod period); + void write (std::list > fonts); void write (ReferencedReelAsset asset); void finish (); @@ -124,10 +128,11 @@ private: boost::weak_ptr _job; std::vector _reels; std::vector::iterator _audio_reel; - std::vector::iterator _text_reel[TEXT_COUNT]; + std::vector::iterator _subtitle_reel; + std::map::iterator> _caption_reels; - /** our thread, or 0 */ - boost::thread* _thread; + /** our thread */ + boost::thread _thread; /** true if our thread should finish */ bool _finish; /** queue of things to write to disk */ @@ -161,5 +166,5 @@ private: std::list _reel_assets; - std::list > _fonts; + std::list > _fonts; };