X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fwriter.h;h=d304133dcb98f2c3d380e191fda78d0d0eef61b1;hb=143cfcf6c9e8c0a0879652d0d741ec268e8d9541;hp=1e4d3b6a36f5646b78ca3f31b0755dacc87bf7cb;hpb=ccb67af328f99e55dd9e3a6c01f2128f59016b4a;p=dcpomatic.git diff --git a/src/lib/writer.h b/src/lib/writer.h index 1e4d3b6a3..d304133dc 100644 --- a/src/lib/writer.h +++ b/src/lib/writer.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2015 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_subtitles.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); - void write (PlayerSubtitles 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 (); @@ -117,6 +121,7 @@ private: bool have_sequenced_image_at_queue_head (); size_t video_reel (int frame) const; void set_digest_progress (Job* job, float progress); + void write_cover_sheet (); /** our Film */ boost::shared_ptr _film; @@ -124,9 +129,10 @@ 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; + /** our thread */ + boost::thread _thread; /** true if our thread should finish */ bool _finish; /** queue of things to write to disk */ @@ -143,6 +149,7 @@ private: * ordering */ int _maximum_frames_in_memory; + unsigned int _maximum_queue_size; /** number of FULL written frames */ int _full_written; @@ -159,5 +166,5 @@ private: std::list _reel_assets; - std::list > _fonts; + std::list > _fonts; };