X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_encoder.h;h=e5df30fb524ac9cb897883bdfe1addb610f65310;hb=ca981c8cfa23111e92be329f1c2dfbe3a07b4247;hp=850ead6568f655df4613fc2bb2986b2356d22c96;hpb=9cb73fbc0fa4643612f01665bc6d9fc430656f32;p=dcpomatic.git diff --git a/src/lib/dcp_encoder.h b/src/lib/dcp_encoder.h index 850ead656..e5df30fb5 100644 --- a/src/lib/dcp_encoder.h +++ b/src/lib/dcp_encoder.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2018 Carl Hetherington + Copyright (C) 2012-2020 Carl Hetherington This file is part of DCP-o-matic. @@ -18,9 +18,12 @@ */ +#include "atmos_metadata.h" #include "types.h" -#include "player_caption.h" +#include "player_text.h" +#include "dcp_text_track.h" #include "encoder.h" +#include #include class Film; @@ -40,7 +43,7 @@ public: void go (); - float current_rate () const; + boost::optional current_rate () const; Frame frames_done () const; /** @return true if we are in the process of calling Encoder::process_end */ @@ -50,9 +53,10 @@ public: private: - void video (boost::shared_ptr, DCPTime); - void audio (boost::shared_ptr, DCPTime); - void text (PlayerCaption, TextType, DCPTimePeriod); + void video (boost::shared_ptr, dcpomatic::DCPTime); + void audio (boost::shared_ptr, dcpomatic::DCPTime); + void text (PlayerText, TextType, boost::optional, dcpomatic::DCPTimePeriod); + void atmos (boost::shared_ptr, dcpomatic::DCPTime, AtmosMetadata metadata); boost::shared_ptr _writer; boost::shared_ptr _j2k_encoder; @@ -62,4 +66,5 @@ private: boost::signals2::scoped_connection _player_video_connection; boost::signals2::scoped_connection _player_audio_connection; boost::signals2::scoped_connection _player_text_connection; + boost::signals2::scoped_connection _player_atmos_connection; };