X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_encoder.h;h=393a6d72eaa58bd1d09670015315a43a18097824;hb=58c63c02bc26209f42f42bccbe4a587f9df6f05f;hp=4bd264c8bdf6a760cdb251d3b4950557632b8e68;hpb=010a6240453384e35d4aa848af00ed58244fe16d;p=dcpomatic.git diff --git a/src/lib/ffmpeg_encoder.h b/src/lib/ffmpeg_encoder.h index 4bd264c8b..393a6d72e 100644 --- a/src/lib/ffmpeg_encoder.h +++ b/src/lib/ffmpeg_encoder.h @@ -32,25 +32,21 @@ 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 (); + void go () override; - boost::optional current_rate () const; - Frame frames_done () const; - bool finishing () const { + boost::optional current_rate () const override; + Frame frames_done () const override; + bool finishing () const override { return false; } @@ -70,21 +66,16 @@ private: 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; @@ -92,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