X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Freel_writer.h;h=fff2e0b9ea7568d646b4ef0b18b86e5104757799;hb=7c730205e50014347bd96ab9735346d0b5922798;hp=c0e98f6ebf89b7bd2bdd06858c2cd605995c1054;hpb=60d528017a3ac1afdc30a3a000b28dda96a2175e;p=dcpomatic.git diff --git a/src/lib/reel_writer.h b/src/lib/reel_writer.h index c0e98f6eb..fff2e0b9e 100644 --- a/src/lib/reel_writer.h +++ b/src/lib/reel_writer.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2016 Carl Hetherington + Copyright (C) 2012-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -21,13 +21,17 @@ #include "types.h" #include "dcpomatic_time.h" #include "referenced_reel_asset.h" -#include "player_subtitles.h" +#include "player_text.h" +#include "dcp_text_track.h" #include #include +namespace dcpomatic { + class Font; +} + class Film; class Job; -class Font; class AudioBuffers; namespace dcp { @@ -49,7 +53,7 @@ class ReelWriter public: ReelWriter ( boost::shared_ptr film, - DCPTimePeriod period, + dcpomatic::DCPTimePeriod period, boost::shared_ptr job, int reel_index, int reel_count, @@ -60,15 +64,15 @@ public: void fake_write (Frame frame, Eyes eyes, int size); void repeat_write (Frame frame, Eyes eyes); void write (boost::shared_ptr audio); - void write (PlayerSubtitles subs); + void write (PlayerText text, TextType type, boost::optional track, dcpomatic::DCPTimePeriod period); void finish (); - boost::shared_ptr create_reel (std::list const & refs, std::list > const & fonts); + boost::shared_ptr create_reel (std::list const & refs, std::list > const & fonts); void calculate_digests (boost::function set_progress); Frame start () const; - DCPTimePeriod period () const { + dcpomatic::DCPTimePeriod period () const { return _period; } @@ -95,7 +99,7 @@ private: boost::shared_ptr _film; - DCPTimePeriod _period; + dcpomatic::DCPTimePeriod _period; /** the first picture frame index that does not already exist in our MXF */ int _first_nonexistant_frame; /** the data of the last written frame, if there is one */ @@ -114,6 +118,7 @@ private: boost::shared_ptr _sound_asset; boost::shared_ptr _sound_asset_writer; boost::shared_ptr _subtitle_asset; + std::map > _closed_caption_assets; static int const _info_size; };