aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LVideoSurface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/libLumina/LVideoSurface.h')
-rw-r--r--src-qt5/core/libLumina/LVideoSurface.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LVideoSurface.h b/src-qt5/core/libLumina/LVideoSurface.h
new file mode 100644
index 00000000..adb4611d
--- /dev/null
+++ b/src-qt5/core/libLumina/LVideoSurface.h
@@ -0,0 +1,20 @@
+#include <QAbstractVideoSurface>
+#include <QVideoSurfaceFormat>
+#include <QDebug>
+
+class LVideoSurface : public QAbstractVideoSurface {
+ Q_OBJECT
+
+ public:
+ LVideoSurface();
+ virtual bool present(const QVideoFrame&);
+ virtual QList<QVideoFrame::PixelFormat> supportedPixelFormats(QAbstractVideoBuffer::HandleType) const;
+ QImage currentFrame();
+ bool frameReady();
+ signals:
+ void frameReceived(QImage);
+ private:
+ int recording;
+ QImage frameImage;
+ bool ready;
+};
bgstack15