Basic GUI for export.
[dcpomatic.git] / src / lib / ffmpeg_transcoder.h
index aa65b5933ebcf9649659d28a8f7313a60cd23da2..02f0bb82e66310004628436f96ef58def2665f8a 100644 (file)
@@ -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;
 };