QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstHwVideoBuffer.h File Reference
#include <QtCore/QLoggingCategory>
#include <QtCore/qglobal.h>
#include <QtMultimedia/QVideoFrame>
#include <QtMultimedia/QVideoFrameFormat>
#include <algorithm>
#include <atomic>
#include <gst/gst.h>
#include <gst/video/video-info.h>
#include <private/qhwvideobuffer_p.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 (D3D, IOSurface) derive and add members. More...
 
class  GstHwVideoBuffer
 Common base for GStreamer-backed QHwVideoBuffer subclasses. More...
 

Namespaces

namespace  GstHw
 

Macros

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

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 32 of file GstHwVideoBuffer.h.