00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QGST_UI_GRAPHICSVIDEOSURFACE_H
00019 #define QGST_UI_GRAPHICSVIDEOSURFACE_H
00020
00021 #include "global.h"
00022 #include "../element.h"
00023 #include <QtGui/QGraphicsView>
00024
00025 namespace QGst {
00026 namespace Ui {
00027
00028 class GraphicsVideoWidget;
00029 class GraphicsVideoSurfacePrivate;
00030
00085 class QTGSTREAMERUI_EXPORT GraphicsVideoSurface : public QObject
00086 {
00087 Q_OBJECT
00088 Q_DISABLE_COPY(GraphicsVideoSurface)
00089 public:
00090 explicit GraphicsVideoSurface(QGraphicsView *parent);
00091 virtual ~GraphicsVideoSurface();
00092
00097 ElementPtr videoSink() const;
00098
00099 private:
00100 QTGSTREAMERUI_NO_EXPORT void onUpdate();
00101
00102 private:
00103 friend class GraphicsVideoWidget;
00104 GraphicsVideoSurfacePrivate * const d;
00105 };
00106
00107 }
00108 }
00109
00110 Q_DECLARE_METATYPE(QGst::Ui::GraphicsVideoSurface*)
00111
00112 #endif // QGST_UI_GRAPHICSVIDEOSURFACE_H