QtGStreamer
0.10.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
QGst
Ui
videowidget.h
1
/*
2
Copyright (C) 2010 George Kiagiadakis <kiagiadakis.george@gmail.com>
3
Copyright (C) 2011 Collabora Ltd.
4
@author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
5
6
This library is free software; you can redistribute it and/or modify
7
it under the terms of the GNU Lesser General Public License as published
8
by the Free Software Foundation; either version 2.1 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef QGST_UI_VIDEOWIDGET_H
20
#define QGST_UI_VIDEOWIDGET_H
21
22
#include "global.h"
23
#include "../element.h"
24
#include <QtGui/QWidget>
25
26
namespace
QGst {
27
namespace
Ui {
28
29
class
AbstractRenderer;
30
62
class
QTGSTREAMERUI_EXPORT
VideoWidget
:
public
QWidget
63
{
64
Q_OBJECT
65
Q_DISABLE_COPY(
VideoWidget
)
66
public
:
67
explicit
VideoWidget
(QWidget *parent = 0, Qt::WindowFlags f = 0);
68
virtual
~
VideoWidget
();
69
70
74
ElementPtr
videoSink()
const
;
75
84
void
setVideoSink(
const
ElementPtr
& sink);
85
89
void
releaseVideoSink();
90
91
101
void
watchPipeline(
const
PipelinePtr
& pipeline);
102
107
void
stopPipelineWatch();
108
109
protected
:
110
virtual
void
paintEvent(QPaintEvent *event);
111
112
private
:
113
AbstractRenderer *d;
114
};
115
116
}
//namespace Ui
117
}
//namespace QGst
118
119
#endif // QGST_UI_VIDEOWIDGET_H
Generated on Mon Sep 23 2013 15:13:55 for QtGStreamer by
1.8.4