diff options
author | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2014-11-20 17:54:18 +0100 |
---|---|---|
committer | Andrew den Exter <andrew.den.exter@qinetic.com.au> | 2014-11-27 23:30:05 +0100 |
commit | 108dda7a90bd0f0337358b0db47ae55acd16dea6 (patch) | |
tree | e74c44c004b257fb99fdc96063641c76ac0426cf /src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h | |
parent | 7e3d69668e3f04110a651dee1850a1d0c885947b (diff) |
GStreamer: port to 1.0.
0.10 is still used by default.
To enable GStreamer 1.0, pass GST_VERSION=1.0 to qmake
for qtmultimedia.pro.
Contributions from:
Andrew den Exter <andrew.den.exter@qinetic.com.au>
Ilya Smelykh <ilya@videoexpertsgroup.com>
Jim Hodapp <jim.hodapp@canonical.com>
Sergio Schvezov <sergio.schvezov@canonical.com>
Change-Id: I72a46d1170a8794a149bdb5e20767afcc5b7587c
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
Diffstat (limited to 'src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h')
-rw-r--r-- | src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h b/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h index 11b305d27..0ea18c0ff 100644 --- a/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h +++ b/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h @@ -45,6 +45,18 @@ // We mean it. // +#include <gst/gst.h> + +#if GST_CHECK_VERSION(1,0,0) + +#include "qgstvideorenderersink_p.h" + +QT_BEGIN_NAMESPACE +typedef QGstVideoRendererSink QVideoSurfaceGstSink; +QT_END_NAMESPACE + +#else + #include <gst/video/gstvideosink.h> #include <QtCore/qlist.h> @@ -116,10 +128,6 @@ public: GstVideoSink parent; static QVideoSurfaceGstSink *createSink(QAbstractVideoSurface *surface); - static QVideoSurfaceFormat formatForCaps(GstCaps *caps, - int *bytesPerLine = 0, - QAbstractVideoBuffer::HandleType handleType = QAbstractVideoBuffer::NoHandle); - static void setFrameTimeStamps(QVideoFrame *frame, GstBuffer *buffer); private: static GType get_type(); @@ -150,7 +158,6 @@ private: QVideoSurfaceFormat *lastSurfaceFormat; }; - class QVideoSurfaceGstSinkClass { public: @@ -160,3 +167,5 @@ public: QT_END_NAMESPACE #endif + +#endif |