QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstHwVideoBuffer.h File Reference
#include <algorithm>
#include <atomic>
#include <gst/gst.h>
#include <gst/video/video-info.h>
#include <private/qhwvideobuffer_p.h>
#include <QtCore/QLoggingCategory>
#include <QtCore/QSize>
#include <QtCore/qglobal.h>
#include <QtMultimedia/QVideoFrame>
#include <QtMultimedia/QVideoFrameFormat>
#include "CpuVideoFramePool.h"
#include "GstHwTypes.h"
Include dependency graph for GstHwVideoBuffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GstHw::MapDiagnostics
 One-shot warning flags per failure cause; paths with extra causes (DMABuf, D3D, IOSurface) derive and add members. More...
class  GstHwVideoBuffer
 Common base for GStreamer-backed QHwVideoBuffer subclasses. More...

Namespaces

namespace  GstHw
 Defined only in builds with the DMABuf path (QGC_HAS_GST_DMABUF_GPU_PATH) on GStreamer 1.24 or later.
namespace  GstHwPathTelemetry

Macros

#define QGC_HW_WARN_ONCE(LOGCAT, FLAG, ...)
 Logs once via qCWarning(LOGCAT) the first time FLAG flips true; subsequent trips are silent.

Functions

bool GstHw::texturePadsPicture (QSize textureSize, QSize picture, bool evenSizes)
QVideoFrameTexturesUPtr GstHwPathTelemetry::fail (HwVideoBufferPath path) noexcept
 Records a map failure for path and returns the empty bundle mapTextures() reports it with.

Variables

constexpr int GstHw::kMaxPlanes = 4
 Matches GST_VIDEO_MAX_PLANES (gst-video pins it at 4); single source of truth for every per-platform buffer.

Macro Definition Documentation

◆ QGC_HW_WARN_ONCE

#define QGC_HW_WARN_ONCE ( LOGCAT,
FLAG,
... )
Value:
do { \
if (!(FLAG).exchange(true, std::memory_order_relaxed)) { \
qCWarning(LOGCAT) << __VA_ARGS__; \
} \
} while (0)

Logs once via qCWarning(LOGCAT) the first time FLAG flips true; subsequent trips are silent.

Definition at line 62 of file GstHwVideoBuffer.h.

Referenced by GstHwVideoBuffer::checkMapPreconditions(), and GstHwFrameTexturesBase::finishMap().