aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LVideoSurface.h
diff options
context:
space:
mode:
authorZackaryWelch <welch.zackary@gmail.com>2017-10-11 20:51:56 -0400
committerZackaryWelch <welch.zackary@gmail.com>2017-10-11 20:51:56 -0400
commitf649d4976e64cfdf9b32022d55bfd08f39d00a8f (patch)
tree0678b4028230aaab341ad9d1cf6976b89931cffb /src-qt5/core/libLumina/LVideoSurface.h
parentUpdate lumina-checkpass with 2 additional options: (diff)
downloadlumina-f649d4976e64cfdf9b32022d55bfd08f39d00a8f.tar.gz
lumina-f649d4976e64cfdf9b32022d55bfd08f39d00a8f.tar.bz2
lumina-f649d4976e64cfdf9b32022d55bfd08f39d00a8f.zip
Added framework to play video when the mouse is put over them. Breaks
picture and video preview for lumina-fileinfo currently
Diffstat (limited to 'src-qt5/core/libLumina/LVideoSurface.h')
-rw-r--r--src-qt5/core/libLumina/LVideoSurface.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/LVideoSurface.h b/src-qt5/core/libLumina/LVideoSurface.h
index 42a140d9..7a3dcaad 100644
--- a/src-qt5/core/libLumina/LVideoSurface.h
+++ b/src-qt5/core/libLumina/LVideoSurface.h
@@ -1,3 +1,6 @@
+#ifndef LVIDEOSURFACE_H
+#define LVIDEOSURFACE_H
+
#include <QAbstractVideoSurface>
#include <QVideoSurfaceFormat>
#include <QPixmap>
@@ -10,12 +13,14 @@ class LVideoSurface : public QAbstractVideoSurface {
LVideoSurface(QObject *parent=0);
virtual bool present(const QVideoFrame&);
virtual QList<QVideoFrame::PixelFormat> supportedPixelFormats(QAbstractVideoBuffer::HandleType) const;
- /*virtual QList<QVidebool isFormatSupported(const QVideoSurfaceFormat &format) const;
bool start(const QVideoSurfaceFormat &format);
- void stop();*/
+ void stop();
signals:
void frameReceived(QPixmap);
+ public slots:
+ void switchRollOver();
private:
QPixmap frameImage;
- //QImage::Format imageFormat;
+ bool entered;
};
+#endif
bgstack15