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.
29 lines
736 B
29 lines
736 B
#ifndef VIDEOITEM_H
|
|
#define VIDEOITEM_H
|
|
#include <gst/gst.h>
|
|
#include <QSet>
|
|
#include <QtCore/QObject>
|
|
#include <QtQuick/QQuickItem>
|
|
#include <QtCore/QPointer>
|
|
#include <QtQuick/QSGNode>
|
|
#include <QtQuick/QSGFlatColorMaterial>
|
|
#include "VideoItem.h"
|
|
#include "videosurface.h"
|
|
|
|
class VideoSurface;
|
|
class VideoItem: public QQuickItem{
|
|
Q_OBJECT
|
|
Q_PROPERTY(VideoSurface* surface READ surface WRITE setSurface)
|
|
public:
|
|
explicit VideoItem(QQuickItem *parent = 0);
|
|
virtual ~VideoItem();
|
|
|
|
VideoSurface *surface();
|
|
void setSurface(VideoSurface *surface);
|
|
virtual QSGNode* updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *UpdatePaintNodeData);
|
|
struct Private;
|
|
Private* const d;
|
|
};
|
|
|
|
#endif // VIDEOITEM_H
|