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