blob: adb4611d4b043dc1481ce37027cb48435e11813a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
};
|