X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fwriter.h;h=d304133dcb98f2c3d380e191fda78d0d0eef61b1;hb=1201f316347d2ea8b09aa89b0c5edaebfaa64c93;hp=71d11b773242fe7b9038ae36b1304241b1314327;hpb=df17bbd25da69fc38eb2dcd8b4a2531cf0bab0bc;p=dcpomatic.git diff --git a/src/lib/writer.h b/src/lib/writer.h index 71d11b773..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. @@ -25,6 +25,7 @@ #include "types.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 (PlayerText 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 _caption_reel[CAPTION_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; };