You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
612 B
26 lines
612 B
#ifndef VIDEOSURFACE_H
|
|
#define VIDEOSURFACE_H
|
|
#include <QSet>
|
|
#include <gst/gst.h>
|
|
#include <QtCore/QObject>
|
|
#include <QtQuick/QQuickItem>
|
|
#include <QtCore/QPointer>
|
|
#include <QtQuick/QSGNode>
|
|
#include <QtQuick/QSGFlatColorMaterial>
|
|
#include "videosurfaceprivate.h"
|
|
|
|
|
|
class VideoSurface: public QObject{
|
|
Q_OBJECT
|
|
Q_DISABLE_COPY(VideoSurface)
|
|
public:
|
|
explicit VideoSurface(QObject *parent = 0);
|
|
virtual ~VideoSurface();
|
|
GstElement *videoSink();
|
|
void onUpdate();
|
|
static void onUpdateThunk(GstElement* sink, gpointer data);
|
|
VideoSurfacePrivate *const d;
|
|
};
|
|
|
|
#endif // VIDEOSURFACE_H
|