blob: 7a3dcaad336381d6af4919ae006db7a7b0cbc1bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef LVIDEOSURFACE_H
#define LVIDEOSURFACE_H
#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;
bool start(const QVideoSurfaceFormat &format);
void stop();
signals:
void frameReceived(QPixmap);
public slots:
void switchRollOver();
private:
QPixmap frameImage;
bool entered;
};
#endif
|