X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Freel_writer.h;fp=src%2Flib%2Freel_writer.h;h=e578a481317b995984996f890536286e052ef2d4;hb=5a820bb8fae34591be5ac6d19a73461b9dab532a;hp=d08b5b1f009b0e5a6f4424a96e2d5d8e9d4969aa;hpb=9a7b67aee32a40539f29bc2d7017edd4a4f65f11;p=dcpomatic.git diff --git a/src/lib/reel_writer.h b/src/lib/reel_writer.h index d08b5b1f0..e578a4813 100644 --- a/src/lib/reel_writer.h +++ b/src/lib/reel_writer.h @@ -22,6 +22,7 @@ #include "atmos_metadata.h" #include "dcp_text_track.h" #include "dcpomatic_time.h" +#include "font_id_map.h" #include "player_text.h" #include "referenced_reel_asset.h" #include "types.h" @@ -31,10 +32,6 @@ #include -namespace dcpomatic { - class FontData; -} - class AudioBuffers; class Film; class InfoFileHandle; @@ -74,13 +71,14 @@ public: void fake_write (int size); void repeat_write (Frame frame, Eyes eyes); void write (std::shared_ptr audio); - void write (PlayerText text, TextType type, boost::optional track, dcpomatic::DCPTimePeriod period); + void write (PlayerText text, TextType type, boost::optional track, dcpomatic::DCPTimePeriod period, FontIdMap const& fonts); void write (std::shared_ptr atmos, AtmosMetadata metadata); void finish (boost::filesystem::path output_dcp); std::shared_ptr create_reel ( std::list const & refs, - std::vector const & fonts, + FontIdMap const & fonts, + std::shared_ptr chosen_interop_font, boost::filesystem::path output_dcp, bool ensure_subtitles, std::set ensure_closed_captions @@ -114,7 +112,8 @@ private: void create_reel_text ( std::shared_ptr reel, std::list const & refs, - std::vector const& fonts, + FontIdMap const& fonts, + std::shared_ptr chosen_interop_font, int64_t duration, boost::filesystem::path output_dcp, bool ensure_subtitles,