X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_encoder.h;h=e5df30fb524ac9cb897883bdfe1addb610f65310;hb=7ab22a7aa171aec36563b8ec0b7c0b69a36094fe;hp=3ccd5695eea0c30ffe90cd9ff8e1641dc36b3362;hpb=1db0293ad36605da9ca8daa8736ef581f4f6a34e;p=dcpomatic.git diff --git a/src/lib/dcp_encoder.h b/src/lib/dcp_encoder.h index 3ccd5695e..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,10 +18,12 @@ */ +#include "atmos_metadata.h" #include "types.h" #include "player_text.h" #include "dcp_text_track.h" #include "encoder.h" +#include #include class Film; @@ -41,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 */ @@ -51,9 +53,10 @@ public: private: - void video (boost::shared_ptr, DCPTime); - void audio (boost::shared_ptr, DCPTime); - void text (PlayerText, TextType, boost::optional, 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; @@ -63,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; };