0dd519e8
Caio Lucena
starting
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef CAMERASURFACE_H
#define CAMERASURFACE_H
#include <QAbstractVideoSurface>
class CameraSurface : public QAbstractVideoSurface
{
Q_OBJECT
public:
explicit CameraSurface(QObject *parent = 0) : QAbstractVideoSurface(parent){}
//~CameraSurface();
QList<QVideoFrame::PixelFormat> supportedPixelFormats(QAbstractVideoBuffer::HandleType handleType) const;
bool present(const QVideoFrame &frame);
signals:
void novoFrame(QByteArray &buf, int w, int h);
};
#endif // CAMERASURFACE_H
|