From 0302594838ce422afb3346ecc91a1bdfd26c00de Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 26 Jul 2017 17:08:00 +0100 Subject: Basic multithread of DCP decryption during export. --- src/lib/ffmpeg_encoder.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/lib/ffmpeg_encoder.h') diff --git a/src/lib/ffmpeg_encoder.h b/src/lib/ffmpeg_encoder.h index 5ab59c12d..5e6dcecf7 100644 --- a/src/lib/ffmpeg_encoder.h +++ b/src/lib/ffmpeg_encoder.h @@ -28,6 +28,9 @@ extern "C" { #include #include } +#include + +class Butler; class FFmpegEncoder : public Encoder { @@ -70,7 +73,7 @@ private: AVDictionary* _video_options; std::string _video_codec_name; std::string _audio_codec_name; - AudioMapping _audio_mapping; + int _output_audio_channels; mutable boost::mutex _mutex; DCPTime _last_time; @@ -81,6 +84,12 @@ private: boost::shared_ptr _pending_audio; + mutable boost::mutex _queue_mutex; + boost::condition _queue_full; + std::list, DCPTime> > _queue; + + boost::shared_ptr _butler; + static int _video_stream_index; static int _audio_stream_index; }; -- cgit v1.2.3