QtGStreamer
1.2.0
Loading...
Searching...
No Matches
QGst
Quick
videosurface.h
1
/*
2
Copyright (C) 2012-2013 Collabora Ltd. <info@collabora.com>
3
@author George Kiagiadakis <george.kiagiadakis@collabora.com>
4
5
This library is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published
7
by the Free Software Foundation; either version 2.1 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
#ifndef QGST_QUICK_VIDEOSURFACE_H
19
#define QGST_QUICK_VIDEOSURFACE_H
20
21
#include "global.h"
22
#include "../element.h"
23
#include <QtCore/QObject>
24
25
namespace
QGst
{
26
namespace
Quick {
27
28
class
VideoSurfacePrivate;
29
57
class
QTGSTREAMERQUICK_EXPORT
VideoSurface
:
public
QObject
58
{
59
Q_OBJECT
60
Q_DISABLE_COPY(
VideoSurface
)
61
public
:
62
explicit
VideoSurface
(QObject *parent = 0);
63
virtual
~VideoSurface
();
64
69
ElementPtr
videoSink()
const
;
70
71
protected
:
72
QTGSTREAMERQUICK_NO_EXPORT
void
onUpdate();
73
74
private
:
75
friend
class
VideoItem
;
76
VideoSurfacePrivate *
const
d;
77
};
78
79
}
// namespace Quick
80
}
// namespace QGst
81
82
Q_DECLARE_METATYPE(
QGst::Quick::VideoSurface
*)
83
84
#endif
// QGST_QUICK_VIDEOSURFACE_H
QGlib::RefPointer< Element >
QGst::Quick::VideoItem
A QQuickItem for displaying video.
Definition
videoitem.h:40
QGst::Quick::VideoSurface
Helper class for painting video on a QtQuick2 VideoItem.
Definition
videosurface.h:58
QGst
Wrappers for GStreamer classes.
Generated by
1.9.8