X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fwriter.h;h=e63591a8a338d50351b8ed4f0f45ad48e794c148;hb=e80732c66bb8907836eafeb816d695f96e063843;hp=66fe98ec734c914d3de27eeb4b4ccde15e6309b7;hpb=9e4c091e6ef0f79fab10664e95240de2f14e5702;p=dcpomatic.git diff --git a/src/lib/writer.h b/src/lib/writer.h index 66fe98ec7..e63591a8a 100644 --- a/src/lib/writer.h +++ b/src/lib/writer.h @@ -21,19 +21,20 @@ * @brief Writer class. */ -#include -#include -#include -#include -#include #include "exceptions.h" #include "types.h" #include "player_subtitles.h" +#include +#include +#include +#include +#include class Film; class EncodedData; class AudioBuffers; class Job; +class Font; namespace dcp { class MonoPictureMXF; @@ -44,6 +45,7 @@ namespace dcp { class PictureMXFWriter; class SoundMXF; class SoundMXFWriter; + class InteropSubtitleContent; } struct QueueItem @@ -93,10 +95,13 @@ public: void write (boost::shared_ptr, int, Eyes); void fake_write (int, Eyes); void write (boost::shared_ptr); - void write (PlayerSubtitles); + void write (PlayerSubtitles subs); + void write (std::list > fonts); void repeat (int f, Eyes); void finish (); + void set_encoder_threads (int threads); + private: void thread (); @@ -131,10 +136,10 @@ private: int _last_written_frame; Eyes _last_written_eyes; /** maximum number of frames to hold in memory, for when we are managing - ordering - */ - static const int _maximum_frames_in_memory; - + * ordering + */ + int _maximum_frames_in_memory; + /** number of FULL written frames */ int _full_written; /** number of FAKE written frames */ @@ -148,5 +153,7 @@ private: boost::shared_ptr _picture_mxf_writer; boost::shared_ptr _sound_mxf; boost::shared_ptr _sound_mxf_writer; - boost::shared_ptr _subtitle_content; + boost::shared_ptr _subtitle_content; + + std::list > _fonts; };