X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_file_encoder.h;h=57f9135fa5e88e0a272ca8e601663374caebfd87;hb=6eba051dcbb8c56e3e2efea946ce0380d17a7b33;hp=8b9d0b67c2a7269af994690ca52ede24a6880bc2;hpb=ad1ef39eda58b3a919ea3b7084401a0439409ec6;p=dcpomatic.git diff --git a/src/lib/ffmpeg_file_encoder.h b/src/lib/ffmpeg_file_encoder.h index 8b9d0b67c..57f9135fa 100644 --- a/src/lib/ffmpeg_file_encoder.h +++ b/src/lib/ffmpeg_file_encoder.h @@ -25,6 +25,7 @@ #include "event_history.h" #include "audio_mapping.h" #include "log.h" +#include extern "C" { #include #include @@ -41,11 +42,15 @@ public: ExportFormat, int x264_crf, boost::filesystem::path output +#ifdef DCPOMATIC_VARIANT_SWAROOP + , boost::optional key + , boost::optional id +#endif ); - void video (boost::shared_ptr, DCPTime); + void video (boost::shared_ptr, dcpomatic::DCPTime); void audio (boost::shared_ptr); - void subtitle (PlayerText, DCPTimePeriod); + void subtitle (PlayerText, dcpomatic::DCPTimePeriod); void flush (); @@ -79,12 +84,15 @@ private: int _video_frame_rate; int _audio_frame_rate; + int64_t _audio_frames; + boost::shared_ptr _pending_audio; /** Store of shared_ptr to keep them alive whilst raw pointers into their data have been passed to FFmpeg. */ std::map > _pending_images; + boost::mutex _pending_images_mutex; static int _video_stream_index; static int _audio_stream_index;