diff options
Diffstat (limited to 'src-qt5/core/libLumina/LVideoSurface.h')
-rw-r--r-- | src-qt5/core/libLumina/LVideoSurface.h | 21 |
1 files changed, 21 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..42a140d9 --- /dev/null +++ b/src-qt5/core/libLumina/LVideoSurface.h @@ -0,0 +1,21 @@ +#include <QAbstractVideoSurface> +#include <QVideoSurfaceFormat> +#include <QPixmap> +#include <QDebug> + +class LVideoSurface : public QAbstractVideoSurface { + Q_OBJECT + + public: + 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();*/ + signals: + void frameReceived(QPixmap); + private: + QPixmap frameImage; + //QImage::Format imageFormat; +}; |