equal
deleted
inserted
replaced
47 #include <QtCore/qlist.h> |
47 #include <QtCore/qlist.h> |
48 #include <QtCore/qmutex.h> |
48 #include <QtCore/qmutex.h> |
49 #include <QtCore/qqueue.h> |
49 #include <QtCore/qqueue.h> |
50 #include <QtCore/qpointer.h> |
50 #include <QtCore/qpointer.h> |
51 #include <QtCore/qwaitcondition.h> |
51 #include <QtCore/qwaitcondition.h> |
52 #include <QtMultimedia/qvideosurfaceformat.h> |
52 #include <qvideosurfaceformat.h> |
53 #include <QtMultimedia/qvideoframe.h> |
53 #include <qvideoframe.h> |
54 #include <QtMultimedia/qabstractvideobuffer.h> |
54 #include <qabstractvideobuffer.h> |
55 |
55 |
56 QT_BEGIN_NAMESPACE |
56 QT_BEGIN_NAMESPACE |
57 class QAbstractVideoSurface; |
57 class QAbstractVideoSurface; |
58 QT_END_NAMESPACE |
58 QT_END_NAMESPACE |
59 |
59 |
|
60 #if defined(Q_WS_X11) && !defined(QT_NO_XVIDEO) |
60 class QGstXvImageBuffer; |
61 class QGstXvImageBuffer; |
61 class QGstXvImageBufferPool; |
62 class QGstXvImageBufferPool; |
|
63 #endif |
62 |
64 |
63 class QVideoSurfaceGstDelegate : public QObject |
65 class QVideoSurfaceGstDelegate : public QObject |
64 { |
66 { |
65 Q_OBJECT |
67 Q_OBJECT |
66 public: |
68 public: |
131 static GstFlowReturn preroll(GstBaseSink *sink, GstBuffer *buffer); |
133 static GstFlowReturn preroll(GstBaseSink *sink, GstBuffer *buffer); |
132 static GstFlowReturn render(GstBaseSink *sink, GstBuffer *buffer); |
134 static GstFlowReturn render(GstBaseSink *sink, GstBuffer *buffer); |
133 |
135 |
134 private: |
136 private: |
135 QVideoSurfaceGstDelegate *delegate; |
137 QVideoSurfaceGstDelegate *delegate; |
|
138 |
|
139 #if defined(Q_WS_X11) && !defined(QT_NO_XVIDEO) |
136 QGstXvImageBufferPool *pool; |
140 QGstXvImageBufferPool *pool; |
|
141 #endif |
|
142 |
137 GstCaps *lastRequestedCaps; |
143 GstCaps *lastRequestedCaps; |
138 GstCaps *lastBufferCaps; |
144 GstCaps *lastBufferCaps; |
139 QVideoSurfaceFormat *lastSurfaceFormat; |
145 QVideoSurfaceFormat *lastSurfaceFormat; |
140 }; |
146 }; |
141 |
147 |