X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fwriter.h;h=5fe96a3ac94eee955cd9ac1429e86986e4da2f15;hb=386e25f3b9d3fa59cbdeed458d9b3e0d21e338b8;hp=c8d1888349809d2bb4b2d52c14cca8862aa0d8ca;hpb=ae95d9cab28e414245e15ddeae20e96735594a8b;p=dcpomatic.git diff --git a/src/lib/writer.h b/src/lib/writer.h index c8d188834..5fe96a3ac 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 subs, 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 (); @@ -125,6 +129,7 @@ private: std::vector _reels; std::vector::iterator _audio_reel; std::vector::iterator _subtitle_reel; + std::map::iterator> _caption_reels; /** our thread, or 0 */ boost::thread* _thread; @@ -161,5 +166,5 @@ private: std::list _reel_assets; - std::list > _fonts; + std::list > _fonts; };