|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <GstAppSinkAdapter.h>
Inheritance diagram for GstAppSinkAdapter:
Collaboration diagram for GstAppSinkAdapter:Public Member Functions | |
| GstAppSinkAdapter (QObject *parent=nullptr) | |
| ~GstAppSinkAdapter () override | |
| bool | setup (GstElement *sinkBin, QVideoSink *videoSink) |
| void | teardown () |
| Disconnect the callback (safe to call multiple times). | |
Bridges a GStreamer appsink to a Qt QVideoSink.
Each decoded frame arriving at the appsink is copied into a QVideoFrame and pushed to the QVideoSink, which renders through Qt's native RHI backend (Metal on macOS, Vulkan/D3D elsewhere).
Definition at line 14 of file GstAppSinkAdapter.h.
|
explicit |
Definition at line 14 of file GstAppSinkAdapter.cc.
|
override |
Definition at line 19 of file GstAppSinkAdapter.cc.
References teardown().
| bool GstAppSinkAdapter::setup | ( | GstElement * | sinkBin, |
| QVideoSink * | videoSink | ||
| ) |
Connect to the named appsink inside sinkBin and push frames to videoSink. Returns true on success.
Definition at line 24 of file GstAppSinkAdapter.cc.
References teardown().
| void GstAppSinkAdapter::teardown | ( | ) |
Disconnect the callback (safe to call multiple times).
Definition at line 50 of file GstAppSinkAdapter.cc.
Referenced by setup(), and ~GstAppSinkAdapter().