diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2017-10-03 15:24:26 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2017-10-03 15:24:26 -0400 |
commit | 711b219a001d0c4fdd61367903696fa1c6ff1a3d (patch) | |
tree | 2682e737fb6e90adcb0f9e465d3cfe2ad2b51c09 /src-qt5/core/libLumina/LVideoSurface.h | |
parent | Adjust the border on the simple scrollbar style, and update the pkg-plist. (diff) | |
download | lumina-711b219a001d0c4fdd61367903696fa1c6ff1a3d.tar.gz lumina-711b219a001d0c4fdd61367903696fa1c6ff1a3d.tar.bz2 lumina-711b219a001d0c4fdd61367903696fa1c6ff1a3d.zip |
Added experimental video thumbnails in lumina-fm and fileinfo
Diffstat (limited to 'src-qt5/core/libLumina/LVideoSurface.h')
-rw-r--r-- | src-qt5/core/libLumina/LVideoSurface.h | 20 |
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; +}; |