diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-09 23:08:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-09 23:08:34 +0100 |
| commit | b19987ae5342602977b265ba9167ec09e433367c (patch) | |
| tree | 7225dfbf58e7e07135b58d44e0ebb390df6178ac /src/lib/ffmpeg_transcoder.h | |
| parent | 78c27b4fa4d23d4a0a64f0398350ec5697d50551 (diff) | |
Some export tidying up.
Diffstat (limited to 'src/lib/ffmpeg_transcoder.h')
| -rw-r--r-- | src/lib/ffmpeg_transcoder.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/lib/ffmpeg_transcoder.h b/src/lib/ffmpeg_transcoder.h index 5380e84b0..9799285e2 100644 --- a/src/lib/ffmpeg_transcoder.h +++ b/src/lib/ffmpeg_transcoder.h @@ -18,6 +18,9 @@ */ +#ifndef DCPOMATIC_FFMPEG_TRANSCODER_H +#define DCPOMATIC_FFMPEG_TRANSCODER_H + #include "transcoder.h" #include "event_history.h" extern "C" { @@ -28,7 +31,12 @@ extern "C" { class FFmpegTranscoder : public Transcoder { public: - FFmpegTranscoder (boost::shared_ptr<const Film> film, boost::weak_ptr<Job> job); + enum Format + { + FORMAT_PRORES + }; + + FFmpegTranscoder (boost::shared_ptr<const Film> film, boost::weak_ptr<Job> job, boost::filesystem::path output, Format format); void go (); @@ -38,10 +46,6 @@ public: return false; } - void set_output (boost::filesystem::path o) { - _output = o; - } - private: void video (boost::shared_ptr<PlayerVideo>, DCPTime); void audio (boost::shared_ptr<AudioBuffers>, DCPTime); @@ -51,6 +55,7 @@ private: AVFormatContext* _format_context; AVStream* _video_stream; AVPixelFormat _pixel_format; + std::string _codec_name; mutable boost::mutex _mutex; DCPTime _last_time; @@ -59,3 +64,5 @@ private: boost::filesystem::path _output; }; + +#endif |
