summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_transcoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-09 16:38:36 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-09 16:38:36 +0100
commit6a11232620e0006f6a2b1e8d2b56e56d84229d5c (patch)
tree5ea8d25d95aac54dbf7e45fa72c50215ff5fc437 /src/lib/ffmpeg_transcoder.h
parent837a54744277a5252a1a69b0690305e9a669124d (diff)
Basic GUI for export.
Diffstat (limited to 'src/lib/ffmpeg_transcoder.h')
-rw-r--r--src/lib/ffmpeg_transcoder.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_transcoder.h b/src/lib/ffmpeg_transcoder.h
index aa65b5933..02f0bb82e 100644
--- a/src/lib/ffmpeg_transcoder.h
+++ b/src/lib/ffmpeg_transcoder.h
@@ -19,6 +19,7 @@
*/
#include "transcoder.h"
+#include "event_history.h"
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
@@ -37,6 +38,10 @@ 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);
@@ -46,4 +51,11 @@ private:
AVFormatContext* _format_context;
AVStream* _video_stream;
AVPixelFormat _pixel_format;
+
+ mutable boost::mutex _mutex;
+ Frame _last_frame;
+
+ EventHistory _history;
+
+ boost::filesystem::path _output;
};