![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qgstreamervideosource_p.h>
Static Public Member Functions | |
| static QGStreamerVideoSourcePrivate * | get (QGStreamerVideoSource *source) |
| Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| template<typename Func1, typename Func2> | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
| template<typename Func1, typename Func2> | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Public Attributes | |
| QString | gstBinDescription |
| QPlatformCamera * | platformCamera = nullptr |
| QMediaCaptureSession * | captureSession = nullptr |
| Public Attributes inherited from QObjectPrivate | |
| ExtraData * | extraData |
| QAtomicPointer< QThreadData > | threadData |
| QAtomicPointer< ConnectionData > | connections |
| union { | |
| QObject * currentChildBeingDeleted | |
| QAbstractDeclarativeData * declarativeData | |
| }; | |
| QAtomicPointer< QtSharedPointer::ExternalRefCountData > | sharedRefcount |
| Public Attributes inherited from QObjectData | |
| QObject * | q_ptr |
| QObject * | parent |
| QObjectList | children |
| uint | isWidget: 1 |
| uint | blockSig: 1 |
| uint | wasDeleted: 1 |
| uint | isDeletingChildren: 1 |
| uint | sendChildEvents: 1 |
| uint | receiveChildEvents: 1 |
| uint | isWindow: 1 |
| uint | deleteLaterCalled: 1 |
| uint | isQuickItem: 1 |
| uint | willBeWidget: 1 |
| uint | wasWidget: 1 |
| uint | receiveParentEvents: 1 |
| uint | unused: 20 |
| QAtomicInt | postedEvents |
| QDynamicMetaObjectData * | metaObject |
| QBindingStorage | bindingStorage |
Additional Inherited Members | |
| Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Definition at line 32 of file qgstreamervideosource_p.h.
| void QGStreamerVideoSourcePrivate::createPlatformCamera | ( | QGStreamerVideoSource * | source, |
| GstElementOrDescription | elementOrDesc, | ||
| bool | active = false ) |
\qmltype GStreamerVideoSource \nativetype QGStreamerVideoSource \inqmlmodule QtMultimedia
A video source backed by a custom GStreamer bin.
Construct the video source from a GStreamer bin description and attach it to CaptureSession using its \l{CaptureSession::}{nativeVideoSource} property.
For any standard case, we recommend using \l Camera instead of this type, unless you need GStreamer-specific configuration to handle any custom video source.
By default, the type is available only in meta-qt6 builds. In custom builds with GStreamer support, the gstreamer_qt_api feature can enable it.
QtMultimedia must be run with the gstreamer media backend for this class to work.
\qml Item { CaptureSession { nativeVideoSource: GStreamerVideoSource { gstElementDescription: "videotestsrc name=testsrc" active: true } videoOutput: preview }
VideoOutput { id: preview } } \endqml
Definition at line 99 of file qgstreamervideosource.cpp.
|
inlinestatic |
Definition at line 40 of file qgstreamervideosource_p.h.
| QMediaCaptureSession* QGStreamerVideoSourcePrivate::captureSession = nullptr |
Definition at line 38 of file qgstreamervideosource_p.h.
| QString QGStreamerVideoSourcePrivate::gstBinDescription |
Definition at line 36 of file qgstreamervideosource_p.h.
| QPlatformCamera* QGStreamerVideoSourcePrivate::platformCamera = nullptr |
Definition at line 37 of file qgstreamervideosource_p.h.