summaryrefslogtreecommitdiffstats
path: root/src/plugins/mediaservices/gstreamer/qgstvideobuffer.h
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2010-02-05 01:55:41 (GMT)
committerDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2010-02-05 01:55:41 (GMT)
commit5f1c9dd14e1a6f6fc479dc8103a1166c71b61746 (patch)
tree4273f506d02a469e30f04d5ecffd49fb6ee3896c /src/plugins/mediaservices/gstreamer/qgstvideobuffer.h
parent623fa99d781a5cc2ddbd330f949764333fcd7ab1 (diff)
downloadQt-5f1c9dd14e1a6f6fc479dc8103a1166c71b61746.zip
Qt-5f1c9dd14e1a6f6fc479dc8103a1166c71b61746.tar.gz
Qt-5f1c9dd14e1a6f6fc479dc8103a1166c71b61746.tar.bz2
Added support for XvImage shm based video frames to gstreamer backend.
Gstreamer backend will use XvShmPutImage without copying frames data if possible with overlay video output, and provide XvImage based video frames to renderer video output surface.
Diffstat (limited to 'src/plugins/mediaservices/gstreamer/qgstvideobuffer.h')
-rw-r--r--src/plugins/mediaservices/gstreamer/qgstvideobuffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/mediaservices/gstreamer/qgstvideobuffer.h b/src/plugins/mediaservices/gstreamer/qgstvideobuffer.h
index 36b7c08..5133e2e 100644
--- a/src/plugins/mediaservices/gstreamer/qgstvideobuffer.h
+++ b/src/plugins/mediaservices/gstreamer/qgstvideobuffer.h
@@ -43,6 +43,7 @@
#define QGSTVIDEOBUFFER_H
#include <QtMultimedia/QAbstractVideoBuffer>
+#include <QtCore/qvariant.h>
#include <gst/gst.h>
@@ -55,6 +56,8 @@ class QGstVideoBuffer : public QAbstractVideoBuffer
{
public:
QGstVideoBuffer(GstBuffer *buffer, int bytesPerLine);
+ QGstVideoBuffer(GstBuffer *buffer, int bytesPerLine,
+ HandleType handleType, const QVariant &handle);
~QGstVideoBuffer();
MapMode mapMode() const;
@@ -62,10 +65,12 @@ public:
uchar *map(MapMode mode, int *numBytes, int *bytesPerLine);
void unmap();
+ QVariant handle() const { return m_handle; }
private:
GstBuffer *m_buffer;
int m_bytesPerLine;
MapMode m_mode;
+ QVariant m_handle;
};
QT_END_NAMESPACE