X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fffmpeg_encoder.h;h=710364b013840779d0fb80fdd204ca7d57960e75;hb=da44da6f31f97d39ca91c35955e573e76371f2c2;hp=df2dcfcc866f5a7535c697274244dd4a3a02d6fa;hpb=2cdf3d9f461b12d0925cc54368105bbd177bbbb3;p=dcpomatic.git diff --git a/src/lib/ffmpeg_encoder.h b/src/lib/ffmpeg_encoder.h index df2dcfcc8..710364b01 100644 --- a/src/lib/ffmpeg_encoder.h +++ b/src/lib/ffmpeg_encoder.h @@ -32,17 +32,14 @@ class FFmpegEncoder : public Encoder { public: FFmpegEncoder ( - boost::shared_ptr film, - boost::weak_ptr job, + std::shared_ptr film, + std::weak_ptr job, boost::filesystem::path output, ExportFormat format, bool mixdown_to_stereo, bool split_reels, + bool audio_stream_per_channel, int x264_crf -#ifdef DCPOMATIC_VARIANT_SWAROOP - , boost::optional key - , boost::optional id -#endif ); void go (); @@ -64,25 +61,21 @@ private: int audio_frame_rate, int channels, ExportFormat, + bool audio_stream_per_channel, int x264_crf, bool three_d, boost::filesystem::path output, std::string extension -#ifdef DCPOMATIC_VARIANT_SWAROOP - , boost::optional key - , boost::optional id -#endif ); - boost::shared_ptr get (Eyes eyes) const; + std::shared_ptr get (Eyes eyes) const; void flush (); - void audio (boost::shared_ptr); + void audio (std::shared_ptr); private: - std::map > _encoders; + std::map > _encoders; }; - std::list _file_encoders; int _output_audio_channels; mutable boost::mutex _mutex; @@ -90,7 +83,13 @@ private: EventHistory _history; - boost::shared_ptr _butler; + boost::filesystem::path _output; + ExportFormat _format; + bool _split_reels; + bool _audio_stream_per_channel; + int _x264_crf; + + std::shared_ptr _butler; }; #endif