summaryrefslogtreecommitdiff
path: root/src/lib/video_source.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-11-12 21:06:47 +0000
committerCarl Hetherington <cth@carlh.net>2012-11-12 21:06:47 +0000
commitac0a9000d5d6a62c4ef3e4902611b180501e09e1 (patch)
tree6db45301529157db21ab0d54c36ce6ca4978a5e4 /src/lib/video_source.h
parent70447e72a5595fa03eb0a82b5e93247fcc5cad2b (diff)
Missing files.
Diffstat (limited to 'src/lib/video_source.h')
-rw-r--r--src/lib/video_source.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/lib/video_source.h b/src/lib/video_source.h
new file mode 100644
index 000000000..a93bd39d4
--- /dev/null
+++ b/src/lib/video_source.h
@@ -0,0 +1,25 @@
+#ifndef DVDOMATIC_VIDEO_SOURCE_H
+#define DVDOMATIC_VIDEO_SOURCE_H
+
+#include <boost/shared_ptr.hpp>
+#include <boost/signals2.hpp>
+#include "util.h"
+
+class VideoSink;
+class Subtitle;
+class Image;
+
+class VideoSource
+{
+public:
+
+ /** Emitted when a video frame is ready.
+ * First parameter is the frame within the source.
+ * Second parameter is either 0 or a subtitle that should be on this frame.
+ */
+ boost::signals2::signal<void (boost::shared_ptr<Image>, boost::shared_ptr<Subtitle>)> Video;
+
+ void connect_video (boost::shared_ptr<VideoSink>);
+};
+
+#endif