QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
HwBuffers.cc File Reference
#include "HwBuffers.h"
#include <QtCore/QByteArray>
#include <array>
#include <utility>
#include "QGCLoggingCategory.h"
+ Include dependency graph for HwBuffers.cc:

Go to the source code of this file.

Namespaces

namespace  HwBuffers
 

Functions

void HwBuffers::dispatchBusMessage (GstMessage *msg) noexcept
 Receiver-side bus hook; drops cached GPU devices on GST_MESSAGE_ERROR. No-op when no GPU paths compiled.
 
void HwBuffers::initializeOnce () noexcept
 One-time process init; single call site for future lazy bridge registration.
 
const HwBufferEnvConfigHwBuffers::hwBufferEnvConfig () noexcept
 Lazily parses + logs the toggle config on first call; thread-safe via static-init guarantees.
 
GstBusSyncReply HwBuffers::onBusSyncMessage (GstBus *bus, GstMessage *msg, gpointer userData) noexcept
 Bus sync handler (GstBusSyncHandler) installed on every pipeline; no-op when no GPU path compiled.
 
void HwBuffers::onPipelineRestart () noexcept
 Pipeline-restart hook; re-arms one-shot priming latches so a restart can prime on the next NEED_CONTEXT.
 
void HwBuffers::resetCachedGpuResources () noexcept
 Drop process-wide native GPU handles tied to the current Qt scene-graph device/context.
 
void HwBuffers::connectMainWindow (QQuickWindow *window) noexcept
 Wire the main QQuickWindow into the RHI-capture path so snapshots follow its QRhi; no-op without GPU.
 
bool HwBuffers::answerSinkBinContextQuery (GstQuery *query) noexcept
 Synchronously answer GST_QUERY_CONTEXT (gst.gl.GLDisplay/app_context); false -> let bus NEED_CONTEXT run.
 
PathStats HwBuffers::formatPathStats (bool reset) noexcept
 
QString HwBuffers::takeExtraPathStats () noexcept
 Path-specific extras after formatPathStats (GL reuse/sync waits); reads-and-clears, teardown only.